remove build.scopeHoisting option

ModuleConcatenationPlugin enabled in production. Configurable with  optimization.concatenateModules
This commit is contained in:
Pooya Parsa 2018-02-26 14:03:21 +03:30
parent bb0585c84d
commit eae92d7275
2 changed files with 0 additions and 6 deletions

View File

@ -148,11 +148,6 @@ module.exports = function webpackClientConfig() {
// Production specific config
// --------------------------------------
if (!this.options.dev) {
// Scope Hoisting
if (this.options.build.scopeHoisting === true) {
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin())
}
// Chunks size limit
// https://webpack.js.org/plugins/aggressive-splitting-plugin/
if (this.options.build.maxChunkSize) {

View File

@ -188,7 +188,6 @@ Options.defaults = {
analyze: false,
profile: process.argv.includes('--profile'),
dll: false,
scopeHoisting: false,
maxChunkSize: false,
extractCSS: false,
cssSourceMap: undefined,