From f627b712c95cb7a867499534424f63d409f21ef7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Jun 2017 11:33:16 +0200 Subject: Fix client build A node dep is in ES2015, but uglify is not compatible. Temporary quick fix -> use babel on this module (awaiting an official support of uglify and webpack for ES2015) --- client/config/webpack.prod.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'client/config') diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js index 1484e2ac2..4f33961f5 100644 --- a/client/config/webpack.prod.js +++ b/client/config/webpack.prod.js @@ -81,6 +81,21 @@ module.exports = function (env) { publicPath: '/client/' }, + module: { + rules: [ + { + test: /junk\/index\.js$/, + // exclude: /(node_modules|bower_components)/, + use: { + loader: 'babel-loader', + options: { + presets: [ 'env' ] + } + } + } + ] + }, + /** * Add additional plugins to the compiler. * @@ -130,6 +145,7 @@ module.exports = function (env) { 'HMR': METADATA.HMR } }), + /** * Plugin: UglifyJsPlugin * Description: Minimize all JavaScript output of chunks. -- cgit v1.2.3