mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
webpack: load modules from NODE_PATH too (#233)
* webpack: load modules from NODE_PATH too * fix splitting NODE_PATH
This commit is contained in:
parent
03db7d78a6
commit
c60ed0b730
|
@ -152,7 +152,10 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
|
|||
root: [
|
||||
nodeModulesDir,
|
||||
join(dir, 'node_modules')
|
||||
]
|
||||
].concat(
|
||||
(process.env.NODE_PATH || '')
|
||||
.split(process.platform === 'win32' ? ';' : ':')
|
||||
)
|
||||
},
|
||||
resolveLoader: {
|
||||
root: [
|
||||
|
|
Loading…
Reference in a new issue