SeregPie / VueWordCloud

Generates a cloud out of the words.
https://seregpie.github.io/VueWordCloud/
MIT License
387 stars 60 forks source link

fix: Add ESM compatibility #64

Open leovoon opened 1 year ago

leovoon commented 1 year ago

Node.js treats files with a .js extension as ES modules when the nearest parent package.json file contains a top-level "type" field with a value of "module". If the "type" field is not present in the package.json file, or it contains "type": "commonjs", .js files are treated as CommonJS nodejs.org.

https://publint.dev/vuewordcloud@19.0.0

Please review and merge this pull request to promote ESM compatibility and improve the package's versatility across different environments. Thanks for your attention.