diff --git a/package.json b/package.json index 12957d5..5000829 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "packageManager": "pnpm@8.10.2", "scripts": { "dev": "vite", - "build": "tsc --noEmit && vite build", + "build": "tsup", "format": "npx @biomejs/biome format --write", "lint": "npx @biomejs/biome lint --write", "preview": "vite preview", diff --git a/tsup.config.ts b/tsup.config.ts index 0f1cdf6..dd0b255 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ entry: ['src/index.ts'], format: ['cjs', 'esm'], dts: true, + minify: true, splitting: false, sourcemap: true, treeshake: true,