Skip to content

Commit

Permalink
🖥️ feat: add react-server bundle (#11162)
Browse files Browse the repository at this point in the history
* feat: add react-server bundle

* chore: upgrade Node.js to LTS version

* chore: doengrade codesandbox ci

* ci: fix workflows

* ci: improve codesandbox settings

* chore: update pnpm lock file

* ci: fix workflows

* ci: add composite action

* chore: update pnpm lock file

* chore: update composite action

* test: update setValueAsyncStrictMode test

---------

Co-authored-by: Beier (Bill) <bluebill1049@hotmail.com>
  • Loading branch information
kotarella1110 and bluebill1049 committed Nov 8, 2023
1 parent 32243b3 commit 8f80f4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"react-server": "./dist/react-server.esm.mjs",
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
Expand Down
5 changes: 5 additions & 0 deletions scripts/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const options = [
input: pkg.source,
},
{ name, format: 'esm', input: pkg.source },
{
name: 'react-server',
format: 'esm',
input: 'src/index.react-server.ts',
},
{
name,
format: 'umd',
Expand Down
2 changes: 2 additions & 0 deletions src/index.react-server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './logic';
export * from './utils';

0 comments on commit 8f80f4c

Please sign in to comment.