build: fix symbol extractor not dealing with ES2015 classes (#38093)

We recently reworked our `ng_rollup_bundle` rule to no longer output
ESM5 and to optimize applications properly (previously applications were
not optimized properly due to incorrect build optimizer setup).

This change meant that a lot of symbols have been removed from the
golden correctly. See: fd65958b88

Unfortunately though, a few symbols have been accidentally removed
because they are now part of the bundle as ES2015 classes which the
symbol extractor does not pick up. This commit fixes the symbol
extractor to capture ES2015 classes. We also update the golden to
reflect this change.

PR Close #38093
This commit is contained in:
Paul Gschwendtner
2020-07-16 14:33:11 +02:00
committed by Andrew Kushnir
parent cf9a47ba53
commit e382632473
10 changed files with 148 additions and 11 deletions

View File

@ -35,6 +35,12 @@
{
"name": "NO_CHANGE"
},
{
"name": "NodeInjectorFactory"
},
{
"name": "SimpleChange"
},
{
"name": "TriggerComponent"
},

View File

@ -29,6 +29,12 @@
{
"name": "NO_CHANGE"
},
{
"name": "NodeInjectorFactory"
},
{
"name": "SimpleChange"
},
{
"name": "ViewEncapsulation"
},

View File

@ -17,6 +17,9 @@
{
"name": "InjectFlags"
},
{
"name": "InjectionToken"
},
{
"name": "NEW_LINE"
},
@ -44,9 +47,15 @@
{
"name": "NULL_INJECTOR"
},
{
"name": "NullInjector"
},
{
"name": "Optional"
},
{
"name": "R3Injector"
},
{
"name": "ScopedService"
},

View File

@ -5,6 +5,12 @@
{
"name": "ChangeDetectionStrategy"
},
{
"name": "DefaultIterableDiffer"
},
{
"name": "DefaultIterableDifferFactory"
},
{
"name": "EMPTY_ARRAY"
},
@ -17,9 +23,15 @@
{
"name": "ElementRef"
},
{
"name": "ErrorHandler"
},
{
"name": "InjectFlags"
},
{
"name": "IterableChangeRecord_"
},
{
"name": "IterableDiffers"
},
@ -53,12 +65,30 @@
{
"name": "NgForOf"
},
{
"name": "NgForOfContext"
},
{
"name": "NgIf"
},
{
"name": "NgIfContext"
},
{
"name": "NgModuleRef"
},
{
"name": "NodeInjector"
},
{
"name": "NodeInjectorFactory"
},
{
"name": "Optional"
},
{
"name": "RecordViewTuple"
},
{
"name": "SWITCH_ELEMENT_REF_FACTORY"
},
@ -68,6 +98,9 @@
{
"name": "SWITCH_VIEW_CONTAINER_REF_FACTORY"
},
{
"name": "SimpleChange"
},
{
"name": "SkipSelf"
},
@ -92,6 +125,9 @@
{
"name": "ToDoAppComponent_section_5_li_3_input_6_Template"
},
{
"name": "Todo"
},
{
"name": "TodoStore"
},
@ -101,9 +137,18 @@
{
"name": "ViewEncapsulation"
},
{
"name": "ViewRef"
},
{
"name": "_CLEAN_PROMISE"
},
{
"name": "_DuplicateItemRecordList"
},
{
"name": "_DuplicateMap"
},
{
"name": "__forward_ref__"
},