fix(compiler-cli): produce metadata for .d.ts files without metadata#13526
fix(compiler-cli): produce metadata for .d.ts files without metadata#13526chuckjaz merged 1 commit intoangular:masterfrom
Conversation
2fec6d8 to
53372e0
Compare
There was a problem hiding this comment.
+ add brief comment why no dts is equivalent to module v1
There was a problem hiding this comment.
Is this considering l. 186 ? This should never be minified
There was a problem hiding this comment.
This code should never be minified through an aggressive minifier like closure so these are equivalent.
There was a problem hiding this comment.
|| identifier.text is this required ?
There was a problem hiding this comment.
Yes. If the identifier is not renamed on export then it has its natural name.
There was a problem hiding this comment.
We cannot here because a variable declaration doesn't have a name but might have a name list. So instead of making isExported complicated I left the special case here.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
All .d.ts files without metadata in v1 were considered to not have metadata for v3 so re-export information was lost and symbols reexported by these modules could not be resolved.
What is the new behavior?
A .d.ts file with no metadata will get metadata from the .d.ts file which will include the re-exports in that file.
Does this PR introduce a breaking change? (check one with "x")
Other information:
Fixes #13307