File tree Expand file tree Collapse file tree
build/webpack/config/blocks/css Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
4242export async function lazyPostCSS (
4343 rootDirectory : string ,
4444 supportedBrowsers : string [ ] | undefined ,
45- strictPostcssConfiguration : boolean | undefined ,
4645 disablePostcssPresetEnv : boolean | undefined
4746) {
4847 if ( ! postcssInstancePromise ) {
@@ -117,7 +116,6 @@ export async function lazyPostCSS(
117116 const postCssPlugins = await getPostCssPlugins (
118117 rootDirectory ,
119118 supportedBrowsers ,
120- strictPostcssConfiguration ,
121119 disablePostcssPresetEnv
122120 )
123121
@@ -145,7 +143,6 @@ export const css = curry(async function css(
145143 lazyPostCSS (
146144 ctx . rootDirectory ,
147145 ctx . supportedBrowsers ,
148- ctx . future . strictPostcssConfiguration ,
149146 ctx . experimental . disablePostcssPresetEnv
150147 )
151148
Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ function getDefaultPlugins(
117117export async function getPostCssPlugins (
118118 dir : string ,
119119 supportedBrowsers : string [ ] | undefined ,
120- defaults : boolean = false ,
121120 disablePostcssPresetEnv : boolean = false
122121) : 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+ )
126126
127127 if ( config == null ) {
128128 config = {
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
119119 * @deprecated this options was moved to the top level
120120 */
121121 webpack5 ?: false
122- strictPostcssConfiguration ?: boolean
123122 }
124123 outputFileTracing ?: boolean
125124 staticPageGenerationTimeout ?: number
@@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
255254 outputFileTracingRoot : process . env . NEXT_PRIVATE_OUTPUT_TRACE_ROOT || '' ,
256255 outputStandalone : ! ! process . env . NEXT_PRIVATE_STANDALONE ,
257256 } ,
258- future : {
259- strictPostcssConfiguration : false ,
260- } ,
261257}
262258
263259export function normalizeConfig ( phase : string , config : any ) {
You can’t perform that action at this time.
0 commit comments