Skip to content

detect if in WebContainer #1095

@andrewmd5

Description

@andrewmd5

I'm porting a native program to run under WASM so it can be used within Stackblitz (and other web environments). Does WebContainer currently expose any environment variables or some means of detecting of 'node' is actually running within a WebContainer?

const arch = process.arch;
const platform = process.platform;

reports Linux x64 rather than the expected WASM

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