Skip to content

Conditionalize __esModule emit? #32934

Closed as not planned
Closed as not planned
@RyanCavanaugh

Description

@RyanCavanaugh

Numerous issues pointed to from #32083 have people running in environments where it's not safe to emit the __esModule property for whatever reason.

Instead of adding a flag, we could just emit (typeof exports !== 'undefined') && Object.defineProperty(...

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions