You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A question: ES modules are great but still not exactly widely supported. They cause all kinds of issues with node and related tooling, such as Jest and TypeScript. Would it be possible to make the block.js import in the JS version use a require() instead?
The text was updated successfully, but these errors were encountered:
If there's a concern that replacing ESM w/ CommonJS would break existing users, you could just add another file with the CommonJS version. It's just one function and would increase usability a lot. Currently I have vendored this lib.
Thank you for this awesome library.
A question: ES modules are great but still not exactly widely supported. They cause all kinds of issues with node and related tooling, such as Jest and TypeScript. Would it be possible to make the
block.js
import in the JS version use arequire()
instead?The text was updated successfully, but these errors were encountered: