Skip to content

Commit 8ecd6bf

Browse files
committed
Enable noCheck for transpileModule
1 parent 6e919ad commit 8ecd6bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
778778
showInSimplifiedHelpView: false,
779779
category: Diagnostics.Compiler_Diagnostics,
780780
description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,
781-
transpileOptionValue: undefined,
781+
transpileOptionValue: true,
782782
defaultValueDescription: false,
783783
affectsSemanticDiagnostics: true,
784784
affectsBuildInfo: true,

src/services/transpile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const optionsRedundantWithVerbatimModuleSyntax = new Set([
5959
* - noLib = true
6060
* - noResolve = true
6161
* - declaration = false
62+
* - noCheck = true
6263
*/
6364
export function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput {
6465
return transpileWorker(input, transpileOptions, /*declaration*/ false);
@@ -142,7 +143,6 @@ function transpileWorker(input: string, transpileOptions: TranspileOptions, decl
142143
options.declaration = true;
143144
options.emitDeclarationOnly = true;
144145
options.isolatedDeclarations = true;
145-
options.noCheck = true;
146146
}
147147
else {
148148
options.declaration = false;

0 commit comments

Comments
 (0)