Skip to content

Commit

Permalink
enhance: Add commonjs bundle for @data-client/react/ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jun 14, 2024
1 parent 7dafd0a commit d3cdbef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-moles-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@data-client/react': patch
---

Add commonjs bundle for @data-client/react/ssr
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
},
"./ssr": {
"types": "./lib/server/index.d.ts",
"require": "./dist/ssr.js",
"default": "./lib/server/index.js"
},
"./redux": {
Expand Down
1 change: 1 addition & 0 deletions packages/react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
[
{ input: 'lib/index.js', output: pkg.main },
{ input: 'lib/next/index.js', output: 'dist/next.js' },
{ input: 'lib/server/index.js', output: 'dist/ssr.js' },
{ input: 'lib/server/redux/index.js', output: 'dist/redux.js' },
].forEach(({ input, output }) => {
configs.push({
Expand Down

0 comments on commit d3cdbef

Please sign in to comment.