From f22dede8c991cbdc0773f482d8bd29203425ade4 Mon Sep 17 00:00:00 2001 From: Simon Legg Date: Mon, 24 Jul 2017 11:18:19 +0100 Subject: [PATCH] Revert "bump to webpack 3 (#1034)" (#1038) This reverts commit 12ccde469f653622906f97a939a12d4c0007ecc3. --- build/webpack.common.config.js | 5 +++++ package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/webpack.common.config.js b/build/webpack.common.config.js index 1154a102c..3c69da6da 100644 --- a/build/webpack.common.config.js +++ b/build/webpack.common.config.js @@ -108,6 +108,11 @@ module.exports = { } ], + // This is actually included in the 'es2015' preset but we need to override the + // `loose` option to be true + // TODO: stop transform-es2015-classes being loose. loose allows non-spec compliant classes. + [ require.resolve('babel-plugin-transform-es2015-classes'), { loose: true } ] + // converts import/export to commonjs, currently not used but // will look to include it for browsers that can support modules // require('babel-plugin-transform-es2015-modules-commonjs'), diff --git a/package.json b/package.json index 85c286a03..c0ce94afd 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "commander": "^2.9.0", "css-loader": "^0.28.4", "extract-css-block-webpack-plugin": "^1.3.0", - "extract-text-webpack-plugin": "^3.0.0", + "extract-text-webpack-plugin": "^2.1.0", "ft-poller": "^2.9.0", "handlebars-loader": "^1.4.0", "imports-loader": "^0.7.1", @@ -102,7 +102,7 @@ "sass-loader": "^6.0.5", "semver": "^5.3.0", "shellpromise": "^1.4.0", - "webpack": "^3.2.0", + "webpack": "^2.6.1", "webpack-merge": "^4.1.0", "webpack-sources": "^1.0.1", "webpack-stats-plugin": "^0.1.1"