Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-05 02:12:00 +0300
committerMike Greiling <mike@pixelcog.com>2017-01-10 21:30:38 +0300
commit24b48a37131546f5927805e3be7d88e07dbfa9af (patch)
treea1a093ff09d6f64af0c24862a73cdcef28b47c63 /config
parentfe964cc235ed22a5d013d5874284763b698aba7c (diff)
disable "use strict" in babel config as it was broken in sprockets
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js8
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)$/,