@faceyspacey
Thanks alot for great plugin, and not just this one but the group of plugins you created.
Used them, they worked, saved me so much time
feedback for this plugin specifically though.
looks like it ignores webpack's magic comments and instead provides it's own way to generate the chunk names. creative, but potential issues I see with that are
- webpack's magic comments is an official feature that many have come to use and depend on.
- Potential source of confusion when a plugin disables a documented feature of the core library
- I think there is a potential of conflicts in your algorithm,
import('./components/componenta') in /site/page1/index.js, and
import('./components/componenta') in /site/page2/index.js,
will produce the same chunk path I believe
I would recommend to honor webpack's magic comments, or more so, require it. if you still like keep your alternative then make it an opt in feature, or only when magic comment is not specified.
@faceyspacey
Thanks alot for great plugin, and not just this one but the group of plugins you created.
Used them, they worked, saved me so much time
feedback for this plugin specifically though.
looks like it ignores webpack's magic comments and instead provides it's own way to generate the chunk names. creative, but potential issues I see with that are
import('./components/componenta') in /site/page1/index.js, and
import('./components/componenta') in /site/page2/index.js,
will produce the same chunk path I believe
I would recommend to honor webpack's magic comments, or more so, require it. if you still like keep your alternative then make it an opt in feature, or only when magic comment is not specified.