Upgrade Babel to self-host with beta.46 (#7784)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user