-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes and added default async imports and exports
- Loading branch information
Showing
4 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,8 +52,10 @@ program.command('transpile') | |
.option('--valid-lifting-optimization', 'optimize component binary validations assuming all lifted values are valid') | ||
.addOption(new Option('--import-bindings [mode]', 'bindings mode for imports').choices(['js', 'optimized', 'hybrid', 'direct-optimized']).preset('js')) | ||
.addOption(new Option('--async-mode [mode]', 'use async imports and exports').choices(['sync', 'jspi', 'asyncify']).preset('sync')) | ||
.option('--async-imports <imports...>', 'async component imports (examples: "wasi:io/[email protected]#poll", "wasi:io/[email protected]#[method]pollable.block")') | ||
.option('--async-exports <exports...>', 'async component exports (examples: "wasi:cli/[email protected]#run", "handle")') | ||
.option('--default-async-imports', 'default async component imports from WASI interfaces') | ||
.option('--default-async-exports', 'default async component exports from WASI interfaces') | ||
.option('--async-imports <imports...>', 'async component imports (examples: "wasi:io/[email protected]#poll", "wasi:io/poll#[method]pollable.block")') | ||
.option('--async-exports <exports...>', 'async component exports (examples: "wasi:cli/run@#run", "handle")') | ||
.option('--tracing', 'emit `tracing` calls on function entry/exit') | ||
.option('-b, --base64-cutoff <bytes>', 'set the byte size under which core Wasm binaries will be inlined as base64', myParseInt) | ||
.option('--tla-compat', 'enables compatibility for JS environments without top-level await support via an async $init promise export') | ||
|