Skip to content

Commit

Permalink
feat(okam-build): add default bable parser options: {babelrc: false}
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhy committed Nov 7, 2018
1 parent 410dbda commit 7221830
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.compile = function (file, options, babelVersion = 6) {
}

let babel = babelVersion <= 6 ? require('babel-core') : require('@babel/core');
let config = Object.assign({}, options.config, {filename: file.path});
let config = Object.assign({babelrc: false}, options.config, {filename: file.path});

// transform code
let result = file.ast
Expand Down

0 comments on commit 7221830

Please sign in to comment.