Skip to content

Commit 42bc246

Browse files
authored
fix: make the build output compatible with v4.5 (#2591)
1 parent c9fc1c3 commit 42bc246

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/router/tsdown.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const esmBrowser = {
7979

8080
const esmBrowserProd = {
8181
...esmBrowser,
82+
target: 'es2015',
8283
minify: true,
8384
outputOptions: {
8485
...esmBrowser.outputOptions,
@@ -135,6 +136,7 @@ const iife = {
135136

136137
const iifeProd = {
137138
...iife,
139+
target: 'es2015',
138140
minify: true,
139141
outputOptions: {
140142
...iife.outputOptions,

0 commit comments

Comments
 (0)