From aab4e5a0a1d049faa6ad7e7f86c8e089f663c08e Mon Sep 17 00:00:00 2001 From: Anton Gunnarsson Date: Thu, 3 Jul 2025 09:59:07 +0000 Subject: [PATCH] Merged in fix/external-react-hook-form (pull request #2510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark react-hook-form as external in design-system * Mark react-hook-form as external in design-system Approved-by: Joakim Jäderberg Approved-by: Linus Flood --- packages/design-system/package.json | 3 ++- packages/design-system/vite.config.ts | 1 + yarn.lock | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/design-system/package.json b/packages/design-system/package.json index ac3afd6ba..ade0e8788 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -140,7 +140,8 @@ "@radix-ui/react-slot": "^1.2.2", "react": "^19.1.0", "react-aria-components": "^1.8.0", - "react-dom": "^19.1.0" + "react-dom": "^19.1.0", + "react-hook-form": "^7.56.2" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", diff --git a/packages/design-system/vite.config.ts b/packages/design-system/vite.config.ts index f713cc358..ae30018a1 100644 --- a/packages/design-system/vite.config.ts +++ b/packages/design-system/vite.config.ts @@ -46,6 +46,7 @@ export default defineConfig({ 'react-dom', 'react/jsx-runtime', 'react-aria-components', + 'react-hook-form', ], onwarn(warning, defaultHandler) { if ( diff --git a/yarn.lock b/yarn.lock index 8568885b5..e758bb023 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6884,6 +6884,7 @@ __metadata: react: ^19.1.0 react-aria-components: ^1.8.0 react-dom: ^19.1.0 + react-hook-form: ^7.56.2 languageName: unknown linkType: soft