From f08d29052b5b3d77897d7cc9dccb57c029799f19 Mon Sep 17 00:00:00 2001 From: vjee Date: Thu, 8 Feb 2024 21:44:48 +0100 Subject: [PATCH] Don't bundle react-dom --- .changeset/cuddly-impalas-fry.md | 5 +++++ packages/react/tsup.config.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/cuddly-impalas-fry.md diff --git a/.changeset/cuddly-impalas-fry.md b/.changeset/cuddly-impalas-fry.md new file mode 100644 index 0000000..81cb12a --- /dev/null +++ b/.changeset/cuddly-impalas-fry.md @@ -0,0 +1,5 @@ +--- +"@formulier/react": patch +--- + +Don't bundle react-dom diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts index 4a0103c..a87155e 100644 --- a/packages/react/tsup.config.ts +++ b/packages/react/tsup.config.ts @@ -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,