Skip to content

Node.js Compat #1206

Description

@MendyBerger

Many npm packages fail to run with jco transpile because they depend on NodeJS built-ins and globals like Buffer and process that are missing in wasi environments. I'd like to propose adding a Node compatibility mode to automatically polyfill these APIs and inject required globals during the componentization process.

This integration would allow jco to handle node:* imports and common globals out of the box, making the massive npm ecosystem significantly more accessible to the Component Model with a simple flag like --node-compat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions