Closed
Description
Bug report
What is the current behavior?
Plugin apply not working for multi compiler.
If the current behavior is a bug, please provide the steps to reproduce.
import webpack from 'webpack';
const compiler = webpack([{
// ...
}]);
for(const compiler of compiler.compilers) {
// DefinePlugin
new webpack.DefinePlugin(
// ...
).apply(compiler);
// EntryPlugin
new webpack.EntryPlugin(
// ...
).apply(compiler);
// HotModuleReplacementPlugin
new webpack.HotModuleReplacementPlugin(
// ...
).apply(compiler);
}
All plugins DefinePlugin, EntryPlugin, HotModuleReplacementPlugin
are not working.
What is the expected behavior?
Plugin apply not working for multi compiler.
Other relevant information:
webpack version: 5.91.0
Node.js version: 21.7.1
Operating System: Windows 11
Additional tools: N/A
Metadata
Metadata
Assignees
Labels
No labels