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
d27cbf00
Unverified
Commit
d27cbf00
authored
Jun 02, 2021
by
Tim Neutkens
Committed by
GitHub
Jun 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable new babel mode (#25635)
parent
1ee97b3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
webpack-config.ts
packages/next/build/webpack-config.ts
+3
-1
config-shared.ts
packages/next/next-server/server/config-shared.ts
+0
-2
No files found.
packages/next/build/webpack-config.ts
View file @
d27cbf00
...
...
@@ -260,7 +260,9 @@ export default async function getBaseWebpackConfig(
const
distDir
=
path
.
join
(
dir
,
config
.
distDir
)
const
babelLoader
=
config
.
experimental
.
turboMode
// Webpack 5 can use the faster babel loader, webpack 5 has built-in caching for loaders
// For webpack 4 the old loader is used as it has external caching
const
babelLoader
=
isWebpack5
?
require
.
resolve
(
'./babel/loader/index'
)
:
'next-babel-loader'
const
defaultLoaders
=
{
...
...
packages/next/next-server/server/config-shared.ts
View file @
d27cbf00
...
...
@@ -56,7 +56,6 @@ export type NextConfig = { [key: string]: any } & {
validator
?:
string
skipValidation
?:
boolean
}
turboMode
?:
boolean
eslint
?:
boolean
reactRoot
?:
boolean
enableBlurryPlaceholder
?:
boolean
...
...
@@ -114,7 +113,6 @@ export const defaultConfig: NextConfig = {
scriptLoader
:
false
,
stats
:
false
,
externalDir
:
false
,
turboMode
:
false
,
eslint
:
false
,
reactRoot
:
Number
(
process
.
env
.
NEXT_PRIVATE_REACT_ROOT
)
>
0
,
enableBlurryPlaceholder
:
false
,
...
...
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