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.
1 parent 972212f commit 7a0f5faCopy full SHA for 7a0f5fa
src/file-system-loader.js
@@ -36,14 +36,6 @@ export default class FileSystemLoader {
36
rootRelativePath = path.resolve( relativeDir, newPath ),
37
fileRelativePath = path.resolve( path.join( this.root, relativeDir ), newPath )
38
39
- // if the path is not relative or absolute, try to resolve it in node_modules
40
- if (newPath[0] !== '.' && newPath[0] !== '/') {
41
- try {
42
- fileRelativePath = require.resolve(newPath);
43
- }
44
- catch (e) {}
45
46
-
47
const tokens = this.tokensByFile[fileRelativePath]
48
if (tokens) { return resolve(tokens) }
49
0 commit comments