aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-tailwind/packages/ui/tsup.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-tailwind/packages/ui/tsup.config.ts')
-rw-r--r--examples/with-tailwind/packages/ui/tsup.config.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/with-tailwind/packages/ui/tsup.config.ts b/examples/with-tailwind/packages/ui/tsup.config.ts
new file mode 100644
index 0000000..7b2189a
--- /dev/null
+++ b/examples/with-tailwind/packages/ui/tsup.config.ts
@@ -0,0 +1,13 @@
+import { defineConfig, Options } from "tsup";
+
+export default defineConfig((options: Options) => ({
+ treeshake: true,
+ splitting: true,
+ entry: ["src/**/*.tsx"],
+ format: ["esm"],
+ dts: true,
+ minify: true,
+ clean: true,
+ external: ["react"],
+ ...options,
+}));