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 fb0c536 commit e598c30Copy full SHA for e598c30
lib/serialize-error.js
@@ -39,7 +39,8 @@ function buildSource(source) {
39
const file = path.resolve(projectDir, source.file.trim());
40
const rel = path.relative(projectDir, file);
41
42
- const isWithinProject = rel.split(path.sep)[0] !== '..';
+ const [segment] = rel.split(path.sep);
43
+ const isWithinProject = segment !== '..' && (process.platform !== 'win32' || !segment.includes(':'));
44
const isDependency = isWithinProject && path.dirname(rel).split(path.sep).includes('node_modules');
45
46
return {
0 commit comments