For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /plugins/webpack-built-in-plugin-support.md.
close

webpack plugin compatibility

The table below shows Rspack compatibility with webpack built-in plugin APIs and selected internal plugins. Linked plugin names open the corresponding Rspack reference documentation.

Contributions for plugins or features that have not yet been implemented are welcome.

PluginSupport statusNotes
APIPlugin🟢 Supported
BannerPlugin🟢 Supported
CommonJsPlugin🟢 Supported
ConstPlugin🟢 Supported
ConsumeSharedPlugin🟢 Supported
ContainerPlugin🟢 Supported
ContainerReferencePlugin🟢 Supported
ContextReplacementPlugin🟢 Supported
DeterministicModuleIdsPlugin🟢 Supported
DllPlugin🟢 Supported
DllReferencePlugin🟢 Supported
DynamicEntryPlugin🟢 Supported
ElectronTargetPlugin🟢 Supported
EnableChunkLoadingPlugin🟢 Supported
EnableLibraryPlugin🟢 Supported
EnableWasmLoadingPlugin🟢 Supported
EntryOptionPlugin🟢 Supported
EntryPlugin🟢 Supported
EnvironmentPlugin🟢 Supported
EvalDevToolModulePlugin🟢 Supported
EvalSourceMapDevToolPlugin🟢 Supported
ExternalsPlugin🟢 Supported
FetchCompileAsyncWasmPlugin🟢 Supported
HashedModuleIdsPlugin🟢 Supported
HotModuleReplacementPlugin🟢 Supported
HttpUriPlugin🟢 Supported
IgnorePlugin🟢 Supported
JsonpTemplatePlugin🟢 Supported
LimitChunkCountPlugin🟢 Supported
LoaderOptionsPlugin🟢 Supported
LoaderTargetPlugin🟢 Supported
MergeDuplicateChunksPlugin🟢 Supported
ModuleConcatenationPlugin🟢 Supported
ModuleFederationPlugin🟢 Supported
NaturalChunkIdsPlugin🟢 Supported
NaturalModuleIdsPlugin🟢 Supported
NodeEnvironmentPlugin🟢 Supported
NodeTargetPlugin🟢 Supported
NodeTemplatePlugin🟢 Supported
NoEmitOnErrorsPlugin🟢 Supported
NormalModuleReplacementPlugin🟢 Supported
OccurrenceChunkIdsPlugin🟢 Supported
ProvidePlugin🟢 Supported
ProvideSharedPlugin🟢 Supported
RemoveEmptyChunksPlugin🟢 Supported
RuntimeChunkPlugin🟢 Supported
SharePlugin🟢 Supported
SideEffectsFlagPlugin🟢 Supported
SourceMapDevToolPlugin🟢 Supported
SplitChunksPlugin🟢 Supported
SyncModuleIdsPlugin🟢 Supported
WebWorkerTemplatePlugin🟢 Supported
AsyncWebAssemblyModulesPlugin🟡 Partially supportedUsed internally, but not exposed through the JavaScript API
ChunkPrefetchPreloadPlugin🟡 Partially supportedUsed internally, but not exposed through the JavaScript API
CssModulesPlugin🟡 Partially supportedUsed internally, but not exposed through the JavaScript API
DefinePlugin🟡 Partially supportedrspack.DefinePlugin.runtimeValue is not supported
DeterministicChunkIdsPlugin🟡 Partially supportedcontext and maxLength options are not supported
JavascriptModulesPlugin🟡 Partially supportedStatic getCompilationHooks() does not expose all hooks
NamedChunkIdsPlugin🟡 Partially supporteddelimiter and context options are not supported
NamedModuleIdsPlugin🟡 Partially supportedcontext is not supported
ProgressPlugin🟡 Partially supportedOnly some options are supported
ReadFileCompileAsyncWasmPlugin🟡 Partially supportedUsed internally, but not exposed through the JavaScript API
RealContentHashPlugin🟡 Partially supportedhashFunction and hashDigest options are not supported
SingleEntryPlugin🟡 Partially supportedUse EntryPlugin instead
AbstractLibraryPlugin🔴 Not supportedNot implemented
AggressiveMergingPlugin🔴 Not supportedNot implemented
AggressiveSplittingPlugin🔴 Not supportedNot implemented
AMDPlugin🔴 Not supportedNot implemented
AutomaticPrefetchPlugin🔴 Not supportedNot implemented
ChunkModuleIdRangePlugin🔴 Not supportedNot implemented
CleanPlugin🔴 Not supportedNot implemented
ContextExclusionPlugin🔴 Not supportedNot implemented
DelegatedPlugin🔴 Not supportedNot implemented
DotenvPlugin🔴 Not supportedNot implemented
FetchCompileWasmPlugin🔴 Not supportedNot implemented
FlagIncludedChunksPlugin🔴 Not supportedNot implemented
HtmlModulesPlugin🔴 Not supportedNot implemented
LibManifestPlugin🔴 Not supportedNot implemented
LibraryTemplatePlugin🔴 Not supportedNot implemented
ManifestPlugin🔴 Not supportedNot implemented
MemoryCachePlugin🔴 Not supportedNot implemented
MinChunkSizePlugin🔴 Not supportedNot implemented
NodeSourcePlugin🔴 Not supportedNot implemented
OccurrenceModuleIdsPlugin🔴 Not supportedNot implemented
PlatformPlugin🔴 Not supportedNot implemented
PrefetchPlugin🔴 Not supportedNot implemented
ProfilingPlugin🔴 Not supportedNot implemented
ReadFileCompileWasmPlugin🔴 Not supportedNot implemented
RecordIdsPlugin🔴 Not supportedNot implemented
RequireContextPlugin🔴 Not supportedNot implemented
RequireEnsurePlugin🔴 Not supportedNot implemented
RequireIncludePlugin🔴 Not supportedNot implemented
RequireJsStuffPlugin🔴 Not supportedNot implemented
VirtualUrlPlugin🔴 Not supportedNot implemented
WatchIgnorePlugin🔴 Not supportedNot implemented