We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe0b4e commit 3344795Copy full SHA for 3344795
tests/integration/shims/esm/rslibShimsDisabled.config.ts
@@ -4,11 +4,13 @@ import config from './rslib.config';
4
export default defineConfig({
5
...config,
6
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
- );
+ if (typeof libConfig.output!.distPath === 'object') {
+ libConfig.output!.distPath!.root =
+ libConfig.output!.distPath!.root!.replace(
+ './dist/enabled',
+ './dist/disabled',
12
+ );
13
+ }
14
delete libConfig.shims;
15
return libConfig;
16
}),
0 commit comments