Skip to content

Commit

Permalink
fix: use components options from user config
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jul 23, 2024
1 parent 430908d commit 3cd3096
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/posthtml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ export async function process(html = '', config = {}) {
expandLinkTag,
postcssPlugin,
components(
merge({
expressions: {
locals,
}
}, defaultComponentsConfig)
merge(
{
expressions: {
locals,
}
},
componentsUserOptions,
defaultComponentsConfig
)
),
expandLinkTag,
postcssPlugin,
Expand Down

0 comments on commit 3cd3096

Please sign in to comment.