Replies: 2 comments 2 replies
-
|
Vite doesn't support |
Beta Was this translation helpful? Give feedback.
-
|
This might be interesting as a feature request on Vitest (for example, Vitest recently supported However, I imagine it would be tricky to support this since I don't think it can just work like "disable import.meta transform". Note that the source code (unless it's externalized) will be executed by So, Vitest probably requires implementing this based on the 2nd argument version of I think it would be helpful if you can provide more details on "I need NodeJS's built-in
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using vitest to test my NodeJS project which uses
import.meta.resolvein ESM mode, now I encounter an error like:It seems vite transform
import.metainto__vite_ssr_import_meta__, which I didn't find a config to disable, however I need NodeJS's built-inimprt.meta.resolveto work.Beta Was this translation helpful? Give feedback.
All reactions