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 0a56962 commit 50ff796Copy full SHA for 50ff796
tests/integration/shims/esm/rslibShimsDisabled.config.ts
@@ -4,12 +4,11 @@ import config from './rslib.config';
4
export default defineConfig({
5
...config,
6
lib: [config.lib[0]!, config.lib[2]!].map((libConfig) => {
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
- );
+ if (typeof libConfig.output!.distPath === 'string') {
+ libConfig.output!.distPath = libConfig.output!.distPath.replace(
+ './dist/enabled',
+ './dist/disabled',
+ );
13
}
14
delete libConfig.shims;
15
return libConfig;
0 commit comments