Commit 432c27ee authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] modules imported from node_modules must also be run through

babel
parent a3b2fd93
...@@ -135,6 +135,7 @@ module.exports = class Js extends Task { ...@@ -135,6 +135,7 @@ module.exports = class Js extends Task {
paths: this._config.js.libraryPaths, paths: this._config.js.libraryPaths,
debug: this._config.jsPipeline.sourceMaps debug: this._config.jsPipeline.sourceMaps
}).transform(babelify, { }).transform(babelify, {
global: true,
presets: [ presets: [
[require('@babel/preset-env'), presetEnvConfiguration], [require('@babel/preset-env'), presetEnvConfiguration],
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment