|
| 1 | +load("@npm//@angular/dev-infra-private/bazel:extract_js_module_output.bzl", "extract_js_module_output") |
1 | 2 | load("@build_bazel_rules_nodejs//:index.bzl", "pkg_web") |
2 | 3 | load("//tools:create-system-config.bzl", "create_system_config") |
3 | 4 | load("//tools:defaults.bzl", "ng_module", "sass_binary") |
4 | | -load("//tools:es5-module-output.bzl", "es5_module_output") |
5 | 5 | load("//tools/dev-server:index.bzl", "dev_server") |
6 | 6 |
|
7 | 7 | package(default_visibility = ["//visibility:public"]) |
@@ -200,8 +200,15 @@ dev_server( |
200 | 200 |
|
201 | 201 | # Collects all ES5 JavaScript files which are required to serve the dev-app. By default, |
202 | 202 | # ts_library and ng_module targets only expose the type definition files as outputs. |
203 | | -es5_module_output( |
| 203 | +extract_js_module_output( |
204 | 204 | name = "dev_app_js_sources", |
| 205 | + include_declarations = False, |
| 206 | + include_default_files = True, |
| 207 | + # `JSModuleInfo` resolves to the ES5 sources from TypeScript targets. See: |
| 208 | + # https://github.com/bazelbuild/rules_nodejs/blob/stable/packages/typescript/internal/build_defs.bzl#L334-L337 |
| 209 | + # Note: We cannot use the named JS module provider because not all dependencies are |
| 210 | + # necessarily captured as named module. See: https://github.com/angular/components/commit/94289397cac94ca86a292b2cd64945df52bbb7fb. |
| 211 | + provider = "JSModuleInfo", |
205 | 212 | tags = ["manual"], |
206 | 213 | deps = [":dev-app"], |
207 | 214 | ) |
|
0 commit comments