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
Error: Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .zip file format, or if it's an asset, add "**/*.zip" to `assetsInclude` in your configuration.
Plugin: vite:import-analysis
I don't think this can be supported in any intuitive way. Probably you can try execArgvhttps://vitest.dev/config/#pooloptions-forks-execargv to pass custom loader and external, but I don't think it can give effective testing for custom loader.
I would suggest using a different approach for custom loader testing.
Describe the bug
https://nodejs.org/api/module.html#customization-hooks
the vitest transform the import and raise error.
/* @vite-ignore */
can not work.I have to use the pure js to test
node --import ./dist/index.js test/loader.test.js
Reproduction
https://github.com/isdk/node-zip-loader.js/
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: