From 1b9c91407b27605e5fdeef4fc7e70a820e3d31e0 Mon Sep 17 00:00:00 2001 From: Christian Vuerings Date: Mon, 4 Mar 2024 14:53:52 -0800 Subject: [PATCH] Add 'use client' to every Syntax component (#325) --- .changeset/seven-oranges-punch.md | 7 +++++++ tsup.config.ts | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/seven-oranges-punch.md diff --git a/.changeset/seven-oranges-punch.md b/.changeset/seven-oranges-punch.md new file mode 100644 index 00000000..2b6e2474 --- /dev/null +++ b/.changeset/seven-oranges-punch.md @@ -0,0 +1,7 @@ +--- +"@cambly/syntax-core": minor +"@cambly/syntax-floating-components": minor +"@cambly/syntax-utils": minor +--- + +Add 'use client' to every Syntax exported JS file diff --git a/tsup.config.ts b/tsup.config.ts index 87037ce8..1e1596ee 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -26,6 +26,9 @@ export default defineConfig({ skipNodeModulesBundle: true, esbuildOptions(options) { options.chunkNames = "__chunks/[hash]"; + options.banner = { + js: '"use client"', + }; }, // ESBuild does not yet support CSS Modules // https://github.com/egoist/tsup/issues/536#issuecomment-1302012400