Closed jtiala closed 1 month ago
When using babel plugins (at least the formatjs plugin) in Vite config, vitest extension throws error Error: Cannot find package 'babel-plugin-formatjs' imported from /babel-virtual-resolve-base.js when one of the test files changes.
Error: Cannot find package 'babel-plugin-formatjs' imported from /babel-virtual-resolve-base.js
https://github.com/jtiala/vitest-vscode-babel-plugin-bug-repro
sum.test.ts
[INFO 9.02.48] Running 1 file(s) with name pattern: ^\s?adds 1 \+ 2 to equal 3$ [Worker] Collecting tests due to file changes: src/sum.test.ts
v0.10.2
Describe the bug
When using babel plugins (at least the formatjs plugin) in Vite config, vitest extension throws error
Error: Cannot find package 'babel-plugin-formatjs' imported from /babel-virtual-resolve-base.js
when one of the test files changes.Reproduction
https://github.com/jtiala/vitest-vscode-babel-plugin-bug-repro
sum.test.ts
and save.Error: Cannot find package 'babel-plugin-formatjs' imported from /babel-virtual-resolve-base.js
Output
Version
v0.10.2
Validations