From 24b48a37131546f5927805e3be7d88e07dbfa9af Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Fri, 4 Nov 2016 18:12:00 -0500 Subject: disable "use strict" in babel config as it was broken in sprockets --- config/webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 2fcf2e11450..da2a19838e4 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -47,7 +47,13 @@ var config = { { test: /\.es6$/, exclude: /node_modules/, - loader: 'babel-loader' + loader: 'babel-loader', + query: { + // "use strict" was broken in sprockets-es6 due to sprockets concatination method. + // many es5 strict errors which were never caught ended up in our es6 assets as a result. + // this hack is necessary until they can be fixed. + blacklist: ["useStrict"] + } }, { test: /\.(js|es6)$/, -- cgit v1.2.1