mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix webpack resolve paths (#592)
This commit is contained in:
parent
f2483cfe1c
commit
1e308c7118
|
@ -49,7 +49,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false
|
|||
}
|
||||
|
||||
const nextNodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules')
|
||||
const appNodeModulesDir = join(dir, 'node_modules')
|
||||
const minChunks = pages.filter((p) => p !== documentPage).length
|
||||
|
||||
const plugins = [
|
||||
|
@ -188,7 +187,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false
|
|||
resolve: {
|
||||
modules: [
|
||||
nextNodeModulesDir,
|
||||
appNodeModulesDir
|
||||
'node_modules'
|
||||
].concat(
|
||||
(process.env.NODE_PATH || '')
|
||||
.split(process.platform === 'win32' ? ';' : ':')
|
||||
|
@ -198,7 +197,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false
|
|||
resolveLoader: {
|
||||
modules: [
|
||||
nextNodeModulesDir,
|
||||
appNodeModulesDir,
|
||||
'node_modules',
|
||||
join(__dirname, 'loaders')
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue