Skip to content

Commit

Permalink
Merge pull request preactjs#8 from preactjs/compat-client
Browse files Browse the repository at this point in the history
Add /client package entry
  • Loading branch information
rschristian authored Oct 3, 2022
2 parents db1fda1 + bd576f9 commit febe0e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('preact/compat/client');
2 changes: 2 additions & 0 deletions client.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from 'preact/compat/client';
export { default } from 'preact/compat/client';
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"import": "./server.mjs",
"require": "./server.js"
},
"./client": {
"import": "./client.mjs",
"require": "./client.js"
},
"./jsx-dev-runtime": {
"module": "./jsx-dev-runtime.mjs",
"import": "./jsx-dev-runtime.mjs",
Expand Down

0 comments on commit febe0e8

Please sign in to comment.