0cc06ad03b
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.
17 lines
390 B
Python
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"],
|
|
)
|