chore pkg and demo
This commit is contained in:
14
packages/core/tsup.config.ts
Normal file
14
packages/core/tsup.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineConfig, Options } from "tsup";
|
||||
|
||||
export default defineConfig((options: Options) => ({
|
||||
entry: ["src/index.ts"],
|
||||
banner: {
|
||||
js: "'use client'",
|
||||
},
|
||||
format: ["cjs", "esm"],
|
||||
dts: true,
|
||||
clean: true,
|
||||
external: ["react"],
|
||||
injectStyle: true,
|
||||
...options,
|
||||
}));
|
Reference in New Issue
Block a user