Skip to content

Commit 05fb9f8

Browse files
committed
chore: update
1 parent 473f78f commit 05fb9f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ const composeDtsConfig = async (
333333
libConfig: LibConfig,
334334
dtsExtension: string,
335335
): Promise<RsbuildConfig> => {
336-
const { dts, bundle, output, autoExtension } = libConfig;
336+
const { dts, bundle, output } = libConfig;
337337

338338
if (dts === false || dts === undefined) return {};
339339

@@ -344,7 +344,7 @@ const composeDtsConfig = async (
344344
bundle: dts?.bundle ?? bundle,
345345
distPath: dts?.distPath ?? output?.distPath?.root ?? './dist',
346346
abortOnError: dts?.abortOnError ?? true,
347-
dtsExtension: autoExtension === false ? '.d.ts' : dtsExtension,
347+
dtsExtension,
348348
}),
349349
],
350350
};

0 commit comments

Comments
 (0)