fix: update tsup build packages (#7438)
This commit is contained in:
parent
07c80bb02c
commit
df4ea1f7ac
21 changed files with 81 additions and 61 deletions
|
|
@ -1,11 +1,14 @@
|
|||
import { defineConfig, Options } from "tsup";
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig((options: Options) => ({
|
||||
export default defineConfig({
|
||||
entry: ["src/index.ts", "src/lib.ts"],
|
||||
format: ["cjs", "esm"],
|
||||
outDir: "dist",
|
||||
format: ["esm", "cjs"],
|
||||
dts: true,
|
||||
clean: false,
|
||||
external: ["react"],
|
||||
clean: true,
|
||||
external: ["react", "react-dom"],
|
||||
injectStyle: true,
|
||||
...options,
|
||||
}));
|
||||
splitting: true,
|
||||
treeshake: true,
|
||||
minify: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue