New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support import attributes in istanbul coverage #5537
Comments
The log looks like a babel, but I don't think Vite or Vitest uses babel transform internally. The issue might be in one of your plugins which is running babel. Can you provide a reproduction? |
Hello @hi-ogawa Some comments:
Error message:
I expect this error to be gone. In other words: I expect Vitest Browser Mode to support importing .json files. |
Thanks for the reproduction. Yeah, I couldn't find It looks like a minimal repro is to run This could be a bug or probably just an unfortunate limitation, so you might really need to deal with babel yourself. |
This is the Istanbul part using Babel that Vitest uses: https://github.com/istanbuljs/istanbuljs/blob/main/packages/istanbul-lib-instrument/src/instrumenter.js Getting new improvements on Istanbul packages can be really slow - even impossible. Maybe we need to patch |
Clear and concise description of the problem + Suggested solution
Written in next message.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: