diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-05 02:12:00 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-10 21:30:38 +0300 |
commit | 24b48a37131546f5927805e3be7d88e07dbfa9af (patch) | |
tree | a1a093ff09d6f64af0c24862a73cdcef28b47c63 /config | |
parent | fe964cc235ed22a5d013d5874284763b698aba7c (diff) |
disable "use strict" in babel config as it was broken in sprockets
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 8 |
1 files changed, 7 insertions, 1 deletions
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)$/, |