fix: specify own Node version as target when bundling config files by SegaraRai · Pull Request #17307 · vitejs/vite (original) (raw)
By splitting the test file, the import attributes test can now be run conditionally.
I wanted to use dynamic imports in the test files for feature detection, but this was not possible because all imports in the test code are rewritten by Vitest (Vite).
Tested with v18.12.0, v18.19.0, v18.20.0, v20.12.0, and v22.0.0.
From v20.0.0 to v20.11.0, for unknown reasons, a problem occurred in another part of the system and the test could not be run.