mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9cb9161876
Can be served by running bazel run //aio:serve
20 lines
697 B
Python
20 lines
697 B
Python
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
nodejs_binary(
|
|
name = "generate-stackblitz",
|
|
data = [
|
|
"builder.mjs",
|
|
"//aio/tools/transforms",
|
|
"@aio_npm//canonical-path",
|
|
"@aio_npm//fs-extra",
|
|
"@aio_npm//globby",
|
|
"@aio_npm//jsdom",
|
|
],
|
|
entry_point = "generateStackblitz.mjs",
|
|
# --preserve-symlinks-main is not enabled by default (see https://github.com/bazelbuild/rules_nodejs/pull/2176)
|
|
# However it seems to be required for mjs entry points to resolve node_modules within the sandbox.
|
|
templated_args = ["--node_options=--preserve-symlinks-main"],
|
|
)
|