| 1 | interface ComponentizeOptions { |
| 2 | /** |
| 3 | * The path to the file to componentize. |
| 4 | * |
| 5 | * This file must be a valid JavaScript module, and can import other modules using relative paths. |
| 6 | */ |
| 7 | sourcePath: string; |
| 8 | /** |
| 9 | * Path to WIT file or folder |
| 10 | */ |
| 11 | witPath?: string; |
| 12 | /** |
| 13 | * Target world name for componentization |
| 14 | */ |
| 15 | worldName?: string; |
| 16 | /** |
| 17 | * Path to custom ComponentizeJS engine build to use |
| 18 | */ |
| 19 | engine?: string; |
| 20 | /** |
| 21 | * Path to custom weval cache to use |
| 22 | */ |
| 23 | aotCache?: string; |
| 24 | /** |
| 25 | * Enable AoT using weval |
| 26 | */ |
| 27 | enableAot?: boolean; |
| 28 | /** |
| 29 | * Use a pre-existing path to the `weval` binary, if present |
| 30 | */ |
| 31 | wevalBin?: string; |
| 32 | /** |
| 33 | * Use a pre-existing path to the `wizer` binary, if present |
| 34 | */ |
| 35 | wizerBin?: string; |
| 36 | /** |
| 37 | * Path to custom Preview2 Adapter |
| 38 | */ |
| 39 | preview2Adapter?: string; |
| 40 | /** |
| 41 | * Disable WASI features in the base engine |
| 42 | * Disabling all features results in a pure component with no WASI dependence |
| 43 | * |
| 44 | * - stdio: console.log(), console.error and errors are provided to stderr |
| 45 | * - random: Math.random() and crypto.randomBytes() |
| 46 | * - clocks: Date.now(), performance.now() |
| 47 | * - http: fetch() support |
| 48 | * |
| 49 | */ |
| 50 | disableFeatures?: ('stdio' | 'random' | 'clocks' | 'http' | 'fetch-event')[]; |
| 51 | /** |
| 52 | * Enable WASI features in the base engine |
| 53 | * (no experimental subsystems currently supported) |
| 54 | */ |
| 55 | enableFeatures?: []; |
| 56 | /** |
| 57 | * Pass environment variables to the spawned Wizer or Weval Process |
| 58 | * If set to true, all host environment variables are passed |
| 59 | * To pass only a subset, provide an object with the desired variables |
| 60 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected