Skip to content

Commit 9f970c5

Browse files
author
Heiner Pöpping
committed
🔧 Add buildEnv and version to uniqueName for modules
1 parent 73f50bd commit 9f970c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/createWebpackConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ export async function createWebpackConfig({
217217
tools: {
218218
rspack: {
219219
output: {
220-
uniqueName: packageName,
220+
uniqueName: exposeModules
221+
? `${packageName}__${buildEnv}__${process.env.BUILD_VERSION || 1}`
222+
: packageName,
221223
},
222224
plugins,
223225
module: {

0 commit comments

Comments
 (0)