Skip to content

Support source phase imports JS proposal #23047

@sbc100

Description

@sbc100

The source phase imports proposal should allow us to simplify the emscripten-generated JS code significantly: https://github.com/tc39/proposal-source-phase-imports.

This proposal is at phase 3 so browser should be supporting without a flag soon. For folks that use bundlers that bundler should also be able to lower this away.

It seems like we should want a new setting for enable this, which should allow us to elide a lot of the wasm file loading code.

Chromium tracking issue: https://issues.chromium.org/issues/42204365

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions