Closed corysimmons closed 4 years ago
Hi @corysimmons,
In retrospective I would have used named exports since they play nicer with a lot of editor features and work in both systems.
You can still use the require()
notation as with any ESM optimized package, just add .default
to it. The main
build (node/index.js
) is a CJS build so there should be no compatibility issue.
.default
🤩 TIL. Thank you!
Build to commonjs please?