@pumpkin-plugins/build API / wit / injectWasiImports
Function: injectWasiImports()
injectWasiImports(
pluginWit,interfaces):string
Defined in: tools/build/src/wit.ts:13
Adds WASI imports to the plugin world, just before its first export.
Parameters
pluginWit
string
The text of plugin.wit.
interfaces
readonly string[]
Interfaces as package/interface, such as io/poll.
Returns
string
The changed text.
Throws
When the file has no export to anchor on, which means the API layout changed.