File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
build/webpack/config/blocks/css Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
42
42
export async function lazyPostCSS (
43
43
rootDirectory : string ,
44
44
supportedBrowsers : string [ ] | undefined ,
45
- strictPostcssConfiguration : boolean | undefined ,
46
45
disablePostcssPresetEnv : boolean | undefined
47
46
) {
48
47
if ( ! postcssInstancePromise ) {
@@ -117,7 +116,6 @@ export async function lazyPostCSS(
117
116
const postCssPlugins = await getPostCssPlugins (
118
117
rootDirectory ,
119
118
supportedBrowsers ,
120
- strictPostcssConfiguration ,
121
119
disablePostcssPresetEnv
122
120
)
123
121
@@ -145,7 +143,6 @@ export const css = curry(async function css(
145
143
lazyPostCSS (
146
144
ctx . rootDirectory ,
147
145
ctx . supportedBrowsers ,
148
- ctx . future . strictPostcssConfiguration ,
149
146
ctx . experimental . disablePostcssPresetEnv
150
147
)
151
148
Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ function getDefaultPlugins(
117
117
export async function getPostCssPlugins (
118
118
dir : string ,
119
119
supportedBrowsers : string [ ] | undefined ,
120
- defaults : boolean = false ,
121
120
disablePostcssPresetEnv : boolean = false
122
121
) : Promise < import ( 'postcss' ) . AcceptedPlugin [ ] > {
123
- let config = defaults
124
- ? null
125
- : await findConfig < { plugins : CssPluginCollection } > ( dir , 'postcss' )
122
+ let config = await findConfig < { plugins : CssPluginCollection } > (
123
+ dir ,
124
+ 'postcss'
125
+ )
126
126
127
127
if ( config == null ) {
128
128
config = {
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
119
119
* @deprecated this options was moved to the top level
120
120
*/
121
121
webpack5 ?: false
122
- strictPostcssConfiguration ?: boolean
123
122
}
124
123
outputFileTracing ?: boolean
125
124
staticPageGenerationTimeout ?: number
@@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
255
254
outputFileTracingRoot : process . env . NEXT_PRIVATE_OUTPUT_TRACE_ROOT || '' ,
256
255
outputStandalone : ! ! process . env . NEXT_PRIVATE_STANDALONE ,
257
256
} ,
258
- future : {
259
- strictPostcssConfiguration : false ,
260
- } ,
261
257
}
262
258
263
259
export function normalizeConfig ( phase : string , config : any ) {
You can’t perform that action at this time.
0 commit comments