Skip to content

Commit 8624948

Browse files
committed
fix: default dts to true for transform
1 parent ae925ae commit 8624948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builders/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async function transformModule(entryPath: string, entry: TransformEntry, entryDi
201201

202202
sourceText = magicString.toString();
203203

204-
let emitDeclaration = entry.dts;
204+
let emitDeclaration = entry.dts ?? true;
205205
if (typeof emitDeclaration === "function") {
206206
emitDeclaration = await emitDeclaration(entryPath);
207207
}

0 commit comments

Comments
 (0)