-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix parsing webpack 4's chunks #159
Fix parsing webpack 4's chunks #159
Conversation
Webpack 4 has a new chunk style, looking something like this: (window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"57iH":function(e,n,t){console.log("hello world")}}]);
Hi, and welcome! Thank you for your PR I was wondering, is there any case where the "minimum ID" is needed? The This PR in itself looks great! Would you be open to checking whether there's new sorts of chunk loading styles that also start with the
As you can see in the above example, the module IDs are affected by the ID in the first parameter. Figuring this out can be done outside of this PR, though — this can go in on itself. Could you create a changelog entry to CHANGELOG.md and link back to this PR, similarly to how the links have been done in v2.10.0 and above? |
Yeah, re-reading it, the minimum id isn't necessary to calculate the ids in the chunk, so it's misleadingly named. I'll change it.
The only place where I could find webpackJsonp being used is here - https://github.com/webpack/webpack/blob/master/lib/web/JsonpChunkTemplatePlugin.js. There's an optional third argument (
will do |
👍 I'll add a non-master link to the file in question so it won't get lost if files are moved around as webpack is developed: https://github.com/webpack/webpack/blob/v4.0.1/lib/web/JsonpChunkTemplatePlugin.js |
130d03b
to
89febab
Compare
Looks great! Thank you for contributing! 🎉 |
Released in v2.11.1 🎉 |
Webpack 4 has a new chunk loading style, looking something like this:
WDYT to this approach?