Commit 24b48a37 authored by Mike Greiling's avatar Mike Greiling

disable "use strict" in babel config as it was broken in sprockets

parent fe964cc2
...@@ -47,7 +47,13 @@ var config = { ...@@ -47,7 +47,13 @@ var config = {
{ {
test: /\.es6$/, test: /\.es6$/,
exclude: /node_modules/, 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)$/, test: /\.(js|es6)$/,
......
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