fix(ivy): ngcc - empower Esm5ReflectionHost
to analyze ModuleWithProviders
functions (#29092)
In ESM5 code, static methods appear as property assignments onto the constructor function. For example: ``` var MyClass = (function() { function MyClass () {} MyClass.staticMethod = function() {}; return MyClass; })(); ``` This commit teaches ngcc how to process these forms when searching for `ModuleWithProviders` functions that need to be updated in the typings files. PR Close #29092
This commit is contained in:

committed by
Matias Niemelä

parent
68f9d705f8
commit
b48d6e1b13
@ -553,7 +553,7 @@ const MODULE_WITH_PROVIDERS_PROGRAM = [
|
||||
{name: '/src/module', contents: 'export class ExternalModule {}'},
|
||||
];
|
||||
|
||||
describe('Fesm2015ReflectionHost', () => {
|
||||
describe('Esm2015ReflectionHost', () => {
|
||||
|
||||
describe('getDecoratorsOfDeclaration()', () => {
|
||||
it('should find the decorators on a class', () => {
|
||||
|
Reference in New Issue
Block a user