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 473f78f commit 05fb9f8Copy full SHA for 05fb9f8
packages/core/src/config.ts
@@ -333,7 +333,7 @@ const composeDtsConfig = async (
333
libConfig: LibConfig,
334
dtsExtension: string,
335
): Promise<RsbuildConfig> => {
336
- const { dts, bundle, output, autoExtension } = libConfig;
+ const { dts, bundle, output } = libConfig;
337
338
if (dts === false || dts === undefined) return {};
339
@@ -344,7 +344,7 @@ const composeDtsConfig = async (
344
bundle: dts?.bundle ?? bundle,
345
distPath: dts?.distPath ?? output?.distPath?.root ?? './dist',
346
abortOnError: dts?.abortOnError ?? true,
347
- dtsExtension: autoExtension === false ? '.d.ts' : dtsExtension,
+ dtsExtension,
348
}),
349
],
350
};
0 commit comments