Skip to content

Commit bdc7872

Browse files
committed
fixup! feat(@angular/build): add library builder
1 parent 5579d74 commit bdc7872

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/angular/build/src/builders/library/pipeline/compilation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)