1
0
Fork 0
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:
nkzawa 2016-10-06 09:37:42 +09:00
parent 9b06a22f31
commit 0cc1ed0516

View file

@ -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')