Skip to content

Commit 786bf83

Browse files
karngyanclaude
andcommitted
build: migrate bundler from tsup to tsdown
Replace tsup with tsdown (rolldown-powered). Config ports the two ESM entries (index, mux), dts, and clean. The stylesheet now ships via tsdown's native copy (src/styles/kino.css -> dist/styles.css) instead of an onSuccess/cp shell step, so the build script is just `tsdown`. fixedExtension: false keeps .js/.d.ts output to match the existing package.json exports. react/react-dom (peer) and @mux/mux-video (dep) remain external by default. Build, typecheck, lint, and tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 71f9acc commit 786bf83

4 files changed

Lines changed: 475 additions & 499 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"./styles.css": "./dist/styles.css"
4141
},
4242
"scripts": {
43-
"build": "tsup && cp src/styles/kino.css dist/styles.css",
43+
"build": "tsdown",
4444
"dev": "vite --config demo/vite.config.ts",
4545
"test": "vitest run",
4646
"test:watch": "vitest",
@@ -76,7 +76,7 @@
7676
"prettier": "^3.3.0",
7777
"react": "^19.2.0",
7878
"react-dom": "^19.2.0",
79-
"tsup": "^8.3.0",
79+
"tsdown": "^0.22.3",
8080
"typescript": "^5.7.0",
8181
"typescript-eslint": "^8.0.0",
8282
"vite": "^6.0.0",

0 commit comments

Comments
 (0)