mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Adress review comments
This commit is contained in:
@@ -28103,7 +28103,7 @@ namespace ts {
|
||||
|
||||
function checkGrammarImportCallExpression(node: ImportCall): boolean {
|
||||
if (moduleKind === ModuleKind.ES2015) {
|
||||
return grammarErrorOnNode(node, Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_Please_use_esnext_or_commonjs_as_module_compiler_option);
|
||||
return grammarErrorOnNode(node, Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);
|
||||
}
|
||||
|
||||
if (node.typeArguments) {
|
||||
|
||||
@@ -895,7 +895,7 @@
|
||||
"category": "Error",
|
||||
"code": 1322
|
||||
},
|
||||
"Dynamic import cannot be used when targeting ECMAScript 2015 modules. Please use 'esnext' or 'commonjs' as module compiler option.": {
|
||||
"Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'.": {
|
||||
"category": "Error",
|
||||
"code": 1323
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user