@@ -190,7 +190,7 @@ class ResourceCollector {
190
190
191
191
if ( / (?: \. j s | \. v i e w \. x m l | \. c o n t r o l \. x m l | \. f r a g m e n t \. x m l ) $ / . test ( name ) ) {
192
192
if ( ( ! info . isDebug || debugBundleFilter . matches ( name ) ) ) {
193
- // Only analyze non-debug files which are not special debug bundles (like sap-ui-core-dbg.js)
193
+ // Only analyze non-debug files and special debug bundles (like sap-ui-core-dbg.js)
194
194
promises . push (
195
195
this . enrichWithDependencyInfo ( info )
196
196
) ;
@@ -242,8 +242,12 @@ class ResourceCollector {
242
242
const nonDebugName = ResourceInfoList . getNonDebugName ( dbgInfo . name ) ;
243
243
const nonDbgInfo = this . _resources . get ( nonDebugName ) ;
244
244
const newDbgInfo = new ResourceInfo ( dbgInfo . name ) ;
245
+
246
+ // First copy info of analysis from non-dbg file (included, required, condRequired, ...)
245
247
newDbgInfo . copyFrom ( null , nonDbgInfo ) ;
248
+ // Then copy over info from dbg file to properly set name, isDebug, etc.
246
249
newDbgInfo . copyFrom ( null , dbgInfo ) ;
250
+
247
251
this . _resources . set ( dbgInfo . name , newDbgInfo ) ;
248
252
}
249
253
}
@@ -270,7 +274,7 @@ class ResourceCollector {
270
274
return filtersByComponent ;
271
275
}
272
276
273
- groupResourcesByComponents ( options ) {
277
+ groupResourcesByComponents ( ) {
274
278
const orphanFilters = this . createOrphanFilters ( ) ;
275
279
for ( const resource of this . _resources . values ( ) ) {
276
280
let contained = false ;
0 commit comments