File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,20 @@ interface ComponentizeOptions {
22
22
/**
23
23
* Disable WASI features in the base engine
24
24
* 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
+ *
25
30
*/
26
31
disableFeatures ?: ( 'stdio' | 'random' | 'clocks' ) [ ] ,
32
+ /**
33
+ * Enable WASI features in the base engine
34
+ *
35
+ * - http: fetch() API
36
+ *
37
+ */
38
+ enableFeatures ?: ( 'http' ) [ ] ,
27
39
}
28
40
29
41
/**
@@ -45,7 +57,7 @@ interface ComponentizeOutput {
45
57
*/
46
58
component : Uint8Array ,
47
59
/**
48
- * Available component world imports to the componentized JavaScript (whether used or not )
60
+ * Used guest imports in JavaScript (excluding those from StarlingMonkey engine )
49
61
*/
50
62
imports : [ [ string , string ] ] [ ]
51
63
}
You can’t perform that action at this time.
0 commit comments