Support alternate wrapper function layout for UMD
fix(ngcc): support alternate wrapper function layout for UMD (#43879)
Support alternate wrapper function layout for UMDfixsupport alternate wrapper function layout umd
Committed by petebacondarwin
commit message
fix(ngcc): support alternate wrapper function layout for UMD (#43879)
Recently rollup, used by ng-packagr, changed the position of parentheses
around its generated UMD wrapper functions.
This commit ensures that ngcc can handle both.
Fixes #43870
PR Close #43879Editor assessment
An exemplar. The subject states the compatibility goal - supporting an alternate UMD wrapper layout - and the body teaches the cause: rollup, used by ng-packagr, recently changed where it places parentheses in generated UMD wrapper functions, and ngcc now handles both layouts. Upstream tooling change, affected component, and remedy in two sentences, with both the issue and the project reference present. Accurate fix(ngcc) framing and clean hygiene make this a homepage-worthy example. It is hard to imagine the message teaching more: the upstream change, the affected component, and the tolerance strategy are all present.