You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resolveId method on plugins which return a virtual module is called a second time with the previously resolved module id. It seems odd this would happen which made me question if this the intended behavior?
This came up while troubleshooting import errors using the plugin from lezer-parser/generator which uses virtual modules to load *.grammar.terms imports. I've opened an issue there (lezer-parser/generator#21), but the question that this may be a bug in vitest was raised in that discussion.
Thank you for any assistance & guidance you can provide ❤️
Describe the bug
The
resolveId
method on plugins which return a virtual module is called a second time with the previously resolved module id. It seems odd this would happen which made me question if this the intended behavior?This came up while troubleshooting import errors using the plugin from lezer-parser/generator which uses virtual modules to load
*.grammar.terms
imports. I've opened an issue there (lezer-parser/generator#21), but the question that this may be a bug in vitest was raised in that discussion.Thank you for any assistance & guidance you can provide ❤️
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-yzpqjh?file=README.md
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: