Skip to content

Commit 5e0b8ec

Browse files
devversionjelbourn
authored andcommitted
build: update rules sass version (#16812)
Updates the version of `rules_sass` and enables worker compilation. Sass compilation actions were generally a pain-point within the current Bazel pipeline, but the workers fix this bottleneck.
1 parent fc7ec9f commit 5e0b8ec

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ build:release --workspace_status_command="node ./tools/bazel-stamp-vars.js"
4444
# running as daemons, and cache SourceFile AST's to reduce parse time.
4545
build --strategy=TypeScriptCompile=worker
4646
build --strategy=AngularTemplateCompile=worker
47+
build --strategy=SassCompiler=worker
4748

4849
################################
4950
# Temporary Settings for Ivy #

WORKSPACE

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ http_archive(
1212
# Add sass rules
1313
http_archive(
1414
name = "io_bazel_rules_sass",
15-
sha256 = "4f05239080175a3f4efa8982d2b7775892d656bb47e8cf56914d5f9441fb5ea6",
16-
strip_prefix = "rules_sass-86ca977cf2a8ed481859f83a286e164d07335116",
17-
url = "https://github.com/bazelbuild/rules_sass/archive/86ca977cf2a8ed481859f83a286e164d07335116.zip",
15+
sha256 = "ad08e8c82aa1f48b72dc295cb83bba33f514cdf24cc7b0e21e9353f20f0dc147",
16+
strip_prefix = "rules_sass-5d1b26f8cd12c5d75dd359f9291090b341e8fd52",
17+
# We need to use a version that includes SHA 5d1b26f8cd12c5d75dd359f9291090b341e8fd52 of
18+
# the "rules_sass" repository as it adds support for workers.
19+
url = "https://github.com/bazelbuild/rules_sass/archive/5d1b26f8cd12c5d75dd359f9291090b341e8fd52.zip",
1820
)
1921

2022
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")

0 commit comments

Comments
 (0)