diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index a603f835e15..7cdd8bd8c8a 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -147,6 +147,7 @@ namespace ts { type: "boolean", category: Diagnostics.Basic_Options, description: Diagnostics.Enable_incremental_compilation, + transpileOptionValue: undefined }, { name: "locale", @@ -262,7 +263,8 @@ namespace ts { affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.Basic_Options, - description: Diagnostics.Specify_library_files_to_be_included_in_the_compilation + description: Diagnostics.Specify_library_files_to_be_included_in_the_compilation, + transpileOptionValue: undefined }, { name: "allowJs", @@ -299,6 +301,7 @@ namespace ts { showInSimplifiedHelpView: true, category: Diagnostics.Basic_Options, description: Diagnostics.Generates_corresponding_d_ts_file, + transpileOptionValue: undefined }, { name: "declarationMap", @@ -307,6 +310,7 @@ namespace ts { showInSimplifiedHelpView: true, category: Diagnostics.Basic_Options, description: Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file, + transpileOptionValue: undefined }, { name: "emitDeclarationOnly", @@ -314,6 +318,7 @@ namespace ts { affectsEmit: true, category: Diagnostics.Advanced_Options, description: Diagnostics.Only_emit_d_ts_declaration_files, + transpileOptionValue: undefined }, { name: "sourceMap", @@ -332,6 +337,7 @@ namespace ts { showInSimplifiedHelpView: true, category: Diagnostics.Basic_Options, description: Diagnostics.Concatenate_and_emit_output_to_single_file, + transpileOptionValue: undefined }, { name: "outDir", @@ -359,6 +365,7 @@ namespace ts { isTSConfigOnly: true, category: Diagnostics.Basic_Options, description: Diagnostics.Enable_project_compilation, + transpileOptionValue: undefined }, { name: "tsBuildInfoFile", @@ -368,6 +375,7 @@ namespace ts { paramType: Diagnostics.FILE, category: Diagnostics.Basic_Options, description: Diagnostics.Specify_file_to_store_incremental_compilation_information, + transpileOptionValue: undefined }, { name: "removeComments", @@ -384,6 +392,7 @@ namespace ts { showInSimplifiedHelpView: true, category: Diagnostics.Basic_Options, description: Diagnostics.Do_not_emit_outputs, + transpileOptionValue: undefined }, { name: "importHelpers", @@ -403,7 +412,8 @@ namespace ts { name: "isolatedModules", type: "boolean", category: Diagnostics.Basic_Options, - description: Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule + description: Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule, + transpileOptionValue: true }, // Strict Type Checks @@ -540,7 +550,8 @@ namespace ts { affectsModuleResolution: true, isTSConfigOnly: true, category: Diagnostics.Module_Resolution_Options, - description: Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl + description: Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl, + transpileOptionValue: undefined }, { // this option can only be specified in tsconfig.json @@ -555,7 +566,8 @@ namespace ts { }, affectsModuleResolution: true, category: Diagnostics.Module_Resolution_Options, - description: Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime + description: Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime, + transpileOptionValue: undefined }, { name: "typeRoots", @@ -579,7 +591,8 @@ namespace ts { affectsModuleResolution: true, showInSimplifiedHelpView: true, category: Diagnostics.Module_Resolution_Options, - description: Diagnostics.Type_declaration_files_to_be_included_in_compilation + description: Diagnostics.Type_declaration_files_to_be_included_in_compilation, + transpileOptionValue: undefined }, { name: "allowSyntheticDefaultImports", @@ -680,6 +693,7 @@ namespace ts { category: Diagnostics.Advanced_Options, paramType: Diagnostics.FILE, description: Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file, + transpileOptionValue: undefined }, { name: "reactNamespace", @@ -729,14 +743,20 @@ namespace ts { type: "boolean", affectsModuleResolution: true, category: Diagnostics.Advanced_Options, - description: Diagnostics.Do_not_include_the_default_library_file_lib_d_ts + description: Diagnostics.Do_not_include_the_default_library_file_lib_d_ts, + // We are not returning a sourceFile for lib file when asked by the program, + // so pass --noLib to avoid reporting a file not found error. + transpileOptionValue: true }, { name: "noResolve", type: "boolean", affectsModuleResolution: true, category: Diagnostics.Advanced_Options, - description: Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files + description: Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files, + // We are not doing a full typecheck, we are not resolving the whole context, + // so pass --noResolve to avoid reporting missing file errors. + transpileOptionValue: true }, { name: "stripInternal", @@ -772,6 +792,7 @@ namespace ts { affectsEmit: true, category: Diagnostics.Advanced_Options, description: Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported, + transpileOptionValue: undefined }, { name: "preserveConstEnums", @@ -787,7 +808,8 @@ namespace ts { isFilePath: true, paramType: Diagnostics.DIRECTORY, category: Diagnostics.Advanced_Options, - description: Diagnostics.Output_directory_for_generated_declaration_files + description: Diagnostics.Output_directory_for_generated_declaration_files, + transpileOptionValue: undefined }, { name: "skipLibCheck", @@ -880,6 +902,10 @@ namespace ts { export const sourceFileAffectingCompilerOptions: readonly CommandLineOption[] = optionDeclarations.filter(option => !!option.affectsSourceFile || !!option.affectsModuleResolution || !!option.affectsBindDiagnostics); + /* @internal */ + export const transpileOptionValueCompilerOptions: ReadonlyArray = optionDeclarations.filter(option => + hasProperty(option, "transpileOptionValue")); + /* @internal */ export const buildOpts: CommandLineOption[] = [ ...commonOptionsWithBuild, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 29d732dd78d..0fbbda52a71 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4952,6 +4952,7 @@ namespace ts { affectsBindDiagnostics?: true; // true if this affects binding (currently same effect as `affectsSourceFile`) affectsSemanticDiagnostics?: true; // true if option affects semantic diagnostics affectsEmit?: true; // true if the options affects emit + transpileOptionValue?: boolean | undefined; // If set this means that the option should be set to this value when transpiling } /* @internal */ diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index 25c0564dc20..2a2911001db 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -141,11 +141,8 @@ namespace ts { export function visitLexicalEnvironment(statements: NodeArray, visitor: Visitor, context: TransformationContext, start?: number, ensureUseStrict?: boolean) { context.startLexicalEnvironment(); statements = visitNodes(statements, visitor, isStatement, start); - if (ensureUseStrict && !startsWithUseStrict(statements)) { - statements = setTextRange(createNodeArray([createExpressionStatement(createLiteral("use strict")), ...statements]), statements); - } - const declarations = context.endLexicalEnvironment(); - return setTextRange(createNodeArray(concatenate(declarations, statements)), statements); + if (ensureUseStrict) statements = ts.ensureUseStrict(statements); // tslint:disable-line no-unnecessary-qualifier + return mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); } /** diff --git a/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl index 6720bf0c191..c7210cd103b 100644 --- a/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/kor/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -8197,7 +8197,7 @@ - + diff --git a/src/services/transpile.ts b/src/services/transpile.ts index 51d1582c564..c739c8394f2 100644 --- a/src/services/transpile.ts +++ b/src/services/transpile.ts @@ -36,7 +36,9 @@ namespace ts { } } - options.isolatedModules = true; + for (const option of transpileOptionValueCompilerOptions) { + options[option.name] = option.transpileOptionValue; + } // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths. options.suppressOutputPathCheck = true; @@ -44,27 +46,6 @@ namespace ts { // Filename can be non-ts file. options.allowNonTsExtensions = true; - // We are not returning a sourceFile for lib file when asked by the program, - // so pass --noLib to avoid reporting a file not found error. - options.noLib = true; - - // Clear out other settings that would not be used in transpiling this module - options.lib = undefined; - options.types = undefined; - options.noEmit = undefined; - options.noEmitOnError = undefined; - options.paths = undefined; - options.rootDirs = undefined; - options.declaration = undefined; - options.composite = undefined; - options.declarationDir = undefined; - options.out = undefined; - options.outFile = undefined; - - // We are not doing a full typecheck, we are not resolving the whole context, - // so pass --noResolve to avoid reporting missing file errors. - options.noResolve = true; - // if jsx is specified then treat file as .tsx const inputFileName = transpileOptions.fileName || (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx ? "module.tsx" : "module.ts"); const sourceFile = createSourceFile(inputFileName, input, options.target!); // TODO: GH#18217 diff --git a/src/testRunner/unittests/services/transpile.ts b/src/testRunner/unittests/services/transpile.ts index 975a6ba8a1d..ed4a9433573 100644 --- a/src/testRunner/unittests/services/transpile.ts +++ b/src/testRunner/unittests/services/transpile.ts @@ -411,6 +411,18 @@ var x = 0;`, { options: { compilerOptions: { typeRoots: ["./folder"] }, fileName: "input.js", reportDiagnostics: true } }); + transpilesCorrectly("Supports setting 'incremental'", "x;", { + options: { compilerOptions: { incremental: true }, fileName: "input.js", reportDiagnostics: true } + }); + + transpilesCorrectly("Supports setting 'composite'", "x;", { + options: { compilerOptions: { composite: true }, fileName: "input.js", reportDiagnostics: true } + }); + + transpilesCorrectly("Supports setting 'tsbuildinfo'", "x;", { + options: { compilerOptions: { incremental: true, tsBuildInfoFile: "./folder/config.tsbuildinfo" }, fileName: "input.js", reportDiagnostics: true } + }); + transpilesCorrectly("Correctly serialize metadata when transpile with CommonJS option", `import * as ng from "angular2/core";` + `declare function foo(...args: any[]);` + diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index fa91089f9d8..6c894a93e3c 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -8,12 +8,14 @@ Executing a maximum of ?simultaneous processes... XX of XX: [@azure/abort-controller] completed successfully in ? seconds XX of XX: [@azure/core-auth] completed successfully in ? seconds XX of XX: [@azure/core-http] completed successfully in ? seconds -XX of XX: [@azure/identity] completed successfully in ? seconds -XX of XX: [@azure/core-amqp] completed successfully in ? seconds XX of XX: [@azure/core-arm] completed successfully in ? seconds XX of XX: [@azure/core-paging] completed successfully in ? seconds -XX of XX: [@azure/event-processor-host] completed successfully in ? seconds +XX of XX: [@azure/identity] completed successfully in ? seconds XX of XX: [@azure/test-utils-recorder] completed successfully in ? seconds +XX of XX: [@azure/core-amqp] completed successfully in ? seconds +XX of XX: [@azure/event-processor-host] completed successfully in ? seconds +XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds +XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds XX of XX: [@azure/app-configuration] completed successfully in ? seconds XX of XX: [@azure/core-asynciterator-polyfill] completed successfully in ? seconds XX of XX: [@azure/core-tracing] completed successfully in ? seconds @@ -21,13 +23,14 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) -uuid/v4 (imported by dist-esm/client/Item/Items.js) +uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) binary-search-bounds (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/routing/inMemoryCollectionRoutingMap.js) priorityqueuejs (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) semaphore (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) +debug (imported by dist-esm/common/logger.js) node-abort-controller (imported by dist-esm/request/RequestHandler.js) node-fetch (imported by dist-esm/request/RequestHandler.js) atob (imported by dist-esm/session/sessionContainer.js) @@ -38,6 +41,7 @@ Use output.globals to specify browser global variable names corresponding to ext universal-user-agent (guessing 'userAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') +debug (guessing 'debugLib') binary-search-bounds (guessing 'bs') priorityqueuejs (guessing 'PriorityQueue') semaphore (guessing 'semaphore') @@ -53,8 +57,6 @@ atob (guessing 'atob') created dist/index.js in ?s Warning: You have changed the public API signature for this project. Updating review/event-hubs.api.md XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds -XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds -XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md XX of XX: [@azure/storage-blob] completed successfully in ? seconds XX of XX: [@azure/storage-file] completed successfully in ? seconds @@ -66,18 +68,18 @@ SUCCESS (20) @azure/abort-controller (? seconds) @azure/core-auth (? seconds) @azure/core-http (? seconds) -@azure/identity (? seconds) -@azure/core-amqp (? seconds) @azure/core-arm (? seconds) @azure/core-paging (? seconds) -@azure/event-processor-host (? seconds) +@azure/identity (? seconds) @azure/test-utils-recorder (? seconds) +@azure/core-amqp (? seconds) +@azure/event-processor-host (? seconds) +@azure/keyvault-keys (? seconds) +@azure/keyvault-secrets (? seconds) @azure/app-configuration (? seconds) @azure/core-asynciterator-polyfill (? seconds) @azure/core-tracing (? seconds) @azure/keyvault-certificates (? seconds) -@azure/keyvault-keys (? seconds) -@azure/keyvault-secrets (? seconds) @azure/storage-blob (? seconds) @azure/storage-file (? seconds) @azure/storage-queue (? seconds) @@ -91,13 +93,14 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) -uuid/v4 (imported by dist-esm/client/Item/Items.js) +uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) binary-search-bounds (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/routing/inMemoryCollectionRoutingMap.js) priorityqueuejs (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) semaphore (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) +debug (imported by dist-esm/common/logger.js) node-abort-controller (imported by dist-esm/request/RequestHandler.js) node-fetch (imported by dist-esm/request/RequestHandler.js) atob (imported by dist-esm/session/sessionContainer.js) @@ -108,6 +111,7 @@ Use output.globals to specify browser global variable names corresponding to ext universal-user-agent (guessing 'userAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') +debug (guessing 'debugLib') binary-search-bounds (guessing 'bs') priorityqueuejs (guessing 'PriorityQueue') semaphore (guessing 'semaphore') diff --git a/tests/baselines/reference/instanceMemberWithComputedPropertyName.js b/tests/baselines/reference/instanceMemberWithComputedPropertyName.js index eba55c9899e..98b2960192c 100644 --- a/tests/baselines/reference/instanceMemberWithComputedPropertyName.js +++ b/tests/baselines/reference/instanceMemberWithComputedPropertyName.js @@ -1,5 +1,6 @@ //// [instanceMemberWithComputedPropertyName.ts] // https://github.com/microsoft/TypeScript/issues/30953 +"use strict"; const x = 1; class C { [x] = true; @@ -9,8 +10,9 @@ class C { } //// [instanceMemberWithComputedPropertyName.js] -var _a; // https://github.com/microsoft/TypeScript/issues/30953 +"use strict"; +var _a; var x = 1; var C = /** @class */ (function () { function C() { diff --git a/tests/baselines/reference/instanceMemberWithComputedPropertyName.symbols b/tests/baselines/reference/instanceMemberWithComputedPropertyName.symbols index 3d405c89cc8..3c151df85c3 100644 --- a/tests/baselines/reference/instanceMemberWithComputedPropertyName.symbols +++ b/tests/baselines/reference/instanceMemberWithComputedPropertyName.symbols @@ -1,20 +1,21 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts === // https://github.com/microsoft/TypeScript/issues/30953 +"use strict"; const x = 1; ->x : Symbol(x, Decl(instanceMemberWithComputedPropertyName.ts, 1, 5)) +>x : Symbol(x, Decl(instanceMemberWithComputedPropertyName.ts, 2, 5)) class C { ->C : Symbol(C, Decl(instanceMemberWithComputedPropertyName.ts, 1, 12)) +>C : Symbol(C, Decl(instanceMemberWithComputedPropertyName.ts, 2, 12)) [x] = true; ->[x] : Symbol(C[x], Decl(instanceMemberWithComputedPropertyName.ts, 2, 9)) ->x : Symbol(x, Decl(instanceMemberWithComputedPropertyName.ts, 1, 5)) +>[x] : Symbol(C[x], Decl(instanceMemberWithComputedPropertyName.ts, 3, 9)) +>x : Symbol(x, Decl(instanceMemberWithComputedPropertyName.ts, 2, 5)) constructor() { const { a, b } = { a: 1, b: 2 }; ->a : Symbol(a, Decl(instanceMemberWithComputedPropertyName.ts, 5, 15)) ->b : Symbol(b, Decl(instanceMemberWithComputedPropertyName.ts, 5, 18)) ->a : Symbol(a, Decl(instanceMemberWithComputedPropertyName.ts, 5, 26)) ->b : Symbol(b, Decl(instanceMemberWithComputedPropertyName.ts, 5, 32)) +>a : Symbol(a, Decl(instanceMemberWithComputedPropertyName.ts, 6, 15)) +>b : Symbol(b, Decl(instanceMemberWithComputedPropertyName.ts, 6, 18)) +>a : Symbol(a, Decl(instanceMemberWithComputedPropertyName.ts, 6, 26)) +>b : Symbol(b, Decl(instanceMemberWithComputedPropertyName.ts, 6, 32)) } } diff --git a/tests/baselines/reference/instanceMemberWithComputedPropertyName.types b/tests/baselines/reference/instanceMemberWithComputedPropertyName.types index f98cc7bb80a..412d795206e 100644 --- a/tests/baselines/reference/instanceMemberWithComputedPropertyName.types +++ b/tests/baselines/reference/instanceMemberWithComputedPropertyName.types @@ -1,5 +1,8 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts === // https://github.com/microsoft/TypeScript/issues/30953 +"use strict"; +>"use strict" : "use strict" + const x = 1; >x : 1 >1 : 1 diff --git a/tests/baselines/reference/transpile/Supports setting composite.js b/tests/baselines/reference/transpile/Supports setting composite.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting composite.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.js b/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting incremental.js b/tests/baselines/reference/transpile/Supports setting incremental.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting incremental.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.js b/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting tsbuildinfo.js b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.js b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.js new file mode 100644 index 00000000000..8394371f908 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.js @@ -0,0 +1,2 @@ +x; +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts index 31aec681445..07287f1f600 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName.ts @@ -1,4 +1,5 @@ // https://github.com/microsoft/TypeScript/issues/30953 +"use strict"; const x = 1; class C { [x] = true; diff --git a/tests/cases/user/create-react-app/create-react-app b/tests/cases/user/create-react-app/create-react-app index 6560858398d..6dec056de3c 160000 --- a/tests/cases/user/create-react-app/create-react-app +++ b/tests/cases/user/create-react-app/create-react-app @@ -1 +1 @@ -Subproject commit 6560858398ddc8d1c5b8d7f51929fcb3d9c3055c +Subproject commit 6dec056de3c646fa1bce41acadc31641237863a0 diff --git a/tests/cases/user/prettier/prettier b/tests/cases/user/prettier/prettier index 2523a017aad..223443c057e 160000 --- a/tests/cases/user/prettier/prettier +++ b/tests/cases/user/prettier/prettier @@ -1 +1 @@ -Subproject commit 2523a017aad479b006593e9b380e4e27a7caea3d +Subproject commit 223443c057e64ca04cda5c0f37f5d15daaf69337 diff --git a/tests/cases/user/webpack/webpack b/tests/cases/user/webpack/webpack index 6d923f638ab..c3ed21fb73e 160000 --- a/tests/cases/user/webpack/webpack +++ b/tests/cases/user/webpack/webpack @@ -1 +1 @@ -Subproject commit 6d923f638abab6ca5d0263be000a48ef85002fd4 +Subproject commit c3ed21fb73ea352e17421540cc28ffc5e30969cd