Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 27a8b0e

Browse filesBrowse files
committed
ensure the cjs export has our async func
1 parent e3326e2 commit 27a8b0e
Copy full SHA for 27a8b0e

File tree

2 files changed

+6
-0
lines changed
Filter options

2 files changed

+6
-0
lines changed

‎.changeset/clever-kings-brush.md

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'preact-render-to-string': patch
3+
---
4+
5+
Ensure commonjs also has the async export

‎config/node-commonjs.js

Copy file name to clipboardExpand all lines: config/node-commonjs.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fs.copyFileSync(filePath('index.js.map'), filePath('commonjs.js.map'));
1212

1313
const source = [
1414
`const mod = require('./commonjs');`,
15+
`mod.default.renderToStringAsync = mod.renderToStringAsync;`,
1516
`mod.default.renderToStaticMarkup = mod.default;`,
1617
`mod.default.renderToString = mod.default;`,
1718
`mod.default.render = mod.default;`,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.