Unverified Commit ef2cda80 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

chore: polish warning for esmExternals (#71082)

parent a52dcd54
......@@ -122,7 +122,7 @@ function warnCustomizedOption(
if (!silent && current !== defaultValue) {
Log.warn(
`The "${key}" option has been modified. ${customMessage ? customMessage + '. ' : ''}Please update your ${configFileName}.`
`The "${key}" option has been modified. ${customMessage ? customMessage + '. ' : ''}It should be removed from your ${configFileName}.`
)
}
}
......
......@@ -16,7 +16,7 @@ import { findAllTelemetryEvents } from 'next-test-utils'
await next.fetch('/')
expect(next.cliOutput).toContain(
`The "experimental.esmExternals" option has been modified. experimental.esmExternals is not recommended to be modified as it may disrupt module resolution. Please update your next.config.js`
`The "experimental.esmExternals" option has been modified. experimental.esmExternals is not recommended to be modified as it may disrupt module resolution. It should be removed from your next.config.js`
)
})
......
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