Skip to content

Commit

Permalink
Add 'use client' to every Syntax component (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings committed Mar 4, 2024
1 parent 62e9c79 commit 1b9c914
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .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
3 changes: 3 additions & 0 deletions tsup.config.ts
Expand Up @@ -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
Expand Down

0 comments on commit 1b9c914

Please sign in to comment.