Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
25b34b4d
Commit
25b34b4d
authored
Oct 23, 2021
by
Tim Neutkens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try using @swc/helpers
parent
08a7f7f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
next-swc-loader.js
packages/next/build/webpack/loaders/next-swc-loader.js
+1
-0
package.json
packages/next/package.json
+1
-0
taskfile-swc.js
packages/next/taskfile-swc.js
+2
-0
yarn.lock
yarn.lock
+5
-0
No files found.
packages/next/build/webpack/loaders/next-swc-loader.js
View file @
25b34b4d
...
@@ -42,6 +42,7 @@ function getSWCOptions({
...
@@ -42,6 +42,7 @@ function getSWCOptions({
isCommonJS
,
isCommonJS
,
})
{
})
{
const
jsc
=
{
const
jsc
=
{
externalHelpers
:
true
,
parser
:
{
parser
:
{
syntax
:
isTypeScript
?
'typescript'
:
'ecmascript'
,
syntax
:
isTypeScript
?
'typescript'
:
'ecmascript'
,
dynamicImport
:
true
,
dynamicImport
:
true
,
...
...
packages/next/package.json
View file @
25b34b4d
...
@@ -72,6 +72,7 @@
...
@@ -72,6 +72,7 @@
"@next/react-dev-overlay"
:
"11.1.3-canary.96"
,
"@next/react-dev-overlay"
:
"11.1.3-canary.96"
,
"@next/react-refresh-utils"
:
"11.1.3-canary.96"
,
"@next/react-refresh-utils"
:
"11.1.3-canary.96"
,
"@node-rs/helper"
:
"1.2.1"
,
"@node-rs/helper"
:
"1.2.1"
,
"@swc/helpers"
:
"0.2.13"
,
"assert"
:
"2.0.0"
,
"assert"
:
"2.0.0"
,
"browserify-zlib"
:
"0.2.0"
,
"browserify-zlib"
:
"0.2.0"
,
"browserslist"
:
"4.16.6"
,
"browserslist"
:
"4.16.6"
,
...
...
packages/next/taskfile-swc.js
View file @
25b34b4d
...
@@ -23,6 +23,7 @@ module.exports = function (task) {
...
@@ -23,6 +23,7 @@ module.exports = function (task) {
ignoreDynamic
:
true
,
ignoreDynamic
:
true
,
},
},
jsc
:
{
jsc
:
{
externalHelpers
:
true
,
loose
:
true
,
loose
:
true
,
target
:
'es2016'
,
target
:
'es2016'
,
...
@@ -54,6 +55,7 @@ module.exports = function (task) {
...
@@ -54,6 +55,7 @@ module.exports = function (task) {
},
},
},
},
jsc
:
{
jsc
:
{
externalHelpers
:
true
,
loose
:
true
,
loose
:
true
,
parser
:
{
parser
:
{
...
...
yarn.lock
View file @
25b34b4d
...
@@ -4251,6 +4251,11 @@
...
@@ -4251,6 +4251,11 @@
"@swc/core-win32-ia32-msvc" "1.2.97"
"@swc/core-win32-ia32-msvc" "1.2.97"
"@swc/core-win32-x64-msvc" "1.2.97"
"@swc/core-win32-x64-msvc" "1.2.97"
"@swc/helpers@0.2.13":
version "0.2.13"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.2.13.tgz#95d69aaed0998040d455832efbe1342ed79d0809"
integrity sha512-HxfZHtTgDlME7fH+KIwBrm1B1+2iB3UpbcSbPCZzDAHxZ3z+qfjflHverm33sXrdyQYx4s3J7r6ot76433mwEg==
"@swc/jest@0.2.3":
"@swc/jest@0.2.3":
version "0.2.3"
version "0.2.3"
resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.3.tgz#5c32aaa6298267a955d35eb67094edabd5db598f"
resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.3.tgz#5c32aaa6298267a955d35eb67094edabd5db598f"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment