storybook-addon-valkyrie-theme/tsup.config.ts

18 lines
400 B
TypeScript
Raw Permalink Normal View History

2024-10-18 10:01:24 +00:00
import { defineConfig } from "tsup";
export default defineConfig((options) => ({
entry: ["src/index.ts", "src/preview.ts", "src/manager.ts"],
splitting: false,
minify: !options.watch,
format: ["cjs", "esm"],
dts: {
resolve: true,
},
treeshake: true,
sourcemap: true,
clean: true,
platform: "browser",
esbuildOptions(options) {
options.conditions = ["module"];
},
}));