@pumpkin-plugins/build API / bundle / bundlePlugin
Function: bundlePlugin()
bundlePlugin(
options):Promise<number>
Defined in: tools/build/src/bundle.ts:55
Bundles a plugin with esbuild and turns it into a WebAssembly component, leaving pumpkin:plugin/* and wasi:* as imports. Oversized production builds warn, or fail when PUMPKIN_PLUGINS_FAIL_ON_SIZE_LIMIT=1 is set.
Parameters
options
What to build.
Returns
Promise<number>
The size of the component in bytes.