Skip to content

Commit

Permalink
feat: add "use client" annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed May 5, 2023
1 parent 95365f4 commit 83c464c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export default defineConfig({
},
rollupOptions: {
external: "react",
output: { exports: "named" },
output: {
exports: "named",
banner: '"use client";',
},
plugins: [cleanup({ extensions: ["ts", "tsx"] })],
},
},
Expand Down

0 comments on commit 83c464c

Please sign in to comment.