2 ms·
Exactly my thoughts. The only incompatibility with Bun is the unavailability of the `using` keyword: > If you are using Bun (which doesn't natively support usi
by kretaceous 10mo ago
Exactly my thoughts. The only incompatibility with Bun is the unavailability of the `using` keyword:
> If you are using Bun (which doesn't natively support using and uses a transpiler which is incompatible with this library)...
I skimmed the issues but I couldn't find any issues on Bun regarding this except for: https://github.com/oven-sh/bun/discussions/4325 https://github.com/oven-sh/bun/discussions/4325
- W4G1 10mo agoI added a bit more information about Bun compatibility: > While Bun is supported and Bun does support the `using` keyword, it's runtime automatically creates a polyfill for it whenever Function.toString() is called. This transpiled code relies on specific internal globals made available in the context where the function is serialized. Because the worker runs in a different isolated context where these globals are not registered, code with `using` will fail to execute.