tsc-esm-fix

Make tsc-compiled `es2020/esnext` bundles compatible with esm/mjs requirements