File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5050 "dev" : " pnpm bundle --watch" ,
5151 "build" : " pnpm bundle" ,
5252 "prebuild" : " pnpm clean && rescript" ,
53- "bundle" : " tsup src/index.ts --splitting false --sourcemap --dts --format esm,cjs " ,
53+ "bundle" : " tsup" ,
5454 "test" : " vitest run" ,
5555 "test:watch" : " vitest" ,
5656 "prepack" : " pnpm build && clean-package" ,
Original file line number Diff line number Diff line change 1+ import { defineConfig } from "tsup" ;
2+
3+ export default defineConfig ( {
4+ entry : [ "src/index.ts" ] ,
5+ format : [ "esm" , "cjs" ] ,
6+ dts : true ,
7+ sourcemap : true ,
8+ splitting : false ,
9+ external : [
10+ "vitest" ,
11+ "vite" ,
12+ // Add any other external dependencies that should not be bundled
13+ ] ,
14+ // This ensures external dependencies are not bundled
15+ noExternal : [ ] ,
16+ } ) ;
You can’t perform that action at this time.
0 commit comments