Closed JasminDreasond closed 11 months ago
1.0.0+ is ESM only. See the link in the error messsage.
But I'm using an ES environment. Your module thinks I'm not in an ES environment. I am natively using Vite's own environment.
I renamed the file vite.config.js to vite.config.mjs and this is working now. Your module was using the file name as a reference to know if it was an ESM or not.
I made this update progress:
Bump vite-plugin-static-copy from 0.17.1 to 1.0.0
Now the module no longer loads on Vite in any way.
When I downgraded, everything went back to normal. So the problem is in the version 1.0.0