diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 4a9918c9671e9..45403a1907ca0 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -468,7 +468,6 @@ export const commonOptionsWithBuild: CommandLineOption[] = [ affectsBuildInfo: true, showInSimplifiedHelpView: true, category: Diagnostics.Emit, - transpileOptionValue: undefined, defaultValueDescription: false, description: Diagnostics.Create_sourcemaps_for_d_ts_files, }, diff --git a/src/services/transpile.ts b/src/services/transpile.ts index ccf8396247ca8..144beb0301d61 100644 --- a/src/services/transpile.ts +++ b/src/services/transpile.ts @@ -205,7 +205,7 @@ function transpileWorker(input: string, transpileOptions: TranspileOptions, decl addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics()); } // Emit - const result = program.emit(/*targetSourceFile*/ undefined, /*writeFile*/ undefined, /*cancellationToken*/ undefined, /*emitOnlyDtsFiles*/ declaration, transpileOptions.transformers, /*forceDtsEmit*/ declaration); + const result = program.emit(/*targetSourceFile*/ undefined, /*writeFile*/ undefined, /*cancellationToken*/ undefined, /*emitOnly*/ undefined, transpileOptions.transformers, /*forceDtsEmit*/ undefined); addRange(/*to*/ diagnostics, /*from*/ result.diagnostics);