From 06668cbaa26fd992605a3142728acabca0367212 Mon Sep 17 00:00:00 2001 From: Mohamed amaan Date: Sat, 16 Nov 2024 03:25:15 +0530 Subject: [PATCH] rollup issue solved @radix-ui/react-separator --- vite.config.mts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index 3f6df95c290..41752db096f 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -167,13 +167,17 @@ export default defineConfig(({ mode }) => { }, }, optimizeDeps: { - include: getPluginDependencies(), + include: [ + ...getPluginDependencies(), + "@radix-ui/react-separator", + ], }, build: { outDir: "build", assetsDir: "bundle", sourcemap: true, rollupOptions: { + external: ["@radix-ui/react-separator"], output: { manualChunks(id, { getModuleInfo }) { if (id.includes("node_modules")) {