File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ function getPlugins(
410
410
// Note that this plugin must be called after closure applies DCE.
411
411
isProduction && stripUnusedImports ( pureExternalModules ) ,
412
412
// Add the whitespace back if necessary.
413
- shouldStayReadable && prettier ( { parser : 'babylon ' } ) ,
413
+ shouldStayReadable && prettier ( { parser : 'babel ' } ) ,
414
414
// License and haste headers, top-level `if` blocks.
415
415
{
416
416
transformBundle ( source ) {
Original file line number Diff line number Diff line change 7
7
'use strict' ;
8
8
9
9
const evalToString = require ( '../evalToString' ) ;
10
- const babylon = require ( 'babylon ' ) ;
10
+ const parser = require ( '@babel/parser ' ) ;
11
11
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
14
13
15
14
const parseAndEval = source => evalToString ( parse ( source ) ) ;
16
15
You can’t perform that action at this time.
0 commit comments