Skip to content

Commit 19e3eaf

Browse files
committed
fix: await prettier formatting result
1 parent 6ebeb32 commit 19e3eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const useChecker = (
1919
try {
2020
if (usePrettier) {
2121
const { format } = await import('prettier')
22-
html = format(html, { parser: 'html' })
22+
html = await format(html, { parser: 'html' })
2323
couldFormat = true
2424
}
2525
} catch (e) {

0 commit comments

Comments
 (0)