Commit c60ed0b7 authored by Naoyuki Kanezawa's avatar Naoyuki Kanezawa Committed by GitHub

webpack: load modules from NODE_PATH too (#233)

* webpack: load modules from NODE_PATH too

* fix splitting NODE_PATH
parent 03db7d78
...@@ -152,7 +152,10 @@ export default async function createCompiler (dir, { hotReload = false } = {}) { ...@@ -152,7 +152,10 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
root: [ root: [
nodeModulesDir, nodeModulesDir,
join(dir, 'node_modules') join(dir, 'node_modules')
] ].concat(
(process.env.NODE_PATH || '')
.split(process.platform === 'win32' ? ';' : ':')
)
}, },
resolveLoader: { resolveLoader: {
root: [ root: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment