Skip to content

Commit bc429f5

Browse files
authored
Remove future.strictPostcssConfiguration config (#32098)
1 parent 3a5e424 commit bc429f5

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

packages/next/build/webpack/config/blocks/css/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
4242
export 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

packages/next/build/webpack/config/blocks/css/plugins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ function getDefaultPlugins(
117117
export 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 = {

packages/next/server/config-shared.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

263259
export function normalizeConfig(phase: string, config: any) {

0 commit comments

Comments
 (0)