We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee49528 commit fae2bb9Copy full SHA for fae2bb9
src/system/FileLoader.ts
@@ -48,8 +48,9 @@ export default class FileLoader {
48
//get the absolute path
49
pathname = path.resolve(pwd, pathname);
50
}
51
- //check if path is not already absolute on all os
52
- if (!path.isAbsolute(pathname)) {
+ //if the pathname is not already absolute,
+ //the path should start with modules
53
+ if (!path.isAbsolute(pathname)) {
54
let cwd = pwd;
55
do {
56
const module = path.resolve(cwd, 'node_modules', pathname);
0 commit comments