Skip to content

Docs: Confusion about when allowSyntheticDefaultImports is true #2169

@joebowbeer

Description

@joebowbeer

Page URL:

https://www.typescriptlang.org/docs/handbook/compiler-options.html

https://github.com/microsoft/TypeScript-Website/edit/v2/packages/documentation/copy/en/project-config/Compiler%20Options.md

Issue:

The documentation is confusing regarding when allowSyntheticDefaultImports is true.

The esModuleInterop documentation says enabling it will also enable allowSyntheticDefaultImports. However on this page, the allowSyntheticDefaultImports documentation says that it will be:

true if module is system, or esModuleInterop and module is not es6/es2015 or esnext, false otherwise.

It is not clear for example, what happens by default if esModuleInterop is true and module is es2019.

Recommended Fix:

TBD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions