Skip to content

Commit 2ab27c6

Browse files
committed
build: patch ng_module bazel rule to enable strict template type checking
Workaround for: angular/angular#33452
1 parent 35430ff commit 2ab27c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/bazel/postinstall-patches.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ shelljs.cat(path.join(__dirname, './manifest_externs_hermeticity.patch')).exec('
105105
searchAndReplace(`[formatProperty + "_ivy_ngcc"]`, '[formatProperty]',
106106
'node_modules/@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.js');
107107

108+
// Workaround for https://github.com/angular/angular/issues/33452:
109+
searchAndReplace(/angular_compiler_options = {/, `$&
110+
"strictTemplates": True,
111+
"strictDomLocalRefTypes ": False,
112+
"strictDomEventTypes": False,`, 'node_modules/@angular/bazel/src/ng_module.bzl');
113+
108114
/**
109115
* Reads the specified file and replaces matches of the search expression
110116
* with the given replacement. Throws if no changes were made.

0 commit comments

Comments
 (0)