LingDong- / q5xjs

A small and fast alternative (experimental) implementation of p5.js
https://q5xjs.netlify.app/
The Unlicense
549 stars 25 forks source link

add support for use as an ESM module #13

Open davidbwaters opened 3 years ago

davidbwaters commented 3 years ago

All you would have to do is prepend export default to the main file and it would me much easier to use with npm managed projects. you could name it 'q5.esm.js' or something, but I would recommend pointing the package.json main filed to this version and it would work out of the box with node.

s-rd commented 3 years ago

I'm doing this currently (adding export default) with the min.js, but would be great to have this out of the box. +1