From 83c464ccfa25c0a3112b32103bce8b91e6141299 Mon Sep 17 00:00:00 2001 From: Igor Danchenko <64441155+igordanchenko@users.noreply.github.com> Date: Fri, 5 May 2023 14:37:50 -0400 Subject: [PATCH] feat: add "use client" annotation --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index fec38173..cda9f925 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,7 +20,10 @@ export default defineConfig({ }, rollupOptions: { external: "react", - output: { exports: "named" }, + output: { + exports: "named", + banner: '"use client";', + }, plugins: [cleanup({ extensions: ["ts", "tsx"] })], }, },