The Wayback Machine - https://web.archive.org/web/20201015033653/https://github.com/angular/angular
Skip to content
master
Go to file
Code

Latest commit

…39267)

Previously, inline exports of the form `exports.foo = <implementation>;` were
being interpreted (by the ngtsc `PartialInterpeter`) as `Reference` objects.
This is not what is desired since it prevents the value of the export
from being unpacked, such as when analyzing `NgModule` declarations:

```
exports.directives = [Directive1, Directive2];

@NgImport({declarations: [exports.directives]})
class AppModule {}
```

In this example the interpreter would think that `exports.directives`
was a reference rather than an array that needs to be unpacked.

This bug was picked up by the ngcc-validation repository. See
angular/ngcc-validation#1990 and
https://circleci.com/gh/angular/ngcc-validation/17130

PR Close #39267
822b838

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

README.md

You can’t perform that action at this time.