justinribeiro / lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.
https://www.npmjs.com/package/@justinribeiro/lite-youtube
MIT License
836 stars 63 forks source link

Package should specify that it's a module #75

Closed ridem closed 1 year ago

ridem commented 1 year ago

When using this package with Vite, I'm getting the following error:

@justinribeiro/lite-youtube 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.

See source

Given the package is built as an ES module, I'm suggesting adding "type": "module" to package.json