Closed yuanchuan closed 3 years ago
Using ES Module will make a lot of typescript users unable to upgrade to new version, because when we use "module": "commonjs"
in tsconfig.json
, we get:
Error [ERR_REQUIRE_ESM]: require() of ES Module ... from ... not supported.
I've decided not to touch the code unless necessary :)
Maybe it's time to rewrite it with new ES syntax