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
This adds some basic tests to make sure that the ESM and CJS builds are
working. It's easy to accidentally add a library that doesn't work with one of
the builds, or to do something that pushes the library under a `default`
property on the CJS build. I've added and reverted a few commits here that
demonstrate these issues and the tests catching them.
In particular, see these commits which introduce different errors:
* a182acf - Introduce an ESM-only dependency
* 019fd03 - Force the CJS build to export the library under `.default`
* 495f335 - Use a CJS only library as an ESM import
Closes#63
Merges #84
LGTM given by: @katiemckeon
We should add explicit tests that the ESM and CJS build outputs can be imported. It's easy for a CJS-only library to sneak in and break the ESM build.
The text was updated successfully, but these errors were encountered: