webpack: Duplicated minified files
Hi guys,
This might be related to chrome rather than webpack, but I’m not really sure about that.
I have a problem related to js files getting partially duplicated by the browser.
The following part of the minified js can visually seen duplicated:
- Checks if an event is supported in the current execution environment.
*
- NOTE: This will not work correctly for non-generic events such as
change
,
- NOTE: This will not work correctly for non-generic events such as
This happens when chrome is loading the js but I quickly navigate to another link in the website. When I come back, and the files start to load again, then the file gets this duplication problem, this causes a js error that can be seen on console.
commonChunk.54cef61….bundle.js:41 Uncaught SyntaxError: Unexpected token !
The worst problem is that I’m caching files, so the user doesn’t get rid of the error until he clears the cache.
If I wait for the file to load, then the file gets received perfectly by the user.
This seems only to be affecting commonChunk.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 43 (18 by maintainers)
Hi @evilebottnawi ,
Just came back from vacations, give me a couple of days more please.
@evilebottnawi But the header appears after the file is duplicated. Give me a couple of days to dig into the header problem.