Bug Report
🔎 Search Terms
allowSyntheticDefaultImports
🕗 Version & Regression Information
I could not find this in GitHub but in the locally imported typescript package, getAllowSyntheticDefaultImports is implemented as follows:
functiongetAllowSyntheticDefaultImports(compilerOptions){if(compilerOptions.allowSyntheticDefaultImports!==void0){returncompilerOptions.allowSyntheticDefaultImports;}returngetESModuleInterop(compilerOptions)||getEmitModuleKind(compilerOptions)===4/* System */||getEmitModuleResolutionKind(compilerOptions)===100/* Bundler */;}🙁 Actual behavior
https://www.typescriptlang.org/tsconfig#allowSyntheticDefaultImports says that the default value for allowSyntheticDefaultImports is:
true if module is system, or esModuleInterop and module is not es6/es2015 or esnext,,false otherwise.
🙂 Expected behavior
According to the implementation (and the behavior I can observe in my project), the actual default value for allowSyntheticDefaultImports is:
true if module is system, esModuleInterop, or moduleResolution is bundler, false otherwise.
Bug Report
🔎 Search Terms
allowSyntheticDefaultImports
🕗 Version & Regression Information
I could not find this in GitHub but in the locally imported
typescriptpackage,getAllowSyntheticDefaultImportsis implemented as follows:🙁 Actual behavior
https://www.typescriptlang.org/tsconfig#allowSyntheticDefaultImports says that the default value for
allowSyntheticDefaultImportsis:🙂 Expected behavior
According to the implementation (and the behavior I can observe in my project), the actual default value for
allowSyntheticDefaultImportsis: