I am trying to upgrade my Webpack 4 to Webpack5. (Earlier it was Webpack2)
On running node --trace-deprecation node_modules/webpack/bin/webpack.js
I get
(node:30954) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
at DecompressPlugin.apply (/Users/adityashukla/projects/userInterface/source-catalog-web/plugins/DecompressPlugin.js:16:18)
at webpack (/Users/adityashukla/projects/userInterface/source-catalog-web/node_modules/webpack/lib/webpack.js:51:13)
I am trying to upgrade my Webpack 4 to Webpack5. (Earlier it was Webpack2)
On running node --trace-deprecation node_modules/webpack/bin/webpack.js I get
(node:30954) DeprecationWarning: Tapable.plugin is deprecated. Use new API on
.hooks
instead at DecompressPlugin.apply (/Users/adityashukla/projects/userInterface/source-catalog-web/plugins/DecompressPlugin.js:16:18) at webpack (/Users/adityashukla/projects/userInterface/source-catalog-web/node_modules/webpack/lib/webpack.js:51:13)My Plugin looks like this
How can i resolve this ?