You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the esbuild module to build something that contains plugins, the sandbox plugin ends up in an infinite recursion. It keeps going until it eventually runs out of memory.
This happens because the sandbox sets otherOptions.pluginData.executedSandboxPlugin and expects it to be passed back, however if esbuild has other plugins defined it is not guaranteed that the other plugin will pass it otherOptions again (as this is not required by the esbuild plugin specification).
I've tried to fix it but without much luck (I'm not a js dev). Disabling the sandbox solves the problem but it's obviously not ideal 😄
The text was updated successfully, but these errors were encountered:
What happened?
When using the esbuild module to build something that contains plugins, the sandbox plugin ends up in an infinite recursion. It keeps going until it eventually runs out of memory.
Version
osx, bazel 7.2.0rc1, rules_esbuild from git
How to reproduce
The bug was introduced by #160 / e39ac34
I am able to reproduce it with this minimal esbuild config:
Any other information?
This happens because the sandbox sets
otherOptions.pluginData.executedSandboxPlugin
and expects it to be passed back, however if esbuild has other plugins defined it is not guaranteed that the other plugin will pass itotherOptions
again (as this is not required by the esbuild plugin specification).I've tried to fix it but without much luck (I'm not a js dev). Disabling the sandbox solves the problem but it's obviously not ideal 😄
The text was updated successfully, but these errors were encountered: