Skip to content

Commit

Permalink
optim: only check types once (#758)
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Semesse and Lai Hongjie authored Jul 19, 2020
1 parent f0963cb commit 79dddc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export async function createRollupConfig(
: {}),
},
},
check: !opts.transpileOnly,
check: !opts.transpileOnly && outputNum === 0,
useTsconfigDeclarationDir: Boolean(tsCompilerOptions?.declarationDir),
}),
babelPluginTsdx({
Expand Down

1 comment on commit 79dddc4

@vercel
Copy link

@vercel vercel bot commented on 79dddc4 Jul 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.