Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webpack-config: Set
output.uniqueName
(#41315)
* webpack-config: Set `output.uniqueName` When we removed a bunch of otherwise-useless "name" properties from `package.json` files, it turns out that caused Webpack to start using the empty string for its `output.uniqueName`, which may result in collisions if multiple bundles on a page do the same thing. To avoid this, read the "name" from composer.json if package.json lacks one. Also, since we're now setting `output.uniqueName`, various webpack configs using `output.library.name` should also set `output.uniqueName` to maintain the previous behavior. * Remove for entry.x.library.name Hopefully Webpack does the right thing on its own for those. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12957398511 Upstream-Ref: Automattic/jetpack@18b4f12
- Loading branch information