Consistently respect --no-typecheck flag in build (#51575)

This commit is contained in:
Jake Bailey
2022-11-17 12:44:39 -08:00
committed by GitHub
parent 7b85cd6b72
commit 8eed2ca2dd
3 changed files with 23 additions and 18 deletions

View File

@@ -51,6 +51,10 @@ if (options.built) {
options.lkg = false;
}
if (!options.bundle && !options.typecheck) {
throw new Error("--no-typecheck cannot be passed when bundling is disabled");
}
export default options;