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

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

No files matched your search

+4
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;