angular/modules/playground/e2e_test/sourcemap/BUILD.bazel
Paul Gschwendtner 3c9b4b51e2 refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521)
* 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
2022-12-19 19:50:44 +00:00

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",
],
)