mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3c9b4b51e2
* 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
20 lines
579 B
Python
20 lines
579 B
Python
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",
|
|
],
|
|
)
|