Closed junderw closed 2 years ago
Currently v2 only supports modules. This makes it hard for people using tooling that doesn't support ESM yet.
This will allow someone to use require against this package, making tools like ts-node work while maintaining compatibility with ESM simultaneously.
......... I also add a retry counter to the endless loop (when react app was broken it would freeze up, this would prevent that and cause an error in the console instead)
Currently v2 only supports modules. This makes it hard for people using tooling that doesn't support ESM yet.
This will allow someone to use require against this package, making tools like ts-node work while maintaining compatibility with ESM simultaneously.