Skip to content

Commit

Permalink
Remove future.strictPostcssConfiguration config (#32098)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Dec 3, 2021
1 parent 3a5e424 commit bc429f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions packages/next/build/webpack/config/blocks/css/index.ts
Expand Up @@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
export async function lazyPostCSS(
rootDirectory: string,
supportedBrowsers: string[] | undefined,
strictPostcssConfiguration: boolean | undefined,
disablePostcssPresetEnv: boolean | undefined
) {
if (!postcssInstancePromise) {
Expand Down Expand Up @@ -117,7 +116,6 @@ export async function lazyPostCSS(
const postCssPlugins = await getPostCssPlugins(
rootDirectory,
supportedBrowsers,
strictPostcssConfiguration,
disablePostcssPresetEnv
)

Expand Down Expand Up @@ -145,7 +143,6 @@ export const css = curry(async function css(
lazyPostCSS(
ctx.rootDirectory,
ctx.supportedBrowsers,
ctx.future.strictPostcssConfiguration,
ctx.experimental.disablePostcssPresetEnv
)

Expand Down
8 changes: 4 additions & 4 deletions packages/next/build/webpack/config/blocks/css/plugins.ts
Expand Up @@ -117,12 +117,12 @@ function getDefaultPlugins(
export async function getPostCssPlugins(
dir: string,
supportedBrowsers: string[] | undefined,
defaults: boolean = false,
disablePostcssPresetEnv: boolean = false
): Promise<import('postcss').AcceptedPlugin[]> {
let config = defaults
? null
: await findConfig<{ plugins: CssPluginCollection }>(dir, 'postcss')
let config = await findConfig<{ plugins: CssPluginCollection }>(
dir,
'postcss'
)

if (config == null) {
config = {
Expand Down
4 changes: 0 additions & 4 deletions packages/next/server/config-shared.ts
Expand Up @@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
* @deprecated this options was moved to the top level
*/
webpack5?: false
strictPostcssConfiguration?: boolean
}
outputFileTracing?: boolean
staticPageGenerationTimeout?: number
Expand Down Expand Up @@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
outputFileTracingRoot: process.env.NEXT_PRIVATE_OUTPUT_TRACE_ROOT || '',
outputStandalone: !!process.env.NEXT_PRIVATE_STANDALONE,
},
future: {
strictPostcssConfiguration: false,
},
}

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

0 comments on commit bc429f5

Please sign in to comment.