Optional
checkCheck for incompatible wasm types when importing/exporting from/to ESM.
Optional
chunkDefine the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).
Optional
concatenateConcatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.
Optional
emitEmit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.
Optional
flagAlso flag chunks as loaded which contain a subset of the modules.
Optional
innerCreates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.
Optional
mangleRename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports, true/"deterministic": generate short deterministic names optimized for caching, "size": generate the shortest possible names).
Optional
mangleReduce size of WASM by changing imports to shorter strings.
Optional
mergeMerge chunks which contain the same modules.
Optional
minimizeEnable minimizing the output. Uses optimization.minimizer.
Optional
minimizerMinimizer(s) to use for minimizing the output.
Optional
moduleDefine the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).
Optional
noAvoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).
Optional
nodeSet process.env.NODE_ENV to a specific value.
Optional
portableGenerate records with relative paths to be able to move the context folder.
Optional
providedFigure out which exports are provided by modules to generate more efficient code.
Optional
realUse real [contenthash] based on final content of the assets.
Optional
removeRemoves modules from chunks when these modules are already included in all parents.
Optional
removeRemove chunks which are empty.
Optional
runtimeCreate an additional chunk which contains only the webpack runtime and chunk hash maps.
Optional
name?: string | FunctionThe name or name factory for the runtime chunks.
Optional
sideSkip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).
Optional
splitOptimize duplication and caching by splitting chunks by shared modules and cache group.
Optional
usedFigure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code (true: analyse used exports for each runtime, "global": analyse exports globally for all runtimes combined).
Generated using TypeDoc
Enables/Disables integrated optimizations.