Skip to content

v8 boundary: ESM import in pragma files #623

@cs01

Description

@cs01

Current pragma wrapper regex-strips export and rebinds require. ESM import x from "..." doesn't work.

Ask

Detect ESM vs CJS pragma source. Route ESM via node::LoadEnvironment module path instead of CJS wrapping.

Est

~1-2 days. Messy because we currently source-rewrite; need alternate path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus:plannedTracked, not scheduledv8-escape-hatchPragma / libnode / JSHandle marshalling work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions