Skip to content

Commit

Permalink
fix(page): Merge inject.data & inject.tags (#8)
Browse files Browse the repository at this point in the history
Marinerer authored Jan 23, 2025

Verified

This commit was signed with the committer’s verified signature.
1 parent c5794d7 commit bf358ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/page-html/src/utils/core.ts
Original file line number Diff line number Diff line change
@@ -95,6 +95,10 @@ export function createPage(options: PluginOptions = {}): Pages {
pages[pageUrl] = {
...defaults,
...pageItem,
inject: {
...defaults.inject,
...(pageItem.inject ?? {}),
},
path: pageUrl,
} as PageItem
})

0 comments on commit bf358ae

Please sign in to comment.