close
logologo
Guide
Config
Plugin
API
Blog
About
Contribute
Version
Changelog
Rspack 0.x Doc
English
简体中文
Guide
Config
Plugin
API
Blog
About
Contribute
Changelog
Rspack 0.x Doc
English
简体中文
logologo
Introduction

Webpack-aligned built-in plugins

Overview
BannerPlugin
ContextReplacementPlugin
DefinePlugin
DllPlugin
DllReferencePlugin
ElectronTargetPlugin
EnableChunkLoadingPlugin
EnableLibraryPlugin
EnableWasmLoadingPlugin
EntryPlugin
EnvironmentPlugin
EvalSourceMapDevToolPlugin
ExternalsPlugin
HotModuleReplacementPlugin
IgnorePlugin
JavascriptModulesPlugin
LimitChunkCountPlugin
ModuleFederationPlugin
ModuleFederationPluginV1
NoEmitOnErrorsPlugin
NodeTargetPlugin
NodeTemplatePlugin
NormalModuleReplacementPlugin
ProgressPlugin
ProvidePlugin
RuntimeChunkPlugin
SourceMapDevToolPlugin
SplitChunksPlugin
WarnCaseSensitiveModulesPlugin
Internal plugins

Rspack-only built-in plugins

CircularDependencyRspackPlugin
CopyRspackPlugin
CssExtractRspackPlugin
HtmlRspackPlugin
LightningCssMinimizerRspackPlugin
SubresourceIntegrityPlugin
SwcJsMinimizerRspackPlugin

#RuntimeChunkPlugin

Used to control how the runtime chunk is generated, it is used by optimization.runtimeChunk under the hood.

#Options

#name

Used to configure the name of the runtime chunk; it can be a string or a function that returns a string, where the function parameter is the name of the entry.

  • Type: string | ((entrypoint: { name: string }) => string)
new rspack.optimize.RuntimeChunkPlugin({
  name: ({ name }) => `runtime~${name}`,
});
📝 Edit this page on GitHub
Previous PageProvidePlugin
Next PageSourceMapDevToolPlugin