Fix Babel.compile call in isopack.js.

This commit is contained in:
Ben Newman
2016-02-04 23:46:12 -05:00
parent 8e5cb81138
commit 6bfb19b700

View File

@@ -1679,14 +1679,12 @@ _.extend(Isopack.prototype, {
inputFileContents = inputFileContents.replace(/^.*#RemoveInProd.*$/mg, "");
}
var babelOptions = babel.getDefaultOptions(
require('../tool-env/babel-features.js')
);
var babelOptions = babel.getDefaultOptions();
_.extend(babelOptions, {
filename: path,
sourceFileName: "/" + path,
sourceMapName: path + ".map",
sourceMapTarget: path + ".map",
sourceMap: true
});