toggle icon indicating copy to clipboard operation
toggle copied to clipboard

VitePress warning about package not written in CJS

Open staghouse opened this issue 3 years ago • 1 comments

I am using this package in a VitePress setup i have and during build time I am alerted to this warning:

@vueform/toggle doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix

It does not seem to be breaking anything but just wanted to point it out incase this is a fix that should take place.

staghouse avatar Jul 30 '22 17:07 staghouse

This is now breaking in the latest version of VitePress which now uses Vite 3

staghouse avatar Aug 17 '22 15:08 staghouse

Feel free to reopen with a reproducible example if still relevant.

adamberecz avatar Dec 20 '22 07:12 adamberecz