-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Bazel OOM when using swc rules for a large repo #76
Comments
How much memory does the machine have to work with and how many typescript files do you have in your repository? Using swc as the transpiler creates one target per typescript file which can make for a very large graph. |
We have 32GB machine and a repository of 1200 typescript files. I also noticed that |
I wonder if the use of rules_js contributed to the large amount of starlark heap used. The next release includes #57 which might help. I think we need the profile from bazel. @ewianda if you're still able to repro after the next release here, would you mind following https://bazel.build/rules/performance#memory-profiling to get an output of |
Sorry, @alexeagle and @gregmagolan I should have reported back earlier. This error went away after we migrated from rules_nodejs to rules_js. |
Awesome thank you for confirming! |
I am trying to migrate a large code base to using swc transpiler and I keep getting
The only difference I see in my config is the use of
--enable_runfiles
. I have looked into the code tounderstand why this flag is needed and if it is possible to turn it off.
The text was updated successfully, but these errors were encountered: