Skip to content

Commit

Permalink
fix(page): Merge inject.data & inject.tags (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer authored Jan 23, 2025
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
Expand Up @@ -95,6 +95,10 @@ export function createPage(options: PluginOptions = {}): Pages {
pages[pageUrl] = {
...defaults,
...pageItem,
inject: {
...defaults.inject,
...(pageItem.inject ?? {}),
},
path: pageUrl,
} as PageItem
})
Expand Down

0 comments on commit bf358ae

Please sign in to comment.