Webpack adding duplicates of runtime into bundle

被刻印的时光 ゝ 提交于 2019-12-13 04:33:31

问题


Does anyone know why I am getting duplicates of the webpack runtimes in the bundle?

It's adding multiple numbers after the ? and the browser is seeing them as new files.

  • dev-server.js?
  • dev-server.js?52d4
  • dev-server.js?53d4*

See the file tree on the left:

Why is it doing this? I just want one copy of the file in the bundle.


回答1:


Webpack sets up a client/server pair for each entry by design. That's why you are seeing all of those prints. Given each entry happens to depend on jwt-decode, you also get those warnings.

Here's the relevant code. The code was introduced as a part of a bug fix.



来源:https://stackoverflow.com/questions/37447858/webpack-adding-duplicates-of-runtime-into-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!