File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ function getPlugins(
410410 // Note that this plugin must be called after closure applies DCE.
411411 isProduction && stripUnusedImports ( pureExternalModules ) ,
412412 // Add the whitespace back if necessary.
413- shouldStayReadable && prettier ( { parser : 'babylon ' } ) ,
413+ shouldStayReadable && prettier ( { parser : 'babel ' } ) ,
414414 // License and haste headers, top-level `if` blocks.
415415 {
416416 transformBundle ( source ) {
Original file line number Diff line number Diff line change 77'use strict' ;
88
99const evalToString = require ( '../evalToString' ) ;
10- const babylon = require ( 'babylon ' ) ;
10+ const parser = require ( '@babel/parser ' ) ;
1111
12- const parse = source =>
13- babylon . parse ( `(${ source } );` ) . program . body [ 0 ] . expression ; // quick way to get an exp node
12+ const parse = source => parser . parse ( `(${ source } );` ) . program . body [ 0 ] . expression ; // quick way to get an exp node
1413
1514const parseAndEval = source => evalToString ( parse ( source ) ) ;
1615
You can’t perform that action at this time.
0 commit comments