Skip to content

@pumpkin-plugins/build API / bundle / BundleOptions

Interface: BundleOptions ​

Defined in: tools/build/src/bundle.ts:21

Inputs to bundlePlugin.

Properties ​

developmentMode? ​

optional developmentMode?: boolean

Defined in: tools/build/src/bundle.ts:23

Whether this is a development build.


engine ​

engine: PluginEngine

Defined in: tools/build/src/bundle.ts:25

Runtime used for the component.


entry ​

entry: string

Defined in: tools/build/src/bundle.ts:27

Source file to bundle.


onOutput? ​

optional onOutput?: (message) => void

Defined in: tools/build/src/bundle.ts:29

Receives build messages for formatting by the build command.

Parameters ​

message ​

BuildOutputMessage

Returns ​

void


output ​

output: string

Defined in: tools/build/src/bundle.ts:31

Where to write the .wasm.


parseTypeScript? ​

optional parseTypeScript?: boolean

Defined in: tools/build/src/bundle.ts:33

Pass the bundle to Hermes's partial, unstable TypeScript parser. Static Hermes only.


projectRoot? ​

optional projectRoot?: string

Defined in: tools/build/src/bundle.ts:35

Consumer project root used for runtime toolchain caches.


quietRuntimeOutput? ​

optional quietRuntimeOutput?: boolean

Defined in: tools/build/src/bundle.ts:37

Suppress runtime stdout while preserving stderr for the build command's shared formatter.


staticHermesGc? ​

optional staticHermesGc?: HermesGcVariant

Defined in: tools/build/src/bundle.ts:39

Static Hermes garbage collector. Defaults to Hades.


staticHermesRuntime? ​

optional staticHermesRuntime?: StaticHermesRuntimeVariant

Defined in: tools/build/src/bundle.ts:41

Static Hermes VM profile. Defaults to lean, which omits runtime eval.


version ​

version: string

Defined in: tools/build/src/bundle.ts:43

Injected as __PLUGIN_VERSION__.


witDir ​

witDir: string

Defined in: tools/build/src/bundle.ts:45

The WIT the component is built against.

pumpkin-plugins documentation