File tree Expand file tree Collapse file tree 1 file changed +20
-28
lines changed Expand file tree Collapse file tree 1 file changed +20
-28
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ const treeshake = {
15
15
const classicCJS = {
16
16
input : "src/classic.ts" ,
17
17
18
- output : [
19
- {
20
- file : pkg . exports [ "." ] . require ,
21
- format : "cjs" ,
22
- sourcemap : false ,
23
- } ,
24
- ] ,
18
+ output : {
19
+ file : pkg . exports [ "." ] . require ,
20
+ format : "cjs" ,
21
+ sourcemap : false ,
22
+ } ,
25
23
26
24
plugins : [
27
25
rollupPluginAutoExternal ( ) ,
@@ -51,13 +49,11 @@ const classicCJS = {
51
49
const classicESM = {
52
50
input : "src/classic.ts" ,
53
51
54
- output : [
55
- {
56
- file : pkg . exports [ "." ] . import ,
57
- format : "esm" ,
58
- sourcemap : false ,
59
- } ,
60
- ] ,
52
+ output : {
53
+ file : pkg . exports [ "." ] . import ,
54
+ format : "esm" ,
55
+ sourcemap : false ,
56
+ } ,
61
57
62
58
plugins : [
63
59
rollupPluginAutoExternal ( ) ,
@@ -87,13 +83,11 @@ const classicESM = {
87
83
const flatCJS = {
88
84
input : "src/flat.ts" ,
89
85
90
- output : [
91
- {
92
- file : pkg . exports [ "./flat" ] . require ,
93
- format : "cjs" ,
94
- sourcemap : false ,
95
- } ,
96
- ] ,
86
+ output : {
87
+ file : pkg . exports [ "./flat" ] . require ,
88
+ format : "cjs" ,
89
+ sourcemap : false ,
90
+ } ,
97
91
98
92
plugins : [
99
93
rollupPluginAutoExternal ( ) ,
@@ -123,13 +117,11 @@ const flatCJS = {
123
117
const flatESM = {
124
118
input : "src/flat.ts" ,
125
119
126
- output : [
127
- {
128
- file : pkg . exports [ "./flat" ] . import ,
129
- format : "esm" ,
130
- sourcemap : false ,
131
- } ,
132
- ] ,
120
+ output : {
121
+ file : pkg . exports [ "./flat" ] . import ,
122
+ format : "esm" ,
123
+ sourcemap : false ,
124
+ } ,
133
125
134
126
plugins : [
135
127
rollupPluginAutoExternal ( ) ,
You can’t perform that action at this time.
0 commit comments