Skip to content

Commit bd3db5b

Browse files
yifancongCopilot
andauthored
fix: dts extensions problem (#1393)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3e4a80a commit bd3db5b

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

packages/components/rslib.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export default defineConfig({
1818
target: 'web',
1919
sourceMap: true,
2020
},
21+
redirect: {
22+
dts: {
23+
extension: true,
24+
},
25+
},
2126
plugins: [
2227
pluginReact(),
2328
pluginSvgr({

packages/core/rslib.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export default defineConfig({
5555
dts: {
5656
build: true,
5757
},
58+
redirect: {
59+
dts: {
60+
extension: true,
61+
},
62+
},
5863
output: {
5964
filename: {
6065
js: '[name].js',

pnpm-lock.yaml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)