Skip to content

@pumpkin-plugins/static-hermes-runtime API / esbuild-plugin / staticHermesImportsPlugin

Function: staticHermesImportsPlugin() ​

staticHermesImportsPlugin(options): Plugin

Defined in: esbuild-plugin.ts:33

Resolves imported Pumpkin and WASI interfaces from the plugin's WIT world and provides generated facades.

Parameters ​

options ​

StaticHermesImportsOptions

WIT inputs and callbacks used to resolve the bundle's imports.

Returns ​

Plugin

An esbuild plugin that loads generated Pumpkin and WASI facade modules.

Remarks ​

The setup hook resolves the pinned wasm-tools binary before registering module handlers. Imports that are absent from the WIT world fail the esbuild build. In development mode, the update-check import is replaced with a wrapper that registers the plugin without running automatic update checks.

pumpkin-plugins documentation