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