Skip to content

Commit

Permalink
Merge pull request #3059 from preactjs/compat-server-export
Browse files Browse the repository at this point in the history
Add ESM entry for compat/server
  • Loading branch information
marvinhagemeister authored Mar 12, 2021
2 parents 0865053 + 09ae1d8 commit 7556b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions compat/server.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { renderToString, renderToStaticMarkup } from 'preact-render-to-string';
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"import": "./jsx-runtime/dist/jsxRuntime.mjs"
},
"./compat/server": {
"default": "./compat/server.js"
"require": "./compat/server.js",
"import": "./compat/server.mjs"
},
"./package.json": "./package.json",
"./": "./"
Expand Down Expand Up @@ -169,6 +170,7 @@
"compat/dist",
"compat/src",
"compat/server.js",
"compat/server.mjs",
"compat/test-utils.js",
"compat/jsx-runtime.js",
"compat/jsx-runtime.mjs",
Expand Down

0 comments on commit 7556b61

Please sign in to comment.