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(
rules: [
// TODO: FIXME: do NOT webpack 5 support with this
// x-ref: https://github.com/webpack/webpack/issues/11467
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
} as any,
...(!config.experimental.fullySpecified
? [
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
} as any,
]
: []),
{
test: /\.(js|cjs|mjs)$/,
issuerLayer: 'api',
......
......@@ -144,6 +144,7 @@ export type NextConfig = { [key: string]: any } & {
outputFileTracing?: boolean
concurrentFeatures?: boolean
serverComponents?: boolean
fullySpecified?: boolean
}
}
......@@ -224,6 +225,7 @@ export const defaultConfig: NextConfig = {
outputFileTracing: false,
concurrentFeatures: false,
serverComponents: false,
fullySpecified: false,
},
future: {
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