Skip to content

Commit b1d5620

Browse files
committed
chore: update
1 parent e2c3538 commit b1d5620

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/core/src/config.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,17 @@ export async function composeRsbuildEnvironments(
16201620

16211621
for (const { format, id, config } of rsbuildConfigWithLibInfo) {
16221622
const libId = typeof id === 'string' ? id : composeDefaultId(format);
1623-
environments[libId] = config;
1623+
environments[libId] = mergeRsbuildConfig(config, {
1624+
tools: {
1625+
rspack: {
1626+
experiments: {
1627+
cache: {
1628+
version: libId,
1629+
},
1630+
},
1631+
},
1632+
},
1633+
} as EnvironmentConfig);
16241634
environmentWithInfos.push({ id: libId, format, config });
16251635
}
16261636

0 commit comments

Comments
 (0)