File tree Expand file tree Collapse file tree
packages/angular/build/src/builders/library/pipeline Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export async function compileEntryPoint(
145145 compilationInstance . updateLibraryOptions ( { upstreamDtsPaths, upstreamDtsFiles } ) ;
146146 }
147147
148- let stylesheetReferencedFiles : string [ ] = [ ] ;
148+ const stylesheetReferencedFiles : string [ ] = [ ] ;
149149 const stylesheetWarnings : PartialMessage [ ] = [ ] ;
150150 const hostOptions : AngularHostOptions = {
151151 modifiedFiles,
@@ -166,7 +166,7 @@ export async function compileEntryPoint(
166166 }
167167
168168 if ( bundleReferencedFiles ?. size ) {
169- stylesheetReferencedFiles = [ ... bundleReferencedFiles ] ;
169+ stylesheetReferencedFiles . push ( ... bundleReferencedFiles ) ;
170170 }
171171
172172 if ( bundleErrors ?. length ) {
@@ -208,7 +208,9 @@ export async function compileEntryPoint(
208208 kind : 'warning' ,
209209 color : colors ,
210210 } ) ;
211- formattedWarnings = [ ...( formattedWarnings ?? [ ] ) , ...formattedStyleWarnings ] ;
211+
212+ formattedWarnings ??= [ ] ;
213+ formattedWarnings . push ( ...formattedStyleWarnings ) ;
212214 }
213215
214216 const emittedFiles = compilationInstance . emitAffectedFiles ( ) ;
You can’t perform that action at this time.
0 commit comments