Skip to content

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

Description

@Hugoer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions