Skip to content

Commit

Permalink
fix(register): align externalHelpers with tsconfig.importHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 7, 2023
1 parent 18396eb commit 2f3e155
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/integrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"url": "https://github.com/swc-project/swc-node/issues"
},
"devDependencies": {
"@swc/helpers": "^0.4.14",
"@swc-node/core": "^1.9.2",
"@types/jest": "^29.4.0",
"@types/react": "^18.0.27",
Expand Down
1 change: 1 addition & 0 deletions packages/register/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
},
"devDependencies": {
"@swc/core": "^1.3.32",
"@swc/helpers": "^0.4.14",
"@types/debug": "^4.1.7",
"lodash": "^4.17.21",
"sinon": "^15.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/register/read-default-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function tsCompilerOptionsToSwcConfig(options: ts.CompilerOptions, filena
swc: {
filename,
jsc: {
externalHelpers: false,
externalHelpers: Boolean(options.importHelpers),
parser: {
syntax: 'typescript',
tsx: isJsx,
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f3e155

Please sign in to comment.