mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
make react external on webpack
This commit is contained in:
parent
9b06a22f31
commit
0cc1ed0516
|
@ -55,7 +55,10 @@ export function bundle (path, { root = process.cwd() } = {}) {
|
|||
'next/head',
|
||||
'next/link',
|
||||
'next/component',
|
||||
'next/app'
|
||||
'next/app',
|
||||
{
|
||||
[require.resolve('react')]: 'react'
|
||||
}
|
||||
],
|
||||
resolveLoader: {
|
||||
root: resolve(__dirname, '..', '..', 'node_modules')
|
||||
|
|
Loading…
Reference in a new issue