Skip to content

Commit 2f6192b

Browse files
committed
修正 rspack 的 jsc.target 为 es2020
1 parent a759741 commit 2f6192b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rspack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export default defineConfig({
9595
loader: "builtin:swc-loader",
9696
options: {
9797
jsc: {
98+
target: "es2020",
9899
externalHelpers: true,
99100
parser: {
100101
syntax: "typescript",
@@ -108,7 +109,6 @@ export default defineConfig({
108109
},
109110
},
110111
},
111-
env: { targets },
112112
},
113113
},
114114
],

0 commit comments

Comments
 (0)