File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,20 @@ interface ComponentizeOptions {
2222 /**
2323 * Disable WASI features in the base engine
2424 * Disabling all features results in a pure component with no WASI dependence
25+ *
26+ * - stdio: console.log(), console.error and errors are provided to stderr
27+ * - random: Math.random() and crypto.randomBytes()
28+ * - clocks: Date.now()
29+ *
2530 */
2631 disableFeatures ?: ( 'stdio' | 'random' | 'clocks' ) [ ] ,
32+ /**
33+ * Enable WASI features in the base engine
34+ *
35+ * - http: fetch() API
36+ *
37+ */
38+ enableFeatures ?: ( 'http' ) [ ] ,
2739}
2840
2941/**
@@ -45,7 +57,7 @@ interface ComponentizeOutput {
4557 */
4658 component : Uint8Array ,
4759 /**
48- * Available component world imports to the componentized JavaScript (whether used or not )
60+ * Used guest imports in JavaScript (excluding those from StarlingMonkey engine )
4961 */
5062 imports : [ [ string , string ] ] [ ]
5163}
You can’t perform that action at this time.
0 commit comments