Skip to content

Support ES modules in workers #21502

@targos

Description

@targos

This is how it should be done according to the HTML spec:

const worker = new Worker('worker.mjs', { type: 'module' });

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.workerIssues and PRs related to Worker support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions