Upgrade Babel to self-host with beta.46 (#7784)

This commit is contained in:
Logan Smyth
2018-04-27 15:04:37 -07:00
committed by GitHub
parent 4f312f5739
commit acf509bab5
16 changed files with 656 additions and 589 deletions

View File

@@ -4,6 +4,7 @@ test("Doesn't use the same object for two different nodes in the AST", function(
const code = 'import Foo from "bar"; Foo; Foo;';
const ast = babel.transform(code, {
cwd: __dirname,
ast: true,
plugins: [[require("../"), { loose: true }]],
}).ast;

View File

@@ -19,6 +19,7 @@ test("Re-export doesn't overwrite __esModule flag", function() {
context.exports = context.module.exports;
code = babel.transform(code, {
cwd: __dirname,
plugins: [[require("../"), { loose: true }]],
ast: false,
}).code;