anki/ts/svelte/BUILD.bazel
Damien Elmes 0cc06ad03b switch Svelte compilation to worker model
based on changes from upstream rules_svelte

Their code was using run_node() instead of ctx.actions.run(), which
seems to create a new worker for every CPU core, instead of respecting
the standard limit of 4.
2021-03-20 22:52:35 +10:00

17 lines
390 B
Python

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
nodejs_binary(
name = "svelte_bin",
data = [
":svelte.js",
"@npm//@bazel/worker",
"@npm//sass",
"@npm//svelte",
"@npm//svelte-preprocess",
"@npm//svelte2tsx",
"@npm//typescript",
],
entry_point = ":svelte.js",
visibility = ["//visibility:public"],
)