Skip to content

es/transpiler: optional chain on import.meta results in import.meta not getting transformed despite preserveImportMeta: false #10988

@PeterCardenas

Description

@PeterCardenas

When transpiling esm code that has import.meta?.url, it does not get transformed in any way, despite import.meta.url being transformed. Expected behavior is that it should be transformed in some way since import.meta is not supported in commonjs environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions