ScriptedAlchemy/webpack-external-import

Uncaught ReferenceError: installedChunks is not defined

Opened this issue Β· 1 comments

Hi 😊

I've been trying webpack-external-import on a project with MinChunkSizePlugin and it would seem that using MinChunkSizePlugin and URLImportPlugin together may cause issues.

Indeed, if Webpack create only one chunk (because of a large minChunkSize value), I get this error:

Uncaught ReferenceError: installedChunks is not defined

I don't really know how Webpack works but the webpackJsonpCallback function is missing in the non-working version. So I think that Webpack can't load properly the external chunk πŸ€”

Hope it helps πŸ˜‰

Likely messes with chunk splitting which is highly controlled under the hood of V2. Some thing just won’t work.

Webpack 5 has a rewritten version of this that we just finished up last week. https://github.com/mizx/mfe-webpack-demo