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
bc429f50
Unverified
Commit
bc429f50
authored
Dec 03, 2021
by
Tim Neutkens
Committed by
GitHub
Dec 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove future.strictPostcssConfiguration config (#32098)
parent
3a5e4244
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
index.ts
packages/next/build/webpack/config/blocks/css/index.ts
+0
-3
plugins.ts
packages/next/build/webpack/config/blocks/css/plugins.ts
+4
-4
config-shared.ts
packages/next/server/config-shared.ts
+0
-4
No files found.
packages/next/build/webpack/config/blocks/css/index.ts
View file @
bc429f50
...
@@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
...
@@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
export
async
function
lazyPostCSS
(
export
async
function
lazyPostCSS
(
rootDirectory
:
string
,
rootDirectory
:
string
,
supportedBrowsers
:
string
[]
|
undefined
,
supportedBrowsers
:
string
[]
|
undefined
,
strictPostcssConfiguration
:
boolean
|
undefined
,
disablePostcssPresetEnv
:
boolean
|
undefined
disablePostcssPresetEnv
:
boolean
|
undefined
)
{
)
{
if
(
!
postcssInstancePromise
)
{
if
(
!
postcssInstancePromise
)
{
...
@@ -117,7 +116,6 @@ export async function lazyPostCSS(
...
@@ -117,7 +116,6 @@ export async function lazyPostCSS(
const
postCssPlugins
=
await
getPostCssPlugins
(
const
postCssPlugins
=
await
getPostCssPlugins
(
rootDirectory
,
rootDirectory
,
supportedBrowsers
,
supportedBrowsers
,
strictPostcssConfiguration
,
disablePostcssPresetEnv
disablePostcssPresetEnv
)
)
...
@@ -145,7 +143,6 @@ export const css = curry(async function css(
...
@@ -145,7 +143,6 @@ export const css = curry(async function css(
lazyPostCSS
(
lazyPostCSS
(
ctx
.
rootDirectory
,
ctx
.
rootDirectory
,
ctx
.
supportedBrowsers
,
ctx
.
supportedBrowsers
,
ctx
.
future
.
strictPostcssConfiguration
,
ctx
.
experimental
.
disablePostcssPresetEnv
ctx
.
experimental
.
disablePostcssPresetEnv
)
)
...
...
packages/next/build/webpack/config/blocks/css/plugins.ts
View file @
bc429f50
...
@@ -117,12 +117,12 @@ function getDefaultPlugins(
...
@@ -117,12 +117,12 @@ function getDefaultPlugins(
export
async
function
getPostCssPlugins
(
export
async
function
getPostCssPlugins
(
dir
:
string
,
dir
:
string
,
supportedBrowsers
:
string
[]
|
undefined
,
supportedBrowsers
:
string
[]
|
undefined
,
defaults
:
boolean
=
false
,
disablePostcssPresetEnv
:
boolean
=
false
disablePostcssPresetEnv
:
boolean
=
false
):
Promise
<
import
(
'postcss'
).
AcceptedPlugin
[]
>
{
):
Promise
<
import
(
'postcss'
).
AcceptedPlugin
[]
>
{
let
config
=
defaults
let
config
=
await
findConfig
<
{
plugins
:
CssPluginCollection
}
>
(
?
null
dir
,
:
await
findConfig
<
{
plugins
:
CssPluginCollection
}
>
(
dir
,
'postcss'
)
'postcss'
)
if
(
config
==
null
)
{
if
(
config
==
null
)
{
config
=
{
config
=
{
...
...
packages/next/server/config-shared.ts
View file @
bc429f50
...
@@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
...
@@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
* @deprecated this options was moved to the top level
* @deprecated this options was moved to the top level
*/
*/
webpack5
?:
false
webpack5
?:
false
strictPostcssConfiguration
?:
boolean
}
}
outputFileTracing
?:
boolean
outputFileTracing
?:
boolean
staticPageGenerationTimeout
?:
number
staticPageGenerationTimeout
?:
number
...
@@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
...
@@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
outputFileTracingRoot
:
process
.
env
.
NEXT_PRIVATE_OUTPUT_TRACE_ROOT
||
''
,
outputFileTracingRoot
:
process
.
env
.
NEXT_PRIVATE_OUTPUT_TRACE_ROOT
||
''
,
outputStandalone
:
!!
process
.
env
.
NEXT_PRIVATE_STANDALONE
,
outputStandalone
:
!!
process
.
env
.
NEXT_PRIVATE_STANDALONE
,
},
},
future
:
{
strictPostcssConfiguration
:
false
,
},
}
}
export
function
normalizeConfig
(
phase
:
string
,
config
:
any
)
{
export
function
normalizeConfig
(
phase
:
string
,
config
:
any
)
{
...
...
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