1 parent 5579d74 commit bdc7872Copy full SHA for bdc7872
1 file changed
packages/angular/build/src/builders/library/pipeline/compilation.ts
@@ -145,7 +145,7 @@ export async function compileEntryPoint(
145
compilationInstance.updateLibraryOptions({ upstreamDtsPaths, upstreamDtsFiles });
146
}
147
148
- let stylesheetReferencedFiles: string[] = [];
+ const stylesheetReferencedFiles: string[] = [];
149
const stylesheetWarnings: PartialMessage[] = [];
150
const hostOptions: AngularHostOptions = {
151
modifiedFiles,
@@ -166,7 +166,7 @@ export async function compileEntryPoint(
166
167
168
if (bundleReferencedFiles?.size) {
169
- stylesheetReferencedFiles = [...bundleReferencedFiles];
+ stylesheetReferencedFiles.push(...bundleReferencedFiles);
170
171
172
if (bundleErrors?.length) {
0 commit comments