Skip to content

Commit b729846

Browse files
committed
build: adjust sass compiler to work with rules_js
Migrates our custom Sass compiler to `rules_js`.
1 parent 149fe61 commit b729846

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tools/sass/BUILD.bazel

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
1+
load("@aspect_rules_js//js:defs.bzl", "js_binary")
22
load("//tools:defaults2.bzl", "ts_project")
33

44
package(default_visibility = ["//visibility:public"])
@@ -19,9 +19,13 @@ ts_project(
1919
],
2020
)
2121

22-
nodejs_binary(
22+
js_binary(
2323
name = "compiler",
24-
data = [":sass_lib"],
25-
entry_point = "compiler-main.ts",
26-
templated_args = ["--bazel_patch_module_resolver"],
24+
data = [":sass_lib_rjs"],
25+
entry_point = "compiler-main.js",
26+
env = {
27+
# TODO(devversion): Replace `rules_sass` with modernized standalone ruleset.
28+
# e.g. https://github.com/devversion/rules_sass.
29+
"BAZEL_BINDIR": ".",
30+
},
2731
)

0 commit comments

Comments
 (0)