angular-cn/packages/compiler-cli/test/ngtsc
Alex Rickabaugh 6003145422 fix(ivy): properly rewrite imports in generated factory shims (#27998)
Generated factory shims can import from @angular/core. However, we have
special logic in place to rewrite self-imports when generating code for
@angular/core.

This commit leverages the new standalone ImportRewriter interface to
properly rewrite imports in generated factory shims. Before this fix,
a generated factory file for core would look like:

```typescript
import * as i0 from './r3_symbols';

export var ApplicationModuleNgFactory = new ɵNgModuleFactory(...);
```

This is invalid, as ɵNgModuleFactory is just NgModuleFactory when imported
via r3_symbols.

FW-881 #resolve

PR Close #27998
2019-01-10 10:46:32 -08:00
..
fake_core fix(ivy): deduplicate directives in component scopes (#27462) 2018-12-05 14:36:24 -08:00
BUILD.bazel test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
env.ts fix(ivy): ngtsc program emit ignoring custom transformers (#27837) 2019-01-04 12:29:15 -08:00
ngtsc_spec.ts fix(ivy): properly rewrite imports in generated factory shims (#27998) 2019-01-10 10:46:32 -08:00
template_typecheck_spec.ts test(ivy): implement tests for template type-checking (#26203) 2018-10-04 10:11:17 -07:00