Skip to content

Commit

Permalink
Enable externalHelpers swc option (#37150)
Browse files Browse the repository at this point in the history
* Enable externalHelpers swc option

* disable with pnp
  • Loading branch information
ijjk authored Jun 7, 2022
1 parent 1dad751 commit ff0ccc4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/next/build/swc/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function getBaseSWCOptions({
paths,
}
: {}),
externalHelpers: !process.versions.pnp,
parser: parserConfig,
experimental: {
keepImportAssertions: true,
Expand Down
1 change: 1 addition & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
},
"dependencies": {
"@next/env": "12.1.7-canary.31",
"@swc/helpers": "0.3.15",
"caniuse-lite": "^1.0.30001332",
"postcss": "8.4.5",
"styled-jsx": "5.0.2",
Expand Down
16 changes: 14 additions & 2 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 ff0ccc4

Please sign in to comment.