Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement source phase imports #413

Merged
merged 20 commits into from
Mar 28, 2024
Merged

feat: implement source phase imports #413

merged 20 commits into from
Mar 28, 2024

Conversation

guybedford
Copy link
Owner

@guybedford guybedford commented Mar 26, 2024

This implements source phase imports for es-module-shims, via a new feature enable flag - 'source-phase'.

Using WebAssembly modules with the source phase thus involves turning on two new features - 'source-phase' and 'wasm-modules' (supported previously in #408).

Support is added for both the static (import source wasmSource from './test.wasm') and the dynamic forms (import.source('./test.wasm')).

This PR pulls in and passes all the WPT tests for the ESM integration.

@guybedford guybedford merged commit e890fcb into main Mar 28, 2024
7 checks passed
@guybedford guybedford deleted the source-phase branch March 28, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant