Skip to content

Commit 79dddc4

Browse files
SemesseLai Hongjie
andauthored
optim: only check types once (#758)
- each format has the same input, so type-checking only needs to occur once total - previously it was once per format Change-Id: I998648be8181371ec14e23a3096dc3b4ac731957 Co-authored-by: Lai Hongjie <laihongjie@bytedance.com>
1 parent f0963cb commit 79dddc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createRollupConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export async function createRollupConfig(
176176
: {}),
177177
},
178178
},
179-
check: !opts.transpileOnly,
179+
check: !opts.transpileOnly && outputNum === 0,
180180
useTsconfigDeclarationDir: Boolean(tsCompilerOptions?.declarationDir),
181181
}),
182182
babelPluginTsdx({

0 commit comments

Comments
 (0)