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(
263263 plugins . push ( userPlugins )
264264 }
265265
266+ cjsDts = ! ! cjsDts
266267 const inputOptions = await mergeUserOptions (
267268 {
268269 input : entry ,
@@ -293,7 +294,7 @@ async function getBuildOptions(
293294 moduleTypes : loader ,
294295 } ,
295296 config . inputOptions ,
296- [ format ] ,
297+ [ format , { cjsDts } ] ,
297298 )
298299
299300 const [ entryFileNames , chunkFileNames ] = resolveChunkFilename (
@@ -318,7 +319,7 @@ async function getBuildOptions(
318319 footer : resolveChunkAddon ( footer , format ) ,
319320 } ,
320321 config . outputOptions ,
321- [ format ] ,
322+ [ format , { cjsDts } ] ,
322323 )
323324
324325 return {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export interface Options {
9898 | ( (
9999 options : InputOptions ,
100100 format : NormalizedFormat ,
101+ context : { cjsDts : boolean } ,
101102 ) => Awaitable < InputOptions | void | null > )
102103
103104 /// output options
@@ -182,6 +183,7 @@ export interface Options {
182183 | ( (
183184 options : OutputOptions ,
184185 format : NormalizedFormat ,
186+ context : { cjsDts : boolean } ,
185187 ) => Awaitable < OutputOptions | void | null > )
186188
187189 /** @default true */
You can’t perform that action at this time.
0 commit comments