Remove reference to deprecated preset-es2015

This commit is contained in:
JC Brand 2018-10-21 23:45:43 +02:00
parent ba689f4185
commit fea11ea639

View File

@ -173,17 +173,6 @@ function parameterize () {
const fn = config.output.filename; const fn = config.output.filename;
config.output.filename = `${fn.replace(/\.js$/, '')}.min.js`; config.output.filename = `${fn.replace(/\.js$/, '')}.min.js`;
} }
if (lang === 'es2015') {
console.log("Making an es2015 build");
config.module.rules.forEach((rule) => {
if (rule.use.loader === 'babel-loader') {
rule.use.options.presets = [
["@babel/preset-es2015"]
]
}
});
}
} }
parameterize(); parameterize();