Skip to content

Commit 4b437fb

Browse files
committed
fix: use swc in the right way
1 parent b09b1aa commit 4b437fb

File tree

3 files changed

+506
-543
lines changed

3 files changed

+506
-543
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"@rollup/plugin-node-resolve": "^15.0.1",
8585
"@rollup/plugin-replace": "^5.0.2",
8686
"@swc/core": "^1.3.51",
87+
"@swc/helpers": "^0.5.0",
8788
"@testing-library/react": "^14.0.0",
8889
"@types/node": "^18.15.3",
8990
"@types/react": "^18.0.33",

rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const buildMatrix = (input: string, output: string, config: {
8989
nodeResolve(),
9090
swc(defineRollupSwcOption({
9191
jsc: {
92-
externalHelpers: false,
92+
externalHelpers: true,
9393
parser: {
9494
syntax: 'typescript',
9595
tsx: true

0 commit comments

Comments
 (0)