File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ async function getBuildOptions(
263
263
plugins . push ( userPlugins )
264
264
}
265
265
266
+ cjsDts = ! ! cjsDts
266
267
const inputOptions = await mergeUserOptions (
267
268
{
268
269
input : entry ,
@@ -293,7 +294,7 @@ async function getBuildOptions(
293
294
moduleTypes : loader ,
294
295
} ,
295
296
config . inputOptions ,
296
- [ format ] ,
297
+ [ format , { cjsDts } ] ,
297
298
)
298
299
299
300
const [ entryFileNames , chunkFileNames ] = resolveChunkFilename (
@@ -318,7 +319,7 @@ async function getBuildOptions(
318
319
footer : resolveChunkAddon ( footer , format ) ,
319
320
} ,
320
321
config . outputOptions ,
321
- [ format ] ,
322
+ [ format , { cjsDts } ] ,
322
323
)
323
324
324
325
return {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export interface Options {
98
98
| ( (
99
99
options : InputOptions ,
100
100
format : NormalizedFormat ,
101
+ context : { cjsDts : boolean } ,
101
102
) => Awaitable < InputOptions | void | null > )
102
103
103
104
/// output options
@@ -182,6 +183,7 @@ export interface Options {
182
183
| ( (
183
184
options : OutputOptions ,
184
185
format : NormalizedFormat ,
186
+ context : { cjsDts : boolean } ,
185
187
) => Awaitable < OutputOptions | void | null > )
186
188
187
189
/** @default true */
You can’t perform that action at this time.
0 commit comments