Properly use babel opts

We prepared an options object for babel, but didn't include it properly
in the final call to babel.
This commit is contained in:
Pierre Ossman 2017-07-04 10:09:04 +02:00
parent 9e2f733f7d
commit d5c5b4aab7
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ var make_lib_files = function (import_format, source_maps, with_app_dir) {
helper.optionsOverride(opts);
}
babel.transformFile(filename, babel_opts(), (err, res) => {
babel.transformFile(filename, opts, (err, res) => {
console.log(`Writing ${out_path}`);
if (err) throw err;
var {code, map, ast} = res;