fe-build icon indicating copy to clipboard operation
fe-build copied to clipboard

Set custom FE Build defaults for chunkLoadingGlobal and uniqueName to avoid Webpack conflicts

Open Hugoer opened this issue 7 months ago • 0 comments

Currently, our FE Build inherits the default values for chunkLoadingGlobal and uniqueName directly from Webpack, which can lead to runtime and chunk conflicts when clientlibs are deployed to third-party applications or other AEM projects using Webpack.

To address this, we want to define our own FE Build-specific defaults for these properties, so that any project using our build system will automatically benefit from safer, isolated chunk and runtime handling—without inheriting the potentially conflicting Webpack defaults.

Importantly, this change should still allow projects to override these defaults as needed. The configuration hierarchy should be:

Webpack → NC FE Build defaults → Project config

This ensures that by simply updating FE Build, projects get the improved defaults, but retain full flexibility to customize as required.

https://webpack.js.org/configuration/output/#outputchunkloadingglobal https://webpack.js.org/configuration/output/#outputuniquename

Hugoer avatar Jul 01 '25 12:07 Hugoer