8000 Check for both 'module' and 'target'. · microsoft/TypeScript@161535b · GitHub
[go: up one dir, main page]

Skip to content

Commit 161535b

Browse files
Check for both 'module' and 'target'.
1 parent bc0d3e1 commit 161535b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18812,7 +18812,7 @@ namespace ts {
1881218812
}
1881318813

1881418814
function checkImportMetaProperty(node: MetaProperty) {
18815-
if (languageVersion < ScriptTarget.ESNext && moduleKind < ModuleKind.ESNext) {
18815+
if (languageVersion < ScriptTarget.ESNext || moduleKind < ModuleKind.ESNext) {
1881618816
error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options);
1881718817
}
1881818818
const file = getSourceFileOfNode(node);

0 commit comments

Comments
 (0)
0