Skip to content

Commit

Permalink
Enable noCheck for transpileModule
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Apr 30, 2024
1 parent 6e919ad commit 8ecd6bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/commandLineParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
showInSimplifiedHelpView: false,
category: Diagnostics.Compiler_Diagnostics,
description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,
transpileOptionValue: undefined,
transpileOptionValue: true,
defaultValueDescription: false,
affectsSemanticDiagnostics: true,
affectsBuildInfo: true,
Expand Down
2 changes: 1 addition & 1 deletion src/services/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const optionsRedundantWithVerbatimModuleSyntax = new Set([
* - noLib = true
* - noResolve = true
* - declaration = false
* - noCheck = true
*/
export function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput {
return transpileWorker(input, transpileOptions, /*declaration*/ false);
Expand Down Expand Up @@ -142,7 +143,6 @@ function transpileWorker(input: string, transpileOptions: TranspileOptions, decl
options.declaration = true;
options.emitDeclarationOnly = true;
options.isolatedDeclarations = true;
options.noCheck = true;
}
else {
options.declaration = false;
Expand Down

0 comments on commit 8ecd6bf

Please sign in to comment.