Skip to content

Commit a4c6e89

Browse files
authored
feat(docs): danger callout for running render on the browser (#2332)
1 parent 4bbcc80 commit a4c6e89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/docs/utilities/render.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ This will generate the following output:
8484
</html>
8585
```
8686

87+
<Danger>
88+
When running on the browser, to properly support Safari and browsers running on iOS, you will
89+
need to polyfill the [ReadableByteStreamController API](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController#browser_compatibility).
90+
91+
We recommend [npm i web-streams-polyfill](https://www.npmjs.com/package/web-streams-polyfill),
92+
and it can be applied as follows in some sort of root file for your website:
93+
94+
```jsx
95+
import "web-streams-polyfill/polyfill";
96+
```
97+
</Danger>
98+
8799
## 4. Convert to Plain Text
88100

89101
Plain text versions of emails are important because they ensure that the message can be read by the recipient even if they are unable to view the HTML version of the email.

0 commit comments

Comments
 (0)