Skip to content

Commit

Permalink
fix: process only local mjs and cjs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 9, 2022
1 parent d00dc72 commit 83da75f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/config.ts
Expand Up @@ -66,8 +66,8 @@ export function resolveConfig(
// but then our mocker will not work properly
resolved.deps.inline ??= []
resolved.deps.inline.push(
/\.mjs$/,
/\.cjs\.js$/,
/^(?!.*(?:node_modules)).*\.mjs$/,
/^(?!.*(?:node_modules)).*\.cjs\.js$/,
/\/vitest\/dist\//,
// yarn's .store folder
/vitest-virtual-\w+\/dist/,
Expand Down

0 comments on commit 83da75f

Please sign in to comment.