generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Bug]: bazel_sandbox_plugin is very slow #190
Comments
By caching the resolution results for certain paths, I was able to decrease the plugin run time on one project for me from about ~7.5s to ~3.5s. I'm going to try messing with the go plugin first before I create a PR though. For anyone interested, my changed bazel-sandbox.js:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
#160 added a JavaScript plugin.
Users report on Slack that this new feature in 0.18.0 increases bundling times by an unacceptable amount.
Maybe it can simply be optimized.
Or it could use the esbuild Go API instead if someone has the time to evaluate that and re-write it.
Setting https://github.com/aspect-build/rules_esbuild/blob/main/docs/esbuild.md#esbuild_bundle-bazel_sandbox_plugin to
False
is the workaround, though it reverts to earlier behavior of non-hermetic esbuild sometimes not picking up changes.Version
0.18.0
How to reproduce
No response
Any other information?
No response
The text was updated successfully, but these errors were encountered: