Skip to content

Commit

Permalink
fix(babe7): file.parserOpts is moved to file.opts.parserOpts sinc…
Browse files Browse the repository at this point in the history
…e Babel7-beta.3
  • Loading branch information
twada committed Oct 24, 2017
1 parent 6df8f87 commit 89a9d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/babel-assertion-visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ BabelAssertionVisitor.prototype.parseCanonicalCode = function (file, code) {

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

0 comments on commit 89a9d7e

Please sign in to comment.