-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3480 from preactjs/render-to-string
- Loading branch information
Showing
38 changed files
with
7,590 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'preact': minor | ||
--- | ||
|
||
Add `preact/server` entry to the core package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ preact-*.tgz | |
preact.tgz | ||
jsx-csstype.d.ts | ||
.cache | ||
src/preact-render-to-string-tests.d.ts | ||
benchmarks/.v8.modern.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
/* eslint-disable */ | ||
var renderToString; | ||
try { | ||
const mod = require('preact-render-to-string'); | ||
renderToString = mod.default || mod.renderToString || mod; | ||
} catch (e) { | ||
throw Error( | ||
'renderToString() error: missing "preact-render-to-string" dependency.' | ||
); | ||
} | ||
const { renderToString } = require('preact/server'); | ||
|
||
module.exports = { | ||
renderToString: renderToString, | ||
renderToString, | ||
renderToStaticMarkup: renderToString | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { | ||
renderToString, | ||
renderToString as renderToStaticMarkup | ||
} from 'preact-render-to-string'; | ||
} from 'preact/server'; |
Oops, something went wrong.