Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove future.strictPostcssConfiguration config #32098

Merged
merged 2 commits into from Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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