Require AST output to be opt-in, rather than opt-out.

This commit is contained in:
Logan Smyth
2018-02-26 18:27:06 -08:00
parent d4a8c7672c
commit 8e3e6e0a88
3 changed files with 23 additions and 2 deletions

View File

@@ -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;