The webpackInclude regex for Data.mjs previously captured the entirety of the src/ directory (/(?:apps|docs\\/app|examples|src)\\/.*\\.mjs$/). This massively bloated the Data worker's dynamic chunk map with thousands of UI components, main thread controllers, and build loaders.
When Webpack traversed the map and compiled src/Main.mjs, it crashed upon hitting the main-thread workspace addon resolution (import('../../../src/main/addon/')), throwing Module not found: Error: Can't resolve '../../../src/main/addon'. Additionally, it threw critical dependency warnings on src/MicroLoader.mjs.
By restricting the framework source match in Data.mjs to exclusively target src\\/data instead of all of src/, we pruned thousands of invalid classes from the Data worker's chunk map, removing the compilation crashes and massively optimizing build performance.
The
webpackIncluderegex forData.mjspreviously captured the entirety of thesrc/directory (/(?:apps|docs\\/app|examples|src)\\/.*\\.mjs$/). This massively bloated the Data worker's dynamic chunk map with thousands of UI components, main thread controllers, and build loaders.When Webpack traversed the map and compiled
src/Main.mjs, it crashed upon hitting the main-thread workspace addon resolution (import('../../../src/main/addon/')), throwingModule not found: Error: Can't resolve '../../../src/main/addon'. Additionally, it threw critical dependency warnings onsrc/MicroLoader.mjs.By restricting the framework source match in
Data.mjsto exclusively targetsrc\\/datainstead of all ofsrc/, we pruned thousands of invalid classes from the Data worker's chunk map, removing the compilation crashes and massively optimizing build performance.