build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983)
Use angular_ivy_enabled to determine if Ivy is being used for the ivy_test_selector.ts symbols. Additionally, remove the reflect_metadata genrules as we not longer have a "jit" compile option so all possible invocations result in the same generated file. Instead we can just commit this file. PR Close #33983
This commit is contained in:

committed by
Matias Niemelä

parent
4022376b3f
commit
807c89441a
@ -6,19 +6,9 @@ package(default_visibility = ["//visibility:public"])
|
||||
ts_library(
|
||||
name = "reflect_metadata",
|
||||
srcs = [
|
||||
"src/reflect_metadata_aot.ts",
|
||||
"src/reflect_metadata_jit.ts",
|
||||
"src/reflect_metadata_legacy.ts",
|
||||
":metadata_switch",
|
||||
"src/reflect_metadata.ts",
|
||||
],
|
||||
module_name = "@angular/core/test/bundling/util/src/reflect_metadata",
|
||||
module_root = "src/reflect_metadata",
|
||||
deps = ["@npm//reflect-metadata"],
|
||||
)
|
||||
|
||||
# See packages/core/BUILD.bazel.
|
||||
genrule(
|
||||
name = "metadata_switch",
|
||||
outs = ["src/reflect_metadata.ts"],
|
||||
cmd = "echo import \"'./reflect_metadata_$(compile)';\" > $@",
|
||||
)
|
||||
|
@ -6,4 +6,4 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import './reflect_metadata_legacy';
|
||||
export const UNUSED = true;
|
||||
|
@ -1,9 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
export const UNUSED = true;
|
@ -1,9 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import 'reflect-metadata';
|
@ -1,9 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
export const UNUSED = true;
|
Reference in New Issue
Block a user