File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 "streamify-string" : " ^1.0.0" ,
4545 "typescript" : " ^5.0.0" ,
4646 "typescript-eslint" : " ^8.0.0" ,
47- "vite" : " ^8.0.0-beta.16" ,
47+ "unplugin-dts" : " ^1.0.0-beta.6" ,
48+ "vite" : " *" ,
4849 "vitest" : " ^4.0.0"
50+ },
51+ "resolutions" : {
52+ "rolldown" : " ^1.0.0-rc.7" ,
53+ "vite" : " ^8.0.0-beta.16"
4954 }
5055}
Original file line number Diff line number Diff line change 11import { compilerOptions } from './tsconfig.json'
22import { defineConfig } from 'vite'
3+ import dts from 'unplugin-dts/vite'
34
45export default defineConfig ( {
56 build : {
67 lib : {
78 entry : 'lib/index.ts' ,
89 fileName : 'index' ,
10+ formats : [ 'umd' , 'es' ] ,
911 name : 'index'
1012 } ,
11- minify : true ,
1213 sourcemap : true ,
1314 target : compilerOptions . target
14- }
15+ } ,
16+ plugins : [
17+ dts ( {
18+ include : [
19+ 'lib/*.ts'
20+ ]
21+ } )
22+ ]
1523} )
You can’t perform that action at this time.
0 commit comments