From 8787836346c33d134edab75e4b9ad1b6491ef018 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Mon, 23 Sep 2024 10:47:40 +0200 Subject: [PATCH] Add peer dependencies to externals for build. --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index bb0ffce..708d14b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,7 +16,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { fileName: "index", }, rollupOptions: { - external: ["react", "react-dom"], + external: ["react", "react-dom", "react-router-dom", "@phosphor-icons/react"], }, },