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
80e5180e
Unverified
Commit
80e5180e
authored
Oct 15, 2021
by
Steven
Committed by
GitHub
Oct 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update webpack target to node12.22 (#29953)
Follow up to #29949
parent
067075ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base.ts
packages/next/build/webpack/config/blocks/base.ts
+1
-1
No files found.
packages/next/build/webpack/config/blocks/base.ts
View file @
80e5180e
...
@@ -9,7 +9,7 @@ export const base = curry(function base(
...
@@ -9,7 +9,7 @@ export const base = curry(function base(
config
.
mode
=
ctx
.
isDevelopment
?
'development'
:
'production'
config
.
mode
=
ctx
.
isDevelopment
?
'development'
:
'production'
config
.
name
=
ctx
.
isServer
?
'server'
:
'client'
config
.
name
=
ctx
.
isServer
?
'server'
:
'client'
// @ts-ignore TODO webpack 5 typings
// @ts-ignore TODO webpack 5 typings
config
.
target
=
ctx
.
isServer
?
'node12.
17
'
:
[
'web'
,
'es5'
]
config
.
target
=
ctx
.
isServer
?
'node12.
22
'
:
[
'web'
,
'es5'
]
// Stop compilation early in a production build when an error is encountered.
// Stop compilation early in a production build when an error is encountered.
// This behavior isn't desirable in development due to how the HMR system
// This behavior isn't desirable in development due to how the HMR system
...
...
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