LingDong- / q5xjs

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

add cjs/esm compatibility #15

Closed EnderShadow8 closed 3 years ago

EnderShadow8 commented 3 years ago

Fixes #3 and #13

Adds an optional module.exports CJS export which can also be comsumed by both CJS require and ESM import.

EnderShadow8 commented 3 years ago

@LingDong- You'll need to publish the new version to npm as well. Thanks

EnderShadow8 commented 3 years ago

Hi @LingDong-

It seems like the new changes have not been reflected in the 0.0.4 npm release, and my bundler is rejecting the import. Could you fix this?

Thanks

LingDong- commented 3 years ago

sorry about that! my mistake. Just published 0.0.5