We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 729552b + 5e2c8c8 commit fd93d3fCopy full SHA for fd93d3f
file-system-loader.js
@@ -69,8 +69,15 @@ 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 {
- fileRelativePath = nodeResolve.sync(newPath, { basedir: rootRelativeDir });
77
+ fileRelativePath = nodeResolve.sync(newPath, {
78
+ basedir: rootRelativeDir,
79
+ paths: paths
80
+ });
81
// in this case we need to actualize rootRelativePath too
82
rootRelativePath = _path2['default'].relative(_this.root, fileRelativePath);
83
} catch (e) {}
0 commit comments