angular-cn/packages/compiler-cli/ngcc/test/writing
JoostK 8cba4e1f6b fix(ivy): ngcc - do not copy declaration files into bundle clone (#30020)
Previously, all of a program's files would be copied into the __ivy_ngcc__
folder where ngcc then writes its modifications into. The set of source files
in a program however is much larger than the source files contained within
the entry-point of interest, so many more files were copied than necessary.
Even worse, it may occur that an unrelated file in the program would collide
with an already existing source file, resulting in incorrectly overwriting
a file with unrelated content. This behavior has actually been observed
with @angular/animations and @angular/platform-browser/animations, where
the former package would overwrite declaration files of the latter package.

This commit fixes the issue by only copying relevant source files when cloning
a bundle's content into __ivy_ngcc__.

Fixes #29960

PR Close #30020
2019-04-22 08:46:19 -07:00
..
in_place_file_writer_spec.ts refactor(ivy): ngcc - extract file writing out into a class (#29092) 2019-03-20 14:45:55 -04:00
new_entry_point_file_writer_spec.ts fix(ivy): ngcc - do not copy declaration files into bundle clone (#30020) 2019-04-22 08:46:19 -07:00