Webpack 3 is now available Scope hoisting. Enable this feature plugins:[ new webpack.optimize.ModuleConcatenationPlugin() ]