Skip to content

Commit

Permalink
fix: await prettier formatting result
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 10, 2024
1 parent 6ebeb32 commit 19e3eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useChecker = (
try {
if (usePrettier) {
const { format } = await import('prettier')
html = format(html, { parser: 'html' })
html = await format(html, { parser: 'html' })
couldFormat = true
}
} catch (e) {
Expand Down

0 comments on commit 19e3eaf

Please sign in to comment.