We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1220cda commit 5e2c8c8Copy full SHA for 5e2c8c8
file-system-loader.js
@@ -69,10 +69,14 @@ var FileSystemLoader = (function () {
69
70
// if the path is not relative or absolute, try to resolve it in node_modules
71
if (newPath[0] !== '.' && newPath[0] !== '/') {
72
+ var paths;
73
+ if (process.env.NODE_PATH) {
74
+ paths = process.env.NODE_PATH.split(_path2['default'].delimiter);
75
+ }
76
try {
77
fileRelativePath = nodeResolve.sync(newPath, {
78
basedir: rootRelativeDir,
- paths: process.env.NODE_PATH.split(_path2['default'].delimiter)
79
+ paths: paths
80
});
81
// in this case we need to actualize rootRelativePath too
82
rootRelativePath = _path2['default'].relative(_this.root, fileRelativePath);
0 commit comments