Closed yqkqknct closed 1 year ago
Yeah, I can fix this but as I mentioned in the original issue, this will probably keep on breaking since we have a minimum feature requirement (as a form of node version). No tests catch this error since old versions that don't support bigint literals are not officially supported. You should fix this by changing the target environment if possible.
We're using Vite (which using esbuild) to build production code for browser. Our build target is "chrome64", "edge79", "es2020", "firefox67", "safari12" and it throws the error during build. A prior issue seems to solve the big int literal issue https://github.com/koskimas/kysely/issues/142 but the issue seems to be back in 0.23.5, in commit https://github.com/koskimas/kysely/commit/278d31f472f724a3a84c22146e2d4b23063cd36e Therefore, we downgrade to 0.23.4 and the build process went well. I guess this can be using BigInt(0) syntax as well, similar to this fix (https://github.com/koskimas/kysely/issues/142)?