File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -1268,37 +1268,6 @@ module.exports = {
1268
1268
} ) ;
1269
1269
} ) ;
1270
1270
1271
- it ( 'Babel does not force transforms if they are not needed' , function ( done ) {
1272
- const cwd = process . cwd ( ) ;
1273
- const appDir = testSetup . createTestAppDir ( ) ;
1274
- process . chdir ( appDir ) ;
1275
-
1276
- fs . writeFileSync (
1277
- path . join ( appDir , 'package.json' ) ,
1278
-
1279
- // Chrome 55 supports async and arrow functions
1280
- '{"browserslist": "Chrome 55"}'
1281
- ) ;
1282
-
1283
- const config = createWebpackConfig ( 'www/build' , 'prod' ) ;
1284
- config . setPublicPath ( '/build' ) ;
1285
- config . addEntry ( 'async' , './js/async_function.js' ) ;
1286
- config . configureBabel ( null , {
1287
- useBuiltIns : 'usage' ,
1288
- corejs : 3 ,
1289
- } ) ;
1290
-
1291
- testSetup . runWebpack ( config , async ( webpackAssert ) => {
1292
- webpackAssert . assertOutputFileContains (
1293
- 'async.js' ,
1294
- 'async function(){console.log("foo")}().then((()=>{console.log("bar")}))'
1295
- ) ;
1296
-
1297
- process . chdir ( cwd ) ;
1298
- done ( ) ;
1299
- } ) ;
1300
- } ) ;
1301
-
1302
1271
it ( 'When enabled, react JSX is transformed!' , function ( done ) {
1303
1272
const config = createWebpackConfig ( 'www/build' , 'dev' ) ;
1304
1273
config . setPublicPath ( '/build' ) ;
You can’t perform that action at this time.
0 commit comments