Skip to content

Commit

Permalink
fix: html plugin for mako
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Aug 23, 2024
1 parent 147ce90 commit d9992a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/features/mako/mako.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default (api: IApi) => {
generateEnd: ({ stats }: any) => {
const entryPointFiles = new Set<string>();

for (const chunk of stats.entrypoints['umi'].chunks) {
for (const chunk of stats.entrypoints['umi']?.chunks || []) {
const files = stats.chunks.find((c: any) => c.id === chunk).files;
for (const file of files) {
entryPointFiles.add(file);
Expand Down

0 comments on commit d9992a2

Please sign in to comment.