angular-cn/packages/compiler-cli/ngcc/test/host
Alex Rickabaugh 964d72610f fix(ivy): ngcc should only index .d.ts exports within the package (#32129)
ngcc needs to solve a unique problem when compiling typings for an
entrypoint: it must resolve a declaration within a .js file to its
representation in a .d.ts file. Since such .d.ts files can be used in deep
imports without ever being referenced from the "root" .d.ts, it's not enough
to simply match exported types to the root .d.ts. ngcc must build an index
of all .d.ts files.

Previously, this operation had a bug: it scanned all .d.ts files in the
.d.ts program, not only those within the package. Thus, if a class in the
program happened to share a name with a class exported from a dependency's
.d.ts, ngcc might accidentally modify the wrong .d.ts file, causing a
variety of issues downstream.

To fix this issue, ngcc's .d.ts scanner now limits the .d.ts files it
indexes to only those declared in the current package.

PR Close #32129
2019-08-15 14:46:00 -07:00
..
commonjs_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
commonjs_host_spec.ts fix(ivy): ngcc should only index .d.ts exports within the package (#32129) 2019-08-15 14:46:00 -07:00
esm5_host_import_helper_spec.ts fix(ivy): in ngcc, handle inline exports in commonjs code (#32129) 2019-08-15 14:45:59 -07:00
esm5_host_spec.ts fix(ivy): in ngcc, handle inline exports in commonjs code (#32129) 2019-08-15 14:45:59 -07:00
esm2015_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
esm2015_host_spec.ts fix(ivy): ngcc should only index .d.ts exports within the package (#32129) 2019-08-15 14:46:00 -07:00
umd_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
umd_host_spec.ts fix(ivy): in ngcc, handle inline exports in commonjs code (#32129) 2019-08-15 14:45:59 -07:00
util.ts refactor(ivy): implement a virtual file-system layer in ngtsc + ngcc (#30921) 2019-06-25 16:25:24 -07:00