Repository navigation
feat(compiler-cli): automatically lower lambda expressions in metadata - #18390
Conversation
Also reenabled tests that were unintentionally disabled when they were moved from tools/@angular.
62a7fe9 to
276e5c6
Compare
There was a problem hiding this comment.
consider using Math.min and ensure values are num
|
You can preview 62a7fe9 at https://pr18390-62a7fe9.ngbuilds.io/. |
|
You can preview 276e5c6 at https://pr18390-276e5c6.ngbuilds.io/. |
276e5c6 to
fcdfda3
Compare
|
You can preview fcdfda3 at https://pr18390-fcdfda3.ngbuilds.io/. |
There was a problem hiding this comment.
Should with move that to the transform itself ?
(seems like this leaks an impl detail to me)
There was a problem hiding this comment.
typo: should able to multiple expressions
There was a problem hiding this comment.
nit: , 'utf8') is the default IIRC
There was a problem hiding this comment.
Actually it returns a Buffer if you don't specify a character set.
There was a problem hiding this comment.
Change this to be const by adding a const modifier to the declaration list.
fcdfda3 to
30bd96d
Compare
| function normalizeResult(result: string): string { | ||
| // Remove TypeScript prefixes | ||
| // Remove new lines | ||
| // Squish adjacent spaces |
There was a problem hiding this comment.
Squish and squash are pretty much synonyms.
|
You can preview 30bd96d at https://pr18390-30bd96d.ngbuilds.io/. |
|
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When a lambda expression is used in an Angular decorator an error is reported during AOT requesting the user rewrite the expression.
What is the new behavior?
The expression is automatically rewritten to an exported reference.
NOTE: This is not yet enabled in
ngcas it requires the transform based compiler which is not yet the default.Does this PR introduce a breaking change?