Skip to content

WASM_WORKERS and ES6 exports #17664

Open
Open
@tzvetelin-vassilev

Description

@tzvetelin-vassilev

Version of emscripten/emsdk: 3.1.13

options: -s MODULARIZE=1 -s EXPORT_ES6=1 -s WASM_WORKERS

wasm_worker.js should be slightly different with ES6 exported Module
Worker constructor needs option type = module
importScripts(d.js) is not working in this mode, in classic mode also is not working because ES6 export
importScripts should be replaced with dynamic import

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions