Skip to content

Commit

Permalink
chore: don't force storing external in root if it's not in node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 9, 2022
1 parent 4fdac41 commit bab2859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/mocker.ts
Expand Up @@ -91,7 +91,7 @@ export class VitestMocker {
const path = await this.options.resolveId(id, importer)
return {
path: normalizeId(path?.id || id),
external: path?.external || path?.id.includes('/node_modules/') ? id : null,
external: path?.id.includes('/node_modules/') ? id : null,
}
}

Expand Down

0 comments on commit bab2859

Please sign in to comment.