Skip to content

Commit

Permalink
Don't bundle react-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
vjee committed Feb 8, 2024
1 parent 2d0c4f4 commit f08d290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-impalas-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@formulier/react": patch
---

Don't bundle react-dom
2 changes: 1 addition & 1 deletion packages/react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {defineConfig} from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
external: ['react', 'use-sync-external-store'],
external: ['react', 'react-dom', 'use-sync-external-store'],
dts: true,
minify: true,
clean: true,
Expand Down

0 comments on commit f08d290

Please sign in to comment.