mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
1a02b0efa4
commit
af7b875a18
|
@ -106,7 +106,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
|
||||||
// We need to move react-dom explicitly into common chunks.
|
// We need to move react-dom explicitly into common chunks.
|
||||||
// Otherwise, if some other page or module uses it, it might
|
// Otherwise, if some other page or module uses it, it might
|
||||||
// included in that bundle too.
|
// included in that bundle too.
|
||||||
if (module.context.indexOf(`${sep}react-dom${sep}`) >= 0) {
|
if (module.context && module.context.indexOf(`${sep}react-dom${sep}`) >= 0) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue