| 34 | * Options used to change W2CGenerator behavior. |
| 35 | */ |
| 36 | export interface CodegenOptions { |
| 37 | /** |
| 38 | * Path to output directory where generated files will be created. |
| 39 | * |
| 40 | * Directories for specific modules will be created within this |
| 41 | * directory. |
| 42 | */ |
| 43 | outputDirectory?: string; |
| 44 | |
| 45 | /** |
| 46 | * If true, all modules are built into single turbo module. |
| 47 | * |
| 48 | * This can increase build times if one of the WASM module was changed. |
| 49 | * This only works with static linking. |
| 50 | * |
| 51 | * TODO: Currently only this works |
| 52 | * |
| 53 | * @defaultValue true |
| 54 | */ |
| 55 | singleProject?: boolean; |
| 56 | |
| 57 | /** |
| 58 | * If true, generated files are re-generated and written |
| 59 | * even if stale. |
| 60 | * |
| 61 | * @defaultValue false |
| 62 | */ |
| 63 | forceGenerate?: boolean; |
| 64 | |
| 65 | /** |
| 66 | * If true, additional debug metadata files are generated alongside |
| 67 | * output source files. |
| 68 | * |
| 69 | * @defaultValue false |
| 70 | */ |
| 71 | generateMetadata?: boolean; |
| 72 | } |
| 73 | |
| 74 | export interface PluginDispatchOptions { |
| 75 | beforePluginDispatch?: (plugin: Plugin) => Promise<unknown> | unknown; |
nothing calls this directly
no outgoing calls
no test coverage detected