mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
* Switches away from the ESM-incompatible & unmaintained `ts_devserver` to `http_server`. This is the canonical server maintained by dev-infra * Switches tests away from CommonJS specific logic. e.g. require.resolve * Adjusts tests to work with Protractor spec bundling (Protractor does not support ESM execution, but we want to take ESM-written specs) * Reworks playground and benchmarks to use `app_bundle` and `esbuild` instead of loading hundreds of files individually. This also makes tests more stable and more aligned with real applications. PR Close #48521
19 lines
579 B
Text
19 lines
579 B
Text
load("//modules/playground/e2e_test:example_test.bzl", "example_test")
|
|
|
|
example_test(
|
|
name = "sourcemap",
|
|
srcs = glob(["**/*.ts"]),
|
|
data = [
|
|
"//modules/playground/src/sourcemap:app_bundle",
|
|
"//modules/playground/src/sourcemap:index.ts",
|
|
"@npm//source-map",
|
|
],
|
|
# Source-Map is using WASM and cannot be bundled for specs.
|
|
external = ["source-map"],
|
|
server = "//modules/playground/src/sourcemap:devserver",
|
|
use_legacy_webdriver_types = False,
|
|
deps = [
|
|
"@npm//@bazel/runfiles",
|
|
"@npm//source-map",
|
|
],
|
|
)
|