Closed kaaax0815 closed 3 years ago
Support both ESM and CommonJS
Example for this is this blog post: https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html
I don't plan to make it universal. Please read: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#gistcomment-3850849
Support both ESM and CommonJS
Example for this is this blog post: https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html