@@ -12,7 +12,6 @@ load("@npm//@angular/build-tooling/bazel/http-server:index.bzl", _http_server =
12
12
load ("@npm//@angular/build-tooling/bazel:extract_js_module_output.bzl" , "extract_js_module_output" )
13
13
load ("@npm//@bazel/jasmine:index.bzl" , _jasmine_node_test = "jasmine_node_test" )
14
14
load ("@npm//@bazel/protractor:index.bzl" , _protractor_web_test_suite = "protractor_web_test_suite" )
15
- load ("@npm//@bazel/concatjs:index.bzl" , _ts_library = "ts_library" )
16
15
load ("@npm//tsec:index.bzl" , _tsec_test = "tsec_test" )
17
16
load ("//:packages.bzl" , "NO_STAMP_NPM_PACKAGE_SUBSTITUTIONS" , "NPM_PACKAGE_SUBSTITUTIONS" )
18
17
load ("//:pkg-externals.bzl" , "PKG_EXTERNALS" )
@@ -68,49 +67,6 @@ def sass_library(**kwargs):
68
67
def npm_sass_library (** kwargs ):
69
68
_npm_sass_library (** kwargs )
70
69
71
- def ts_library (
72
- tsconfig = None ,
73
- deps = [],
74
- testonly = False ,
75
- # TODO(devversion): disallow configuration of the target when schematics use ESM.
76
- devmode_target = None ,
77
- prodmode_target = None ,
78
- devmode_module = None ,
79
- ** kwargs ):
80
- # Add tslib because we use import helpers for all public packages.
81
- local_deps = ["@npm//tslib" ] + deps
82
-
83
- if not tsconfig :
84
- tsconfig = _getDefaultTsConfig (testonly )
85
-
86
- # Compute an AMD module name for the target.
87
- module_name = compute_module_name (testonly )
88
-
89
- _ts_library (
90
- # `module_name` is used for AMD module names within emitted JavaScript files.
91
- module_name = module_name ,
92
- # We use the module name as package name, so that the target can be resolved within
93
- # NodeJS executions, by activating the Bazel NodeJS linker.
94
- # See: https://github.com/bazelbuild/rules_nodejs/pull/2799.
95
- package_name = module_name ,
96
- # For prodmode, the target is set to `ES2022`. `@bazel/typecript` sets `ES2015` by default. Note
97
- # that this should be in sync with the `ng_module` tsconfig generation to emit proper APF v13.
98
- # https://github.com/bazelbuild/rules_nodejs/blob/901df3868e3ceda177d3ed181205e8456a5592ea/third_party/github.com/bazelbuild/rules_typescript/internal/common/tsconfig.bzl#L195
99
- prodmode_target = prodmode_target if prodmode_target != None else "es2022" ,
100
- # We also set devmode output to the same settings as prodmode as a first step in combining
101
- # devmode and prodmode output. We will not rely on AMD output anyway due to the linker processing.
102
- devmode_target = devmode_target if devmode_target != None else "es2022" ,
103
- devmode_module = devmode_module if devmode_module != None else "esnext" ,
104
- tsconfig = tsconfig ,
105
- testonly = testonly ,
106
- deps = local_deps ,
107
- ** kwargs
108
- )
109
-
110
- # TODO(devversion): Partner with ISE team to support `rules_js` here.
111
- if False and module_name and not testonly :
112
- _make_tsec_test (kwargs ["name" ])
113
-
114
70
def ng_module (
115
71
deps = [],
116
72
srcs = [],
0 commit comments