File tree 3 files changed +5
-11
lines changed
3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 28
28
"." : {
29
29
"types" : " ./dist/index.d.ts" ,
30
30
"import" : " ./dist/index.js" ,
31
- "require" : " ./dist/index.cjs" ,
32
31
"default" : " ./dist/index.js"
33
32
}
34
33
},
35
34
"main" : " dist/index.js" ,
36
35
"types" : " dist/index.d.ts" ,
37
36
"files" : [
38
- " dist" ,
39
- " src"
37
+ " dist"
40
38
],
41
39
"scripts" : {
42
40
"build" : " rimraf ./dist && rollup -c" ,
Original file line number Diff line number Diff line change @@ -4,20 +4,17 @@ import paths from "typescript-transform-paths";
4
4
5
5
export default defineConfig ( {
6
6
input : "src/index.ts" ,
7
- output : [
8
- { format : "esm" , entryFileNames : "[name].js" } ,
9
- { format : "cjs" , entryFileNames : "[name].cjs" } ,
10
- ] . map ( ( output ) => ( {
7
+ output : {
8
+ format : "esm" ,
9
+ entryFileNames : "[name].js" ,
11
10
sourcemap : true ,
12
11
dir : "dist" ,
13
12
preserveModules : true ,
14
- ...output ,
15
- } ) ) ,
13
+ } ,
16
14
plugins : [
17
15
typescript ( {
18
16
include : [ "./src/**" ] ,
19
17
transformers : {
20
- before : [ { type : "program" , factory : paths . default } ] ,
21
18
afterDeclarations : [ { type : "program" , factory : paths . default } ] ,
22
19
} ,
23
20
} ) ,
Original file line number Diff line number Diff line change 9
9
"strict" : true ,
10
10
"noUncheckedIndexedAccess" : true ,
11
11
"declaration" : true ,
12
- "declarationMap" : true ,
13
12
"emitDeclarationOnly" : true ,
14
13
"outDir" : " dist" ,
15
14
"sourceMap" : true ,
You can’t perform that action at this time.
0 commit comments