Skip to content

Invalid lib/platform/node.mjs file due to usage of require statement #178

@noahnu

Description

@noahnu

To reproduce:

yarn prepack

and then inspect lib/platform/node.mjs, you'll see:

const { AsyncLocalStorage: LazyAsyncLocalStorage } = require(`async_hooks`);

however "require" is not defined as a global in ESM.

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