diff --git a/common.bazelrc b/common.bazelrc index f561c064ba..86c594f9e2 100644 --- a/common.bazelrc +++ b/common.bazelrc @@ -15,6 +15,13 @@ build --symlink_prefix=dist/ # build --symlink_prefix=/ # however this makes it harder to find outputs. +# Make compilation fast, by keeping a few copies of the compilers +# running as workers. These can cache SourceFile AST's to reduce parse time. +# You can control how many workers, see +# https://docs.bazel.build/versions/master/command-line-reference.html#flag--worker_max_instances +build --strategy=AngularTemplateCompile=worker +build --strategy=TypeScriptCompile=worker + # Specifies desired output mode for running tests. # Valid values are # 'summary' to output only test status summary