Use of Big Integers limits browser support
toBeOfUse opened this issue · 1 comments
toBeOfUse commented
cuid2 recently started using the newer JavaScript BigInt type. BigInts require ES2020 and are supported only by 95% of browsers. Polyfills for BigInts are slow and unpopular; ESBuild won't support one and Babel "doesn't support transforming BigInts.". Is support for the 1 in 20 people who use a non-BigInt-compatible browser on your radar?
muratgozel commented
yeah, use of bigint prevent us using it in browser environments. specifically this function:
Line 20 in 53e246b
and according to the comment in here, its tricky:
evanw/esbuild#732
😞