Skip to content

Commit

Permalink
build: patch ng_module bazel rule to enable strict template type chec…
Browse files Browse the repository at this point in the history
…king

Workaround for: angular/angular#33452
  • Loading branch information
devversion committed Oct 29, 2019
1 parent 08683a7 commit c163301
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/bazel/postinstall-patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ shelljs.cat(path.join(__dirname, './manifest_externs_hermeticity.patch')).exec('
searchAndReplace(`[formatProperty + "_ivy_ngcc"]`, '[formatProperty]',
'node_modules/@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.js');

// Workaround for https://github.com/angular/angular/issues/33452:
searchAndReplace(/angular_compiler_options = {/, `$&
"strictTemplates": True,
"strictDomLocalRefTypes ": False,
"strictDomEventTypes": False,`, 'node_modules/@angular/bazel/src/ng_module.bzl');

/**
* Reads the specified file and replaces matches of the search expression
* with the given replacement. Throws if no changes were made.
Expand Down

0 comments on commit c163301

Please sign in to comment.