stephencookdev / speed-measure-webpack-plugin

⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
MIT License
2.42k stars 79 forks source link

"DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead" in Webpack 4 #154

Open JasonKleban opened 3 years ago

JasonKleban commented 3 years ago

This code is invoking a "DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead"

https://github.com/stephencookdev/speed-measure-webpack-plugin/blob/24052675160ceaf42f53d06e3da538ecf04e9e81/WrappedPlugin/index.js#L58-L70

Perhaps this similar fix in another library could be a guide for a PR here, but the higher-order nature of the code in speed-measure-webpack-plugin make it not obvious to apply.

https://github.com/jantimon/html-webpack-plugin/issues/879#issuecomment-379513102