angular-cn/packages/compiler-cli/ngcc/test
Pete Bacon Darwin 4a2405929c refactor(ivy): ngcc - implement new module resolver (#29643)
When working out the dependencies between entry-points
ngcc must parse the import statements and then resolve the
import path to the actual file.  This is complicated because module
resolution is not trivial.

Previously ngcc used the node.js `require.resolve`, with some
hacking to resolve modules. This change refactors the `DependencyHost`
to use a new custom `ModuleResolver`, which is optimized for this use
case.

Moreover, because we are in full control of the resolution,
we can support TS `paths` aliases, where not all imports come from
`node_modules`. This is the case in some CLI projects where there are
compiled libraries that are stored locally in a `dist` folder.
See //FW-1210.

PR Close #29643
2019-04-29 12:37:21 -07:00
..
analysis feat(compiler-cli): ngcc - make logging more configurable (#29591) 2019-04-01 11:53:28 -07:00
helpers test(ivy): ngcc - improve and use the `MockLogger` (#29740) 2019-04-08 09:48:20 -07:00
host fix(ivy): ngcc - properly handle aliases class expressions (#29119) 2019-04-02 10:50:46 -07:00
integration test(ivy): ngcc - check private dependency in integration test (#29643) 2019-04-29 12:37:20 -07:00
logging feat(compiler-cli): ngcc - make logging more configurable (#29591) 2019-04-01 11:53:28 -07:00
packages refactor(ivy): ngcc - implement new module resolver (#29643) 2019-04-29 12:37:21 -07:00
rendering refactor(compiler-cli): ngcc - remove unnecessary `sourcePath` parameters (#29643) 2019-04-29 12:37:20 -07:00
writing fix(ivy): ngcc - do not copy external files when writing bundles (#30085) 2019-04-24 10:49:31 -07:00
BUILD.bazel test(ivy): ngcc - improve and use the `MockLogger` (#29740) 2019-04-08 09:48:20 -07:00
utils_spec.ts refactor(ivy): ngcc - implement new module resolver (#29643) 2019-04-29 12:37:21 -07:00