Webpack plugin adds multiple copies of runtime and common chunks #1512
denis-sokolov
started this conversation in
General
Replies: 1 comment
-
This is present in the latest 3.0.11. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I have multiple <script type="module"> in my HTML, Webpack runtime and common chunks are inlcuded multiple times. It works well in development mode and in production mode without Webpack plugin.
index.html:
Output in production mode with Webpack plugin:
I believe this code is responsible:
https://github.com/snowpackjs/snowpack/blob/282ccf3c413712d3802226ffb298ec42fdec4d48/plugins/plugin-webpack/plugin.js#L57-L75
Beta Was this translation helpful? Give feedback.
All reactions