webpack/webpack
View on GitHubAfter turning on lazyCompilation, the first load of externals will fail
Closed
#19134 opened on Jan 16, 2025
bughelp wanted
Description
Bug report
Enable lazyCompilation, and because of the micro frontend, I need to set output.library.type to umd. At this time, an error will appear during the first load. After refreshing the page again, it will become normal.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/nanianlisao/webpack-repoduce
Run the following command:
pnpm i pnpm run dev
What is the expected behavior?
no mistakes
Other relevant information: webpack version: 5.97.1 Node.js version: 18.17.0 Operating System: Additional tools: