Skip to content

Commit

Permalink
fix: swc helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing@dian.so authored and kongjing@dian.so committed Feb 23, 2023
1 parent 8eded9c commit 62a4c77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vantui-cli/src/compiler/compile-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export async function compileScript(
runtime: 'automatic',
},
},
externalHelpers: true,
},
module: {
type: process.env['BABEL_MODULE'] === 'commonjs' ? 'commonjs' : 'es6',
Expand Down
1 change: 1 addition & 0 deletions packages/vantui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"test": ""
},
"dependencies": {
"@swc/helpers": "^0.4.14",
"@vant/icons": "^1.7.1",
"classnames": "^2.3.1",
"dayjs": "^1.10.6",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3255,6 +3255,13 @@
"@swc/core-win32-ia32-msvc" "1.3.35"
"@swc/core-win32-x64-msvc" "1.3.35"

"@swc/helpers@^0.4.14":
version "0.4.14"
resolved "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74"
integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==
dependencies:
tslib "^2.4.0"

"@swc/register@^0.1.10":
version "0.1.10"
resolved "https://registry.npmjs.org/@swc/register/-/register-0.1.10.tgz#74a20b7559669e03479b05e9e5c6d1524d4d92a2"
Expand Down

0 comments on commit 62a4c77

Please sign in to comment.