diff --git a/packages/core/test/bundling/animation_world/BUILD.bazel b/packages/core/test/bundling/animation_world/BUILD.bazel index 5a2d4ecd6a..b31957d684 100644 --- a/packages/core/test/bundling/animation_world/BUILD.bazel +++ b/packages/core/test/bundling/animation_world/BUILD.bazel @@ -2,6 +2,7 @@ package(default_visibility = ["//visibility:public"]) load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle") load("@build_bazel_rules_nodejs//:defs.bzl", "http_server") +load("@npm_bazel_typescript//:index.bzl", "ts_devserver") ng_module( name = "animation_world", @@ -30,8 +31,32 @@ ng_rollup_bundle( ], ) -http_server( +ts_devserver( name = "devserver", + additional_root_paths = [ + "npm/node_modules/tslib", + ], + entry_module = "@angular/core/test/bundling/animation_world", + scripts = [ + "//tools/rxjs:rxjs_umd_modules", + ], + # Use a serving_path that matches the common static index.html used + # in both devserver & prodserver + serving_path = "/bundle.min.js.br", + static_files = [ + "animation_world.css", + "base.css", + "index.html", + "@npm//tslib", + ], + tags = [ + "ivy-only", + ], + deps = [":animation_world"], +) + +http_server( + name = "prodserver", data = [ "animation_world.css", "base.css", diff --git a/packages/core/test/bundling/animation_world/index.html b/packages/core/test/bundling/animation_world/index.html index ce1cabc646..17a2c8b6f8 100644 --- a/packages/core/test/bundling/animation_world/index.html +++ b/packages/core/test/bundling/animation_world/index.html @@ -25,7 +25,7 @@ -->