Unverified Commit a5ad06f9 authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by GitHub

the externals option is undefined for client builds (#6983)

parent 139b1487
...@@ -80,7 +80,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug = ...@@ -80,7 +80,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
devtool: (dev || debug) ? 'cheap-module-source-map' : false, devtool: (dev || debug) ? 'cheap-module-source-map' : false,
name: isServer ? 'server' : 'client', name: isServer ? 'server' : 'client',
target: isServer ? 'node' : 'web', target: isServer ? 'node' : 'web',
externals: isServer && target !== 'serverless' ? [ externals: !isServer ? undefined : target !== 'serverless' ? [
(context, request, callback) => { (context, request, callback) => {
const notExternalModules = [ const notExternalModules = [
'next/app', 'next/document', 'next/link', 'next/error', 'next/app', 'next/document', 'next/link', 'next/error',
......
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