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

Webpack-aligned built-in plugins

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

Rspack-only built-in plugins

CopyRspackPlugin
CssExtractRspackPlugin
HtmlRspackPlugin
LightningCssMinimizerRspackPlugin
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
ON THIS PAGE
  • Options
  • name