Skip to content

Commit

Permalink
Change build from babylon to babel (#18015)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Feb 11, 2020
1 parent df5fadd commit 42918f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function getPlugins(
// Note that this plugin must be called after closure applies DCE.
isProduction && stripUnusedImports(pureExternalModules),
// Add the whitespace back if necessary.
shouldStayReadable && prettier({parser: 'babylon'}),
shouldStayReadable && prettier({parser: 'babel'}),
// License and haste headers, top-level `if` blocks.
{
transformBundle(source) {
Expand Down
5 changes: 2 additions & 3 deletions scripts/shared/__tests__/evalToString-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
'use strict';

const evalToString = require('../evalToString');
const babylon = require('babylon');
const parser = require('@babel/parser');

const parse = source =>
babylon.parse(`(${source});`).program.body[0].expression; // quick way to get an exp node
const parse = source => parser.parse(`(${source});`).program.body[0].expression; // quick way to get an exp node

const parseAndEval = source => evalToString(parse(source));

Expand Down

0 comments on commit 42918f4

Please sign in to comment.