Skip to content

Commit 2d547be

Browse files
committed
chore: update
1 parent 55ef99c commit 2d547be

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/core/src/config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,17 @@ export async function composeRsbuildEnvironments(
14791479

14801480
for (const { format, id, config } of rsbuildConfigWithLibInfo) {
14811481
const libId = typeof id === 'string' ? id : composeDefaultId(format);
1482-
environments[libId] = config;
1482+
environments[libId] = mergeRsbuildConfig(config, {
1483+
tools: {
1484+
rspack: {
1485+
experiments: {
1486+
cache: {
1487+
version: libId,
1488+
},
1489+
},
1490+
},
1491+
},
1492+
} as EnvironmentConfig);
14831493
environmentWithInfos.push({ id: libId, format, config });
14841494
}
14851495

0 commit comments

Comments
 (0)