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

Make sure externals is an array (#30466)

Co-authored-by: 's avatarTobias Koppers <tobias.koppers@googlemail.com>
parent 32927136
......@@ -901,10 +901,7 @@ export default async function getBaseWebpackConfig(
? // make sure importing "next" is handled gracefully for client
// bundles in case a user imported types and it wasn't removed
// TODO: should we warn/error for this instead?
{
next: 'next',
...(webServerRuntime ? { etag: '{}', chalk: '{}' } : {}),
}
['next', ...(webServerRuntime ? [{ etag: '{}', chalk: '{}' }] : [])]
: !isServerless
? [
({
......
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