Do you want to request a feature or report a bug?
What is the current behavior?
This error occured when upgrading to webpack 3 and added scope hoisting using the
new webpack.optimize.ModuleConcatenationPlugin() (line 92 in webpack.config.js).
When trying to build the project, app part, the one referencing the dlls, breaks with the following error:
ERROR in chunk js [entry] app-[hash].js Cannot get final name for export "default" in "delegated ./node_modules/lodash-es/_freeGlobal.js from dll-reference vendor_369f235e615c7d44cdbc" (known exports: true, known reexports: )
If the current behavior is a bug, please provide the steps to reproduce.
Repo reproducing the bug with steps to reproduce: https://github.com/markogresak/webpack-3-bug.
Without adding the scope hoisting plugin, it works fine, even with the webpack 3 update.
I’m not sure if there is a problem with the library or webpack itself. If there is a hack I could add to the config to avoid this error, that would work too.
What is the expected behavior?
webpack command should not fail.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Browser version: N/A
Node version: 8.1.2
Webpack version: 3.0.0
OS: macOS Sierra 10.12.5