diff --git a/compat/server.browser.js b/compat/server.browser.js index 9e8858e822..51c7a5d332 100644 --- a/compat/server.browser.js +++ b/compat/server.browser.js @@ -1,4 +1,11 @@ +import { renderToString } from 'preact-render-to-string'; + export { renderToString, renderToString as renderToStaticMarkup } from 'preact-render-to-string'; + +export default { + renderToString, + renderToStaticMarkup: renderToString +}; diff --git a/compat/server.mjs b/compat/server.mjs index 9e8858e822..51c7a5d332 100644 --- a/compat/server.mjs +++ b/compat/server.mjs @@ -1,4 +1,11 @@ +import { renderToString } from 'preact-render-to-string'; + export { renderToString, renderToString as renderToStaticMarkup } from 'preact-render-to-string'; + +export default { + renderToString, + renderToStaticMarkup: renderToString +};