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
a002f612
Unverified
Commit
a002f612
authored
Oct 13, 2021
by
Tim Neutkens
Committed by
GitHub
Oct 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add experimental option to enable fullySpecified (#29880)
parent
ecd31ab6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
webpack-config.ts
packages/next/build/webpack-config.ts
+10
-6
config-shared.ts
packages/next/server/config-shared.ts
+2
-0
No files found.
packages/next/build/webpack-config.ts
View file @
a002f612
...
@@ -1012,12 +1012,16 @@ export default async function getBaseWebpackConfig(
...
@@ -1012,12 +1012,16 @@ export default async function getBaseWebpackConfig(
rules
:
[
rules
:
[
// TODO: FIXME: do NOT webpack 5 support with this
// TODO: FIXME: do NOT webpack 5 support with this
// x-ref: https://github.com/webpack/webpack/issues/11467
// x-ref: https://github.com/webpack/webpack/issues/11467
{
...(
!
config
.
experimental
.
fullySpecified
test
:
/
\.
m
?
js/
,
?
[
resolve
:
{
{
fullySpecified
:
false
,
test
:
/
\.
m
?
js/
,
},
resolve
:
{
}
as
any
,
fullySpecified
:
false
,
},
}
as
any
,
]
:
[]),
{
{
test
:
/
\.(
js|cjs|mjs
)
$/
,
test
:
/
\.(
js|cjs|mjs
)
$/
,
issuerLayer
:
'api'
,
issuerLayer
:
'api'
,
...
...
packages/next/server/config-shared.ts
View file @
a002f612
...
@@ -144,6 +144,7 @@ export type NextConfig = { [key: string]: any } & {
...
@@ -144,6 +144,7 @@ export type NextConfig = { [key: string]: any } & {
outputFileTracing
?:
boolean
outputFileTracing
?:
boolean
concurrentFeatures
?:
boolean
concurrentFeatures
?:
boolean
serverComponents
?:
boolean
serverComponents
?:
boolean
fullySpecified
?:
boolean
}
}
}
}
...
@@ -224,6 +225,7 @@ export const defaultConfig: NextConfig = {
...
@@ -224,6 +225,7 @@ export const defaultConfig: NextConfig = {
outputFileTracing
:
false
,
outputFileTracing
:
false
,
concurrentFeatures
:
false
,
concurrentFeatures
:
false
,
serverComponents
:
false
,
serverComponents
:
false
,
fullySpecified
:
false
,
},
},
future
:
{
future
:
{
strictPostcssConfiguration
:
false
,
strictPostcssConfiguration
:
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