File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 24
24
"release" : " yarn build && yarn release-it" ,
25
25
"link:self" : " yarn yalc publish && yarn link"
26
26
},
27
- "tsup" : {
28
- "entry" : [
29
- " src/index.ts"
30
- ],
31
- "treeshake" : true ,
32
- "sourcemap" : " inline" ,
33
- "minify" : true ,
34
- "clean" : true ,
35
- "dts" : true ,
36
- "splitting" : false ,
37
- "format" : [
38
- " cjs" ,
39
- " esm"
40
- ],
41
- "external" : [
42
- " react"
43
- ],
44
- "injectStyle" : false
45
- },
46
27
"types" : " ./dist/index.d.ts" ,
47
28
"exports" : {
48
29
"." : {
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
+ treeshake : true ,
6
+ sourcemap : 'inline' ,
7
+ minify : true ,
8
+ clean : true ,
9
+ dts : true ,
10
+ splitting : false ,
11
+ format : [ 'cjs' , 'esm' ] ,
12
+ external : [ 'react' ] ,
13
+ injectStyle : false ,
14
+ } ) ;
You can’t perform that action at this time.
0 commit comments