-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A report about Safari's WebAssembly implementation being broken #1860
Comments
Just came across this issue as well. Sandbox https://codesandbox.io/s/github/lukedxvxes/esbuild-in-browser/tree/master/?file=/src/bundler/plugins/unpkg-path-plugin.tsx |
Maybe Safari's WebAssembly implementation is just buggy? I get really weird crashes for this in Safari when I run this on the main thread (no web worker involved). Doing that runs fine in Chrome and Firefox. |
@evanw, But Safari is not Chrome and it won't be updated for at least a year... Can we find some kind of intermediate solution, hot to catch the instance falling in order to restart and continue? |
I agree that the way Apple handles Safari updates is very unfortunate. There’s nothing we can do about that though, although I hope that they one day change their minds. You could try to catch errors and reinstantiate esbuild’s library (which you should be able to do without esbuild’s help) but I wouldn’t recommend it. Running esbuild in a buggy VM is also likely to hang forever or to silently produce the wrong output. I can think of the following workarounds:
Realistically I’d probably just put up a banner that says something like “Safari’s WebAssembly implementation is known to be broken. Please use another browser.” |
Thank you for the detailed answer and advice! |
Hi,
I'm on integration esbuild in PlayCode.io.
First of all, thank you very much for the amazing work. Figma and esbuild are incredible.
I came across the fact that in Safari web worker esbuild-wasm does not work. After few runs of build/transform, it throws the an error:
Maximum call stack size exceeded
.Sandbox (open using Safari with opened Safari console).
Code:
A bit better stack trace:
The text was updated successfully, but these errors were encountered: