Skip to content

__commonJS should pass falsy define to shadow the global refrence #3378

Open
@magic-akari

Description

@magic-akari
image

I am using Vite, which uses esbuild under the hood.
When I was investigating why a package's exports were not working,
I found that the code was entering the AMD branch because my browser environment includes AMD, imported by Monaco.
However, I don't think the code wrapped in __commonJS should be going into the AMD branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions