Unverified Commit a002f612 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Add experimental option to enable fullySpecified (#29880)

parent ecd31ab6
...@@ -1012,12 +1012,16 @@ export default async function getBaseWebpackConfig( ...@@ -1012,12 +1012,16 @@ export default async function getBaseWebpackConfig(
rules: [ rules: [
// TODO: FIXME: do NOT webpack 5 support with this // TODO: FIXME: do NOT webpack 5 support with this
// x-ref: https://github.com/webpack/webpack/issues/11467 // x-ref: https://github.com/webpack/webpack/issues/11467
{ ...(!config.experimental.fullySpecified
test: /\.m?js/, ? [
resolve: { {
fullySpecified: false, test: /\.m?js/,
}, resolve: {
} as any, fullySpecified: false,
},
} as any,
]
: []),
{ {
test: /\.(js|cjs|mjs)$/, test: /\.(js|cjs|mjs)$/,
issuerLayer: 'api', issuerLayer: 'api',
......
...@@ -144,6 +144,7 @@ export type NextConfig = { [key: string]: any } & { ...@@ -144,6 +144,7 @@ export type NextConfig = { [key: string]: any } & {
outputFileTracing?: boolean outputFileTracing?: boolean
concurrentFeatures?: boolean concurrentFeatures?: boolean
serverComponents?: boolean serverComponents?: boolean
fullySpecified?: boolean
} }
} }
...@@ -224,6 +225,7 @@ export const defaultConfig: NextConfig = { ...@@ -224,6 +225,7 @@ export const defaultConfig: NextConfig = {
outputFileTracing: false, outputFileTracing: false,
concurrentFeatures: false, concurrentFeatures: false,
serverComponents: false, serverComponents: false,
fullySpecified: false,
}, },
future: { future: {
strictPostcssConfiguration: false, strictPostcssConfiguration: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment