Skip to content

Commit 3344795

Browse files
committed
chore: update
1 parent 4fe0b4e commit 3344795

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/integration/shims/esm/rslibShimsDisabled.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import config from './rslib.config';
44
export default defineConfig({
55
...config,
66
lib: [config.lib[0]!, config.lib[2]!].map((libConfig) => {
7-
libConfig.output!.distPath!.root =
8-
libConfig.output!.distPath!.root!.replace(
9-
'./dist/enabled',
10-
'./dist/disabled',
11-
);
7+
if (typeof libConfig.output!.distPath === 'object') {
8+
libConfig.output!.distPath!.root =
9+
libConfig.output!.distPath!.root!.replace(
10+
'./dist/enabled',
11+
'./dist/disabled',
12+
);
13+
}
1214
delete libConfig.shims;
1315
return libConfig;
1416
}),

0 commit comments

Comments
 (0)