638ba4a2cf
Packages that do not follow APF may have the declaration files in the same directory as one source format, typically ES5. This is problematic for ngcc, as it needs to create a TypeScript program with all JavaScript sources of an entry-point, whereas TypeScript's module resolution mechanism would have resolved an internal module import to the external facing .d.ts declaration file, instead of the JavaScript source file. This behavior results in the program to be analysed being incomplete. This commit introduces a custom compiler host that recognizes the above scenario and rewires the resolution of a .d.ts declaration file to its JavaScript counterpart, if applicable. Fixes #29939 PR Close #30017 |
||
---|---|---|
.. | ||
analysis | ||
dependencies | ||
helpers | ||
host | ||
integration | ||
logging | ||
packages | ||
rendering | ||
writing | ||
BUILD.bazel | ||
utils_spec.ts |