Skip to content

Commit 89a9d7e

Browse files
committed
fix(babe7): file.parserOpts is moved to file.opts.parserOpts since Babel7-beta.3
1 parent 6df8f87 commit 89a9d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/babel-assertion-visitor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ BabelAssertionVisitor.prototype.parseCanonicalCode = function (file, code) {
163163

164164
function doParse(wrapper) {
165165
var content = wrapper ? wrapper(code) : code;
166-
var output = babylon.parse(content, assign({}, file.parserOpts, {tokens: true}));
166+
var output = babylon.parse(content, assign({}, file.opts.parserOpts, {tokens: true}));
167167
if (wrapper) {
168168
ast = output.program.body[0].body;
169169
tokens = output.tokens.slice(6, -2);

0 commit comments

Comments
 (0)