Use ModuleConcatenationPlugin generates code that raises exceptions
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior? This issue is related to #5266 and describes a build configuration where the use of the ModuleConcatenationPlugin generates code that no longer executes successfully. I’ve boiled down a production environment to a (hopefully) manageable repro case.
If the current behavior is a bug, please provide the steps to reproduce.
- extract the attached repro case
- run npm i
- run npm run build
- open index.html in browser
- The browser should now show an exception
Uncaught ReferenceError: tinymce is not define
- Comment out the
new webpack.optimize.ModuleConcatenationPlugin()
inwebpack.util.js
- run npm run build
- refresh index.html in browser
- The browser should now show the tinymce browser
What is the expected behavior? ModuleConcatenationPlugin not to cause any alterations of the code that make it fail
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System. node: 8.1.4 npm: 4.6.1 os: windows 7
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
This week
Not sure if its related but getting this error as mentioned in the link.
https://stackoverflow.com/questions/46488914/error-after-webpack-upgrade-from-2-to-3
Basically this is happening only when I add
ModuleConcatenationPlugin
to my prod build. I have dynamic imports.