Require AST output to be opt-in, rather than opt-out.
This commit is contained in:
@@ -5,6 +5,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, {
|
||||
ast: true,
|
||||
plugins: [[require("../"), { loose: true }]],
|
||||
}).ast;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user