1
0
Fork 0
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:
Naoyuki Kanezawa 2016-11-14 13:43:31 +09:00 committed by GitHub
parent 03db7d78a6
commit c60ed0b730

View file

@ -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: [