Skip to content

Commit e4598ab

Browse files
committed
fix(render): pretty option breaks CJS builds (#1866)
1 parent c6c03a4 commit e4598ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/purple-teachers-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-email/render": patch
3+
---
4+
5+
Fixes `pretty` option breaking CJS projects

packages/render/src/shared/utils/pretty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Options, Plugin } from 'prettier';
22
import type { builders } from 'prettier/doc';
3-
import html from 'prettier/plugins/html';
3+
import * as html from 'prettier/plugins/html';
44
import { format } from 'prettier/standalone';
55

66
interface HtmlNode {

0 commit comments

Comments
 (0)