mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
change transpile to compile (#55881)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user