change transpile to compile (#55881)

This commit is contained in:
Oleksandr T
2023-09-27 01:32:49 +03:00
committed by GitHub
parent 1b70ac32b2
commit fbe426e7d3
8 changed files with 28 additions and 28 deletions

View File

@@ -45210,10 +45210,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
if (mode !== ModuleKind.ESNext && moduleKind !== ModuleKind.ESNext) {
const message = isImportAttributes
? moduleKind === ModuleKind.NodeNext
? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_transpile_to_CommonJS_require_calls
? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
: Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext
: moduleKind === ModuleKind.NodeNext
? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_CommonJS_require_calls
? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
: Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;
return grammarErrorOnNode(node, message);
}

View File

@@ -3603,7 +3603,7 @@
"category": "Error",
"code": 2835
},
"Import assertions are not allowed on statements that transpile to CommonJS 'require' calls.": {
"Import assertions are not allowed on statements that compile to CommonJS 'require' calls.": {
"category": "Error",
"code": 2836
},
@@ -3675,7 +3675,7 @@
"category": "Error",
"code": 2855
},
"Import attributes are not allowed on statements that transpile to CommonJS 'require' calls.": {
"Import attributes are not allowed on statements that compile to CommonJS 'require' calls.": {
"category": "Error",
"code": 2856
},