Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

use client

Steven Tey3fdae22bbe5e
diff --git a/packages/embeds/react/tsup.config.ts b/packages/embeds/react/tsup.config.ts
index 2945238e65..aaa5bf0924 100644
--- a/packages/embeds/react/tsup.config.ts
+++ b/packages/embeds/react/tsup.config.ts
@@ -6,6 +6,11 @@ export default defineConfig((options: Options) => ({
index: "src/index.ts", // Entry for all other files via index.ts
},
format: ["esm", "cjs"],
+ esbuildOptions(options) {
+ options.banner = {
+ js: '"use client"',
+ };
+ },
outExtension({ format }) {
return {
js: format === "esm" ? ".mjs" : ".js",