@pumpkin-plugins/build API / bundle / BundleOptions
Interface: BundleOptions
Defined in: tools/build/src/bundle.ts:21
Inputs to bundlePlugin.
Properties
developmentMode?
optionaldevelopmentMode?: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?
optionalonOutput?: (message) =>void
Defined in: tools/build/src/bundle.ts:29
Receives build messages for formatting by the build command.
Parameters
message
Returns
void
output
output:
string
Defined in: tools/build/src/bundle.ts:31
Where to write the .wasm.
parseTypeScript?
optionalparseTypeScript?:boolean
Defined in: tools/build/src/bundle.ts:33
Pass the bundle to Hermes's partial, unstable TypeScript parser. Static Hermes only.
projectRoot?
optionalprojectRoot?:string
Defined in: tools/build/src/bundle.ts:35
Consumer project root used for runtime toolchain caches.
quietRuntimeOutput?
optionalquietRuntimeOutput?:boolean
Defined in: tools/build/src/bundle.ts:37
Suppress runtime stdout while preserving stderr for the build command's shared formatter.
staticHermesGc?
optionalstaticHermesGc?:HermesGcVariant
Defined in: tools/build/src/bundle.ts:39
Static Hermes garbage collector. Defaults to Hades.
staticHermesRuntime?
optionalstaticHermesRuntime?: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.