NormalModuleFactory.beforeResolve (IgnorePlugin, NormalModuleReplacementPlugin) is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created.
I'm using webpack 5 with the following plugins:
[
new MomentTimezoneDataPlugin({
startYear: currentYear - 100,
endYear: currentYear + 5,
}),
new BundleAnalyzerPlugin({analyzerMode: "static"}),
new LodashModuleReplacementPlugin(),
new BundleTracker({filename: "../../core/webpack-stats.json", indent: 4}),
]
Hi! I have the following error:
NormalModuleFactory.beforeResolve (IgnorePlugin, NormalModuleReplacementPlugin) is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created.
I'm using webpack 5 with the following plugins: