We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a32f44f commit 9024032Copy full SHA for 9024032
1 file changed
src/compiler/checker.ts
@@ -46,7 +46,7 @@ namespace ts {
46
const compilerOptions = host.getCompilerOptions();
47
const languageVersion = compilerOptions.target || ScriptTarget.ES3;
48
const modulekind = compilerOptions.module ? compilerOptions.module : languageVersion === ScriptTarget.ES6 ? ModuleKind.ES6 : ModuleKind.None;
49
- const allowSyntheticDefaultImports = compilerOptions.hasOwnProperty("allowSyntheticDefaultImports") ? compilerOptions.allowSyntheticDefaultImports : modulekind === ModuleKind.System;
+ const allowSyntheticDefaultImports = typeof compilerOptions.allowSyntheticDefaultImports !== "undefined" ? compilerOptions.allowSyntheticDefaultImports : modulekind === ModuleKind.System;
50
51
const emitResolver = createResolver();
52
0 commit comments