image-sprite-webpack-plugin icon indicating copy to clipboard operation
image-sprite-webpack-plugin copied to clipboard

deprecation warning in the log

Open sarkiroka opened this issue 3 years ago • 2 comments

Hi! I use this plugin with webpack 5 and works fine but I give a message in the log:

(node:32) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.modules was changed from Array to Set (using Array method 'some' is deprecated)
(Use `node --trace-deprecation ...` to show where the warning was created)

Can you help me?

sarkiroka avatar Apr 11 '21 17:04 sarkiroka

I found some docs in webpack site: https://webpack.js.org/blog/2020-10-10-webpack-5-release/#arrays-to-sets I hope it helps you :)

sarkiroka avatar Apr 12 '21 06:04 sarkiroka

@sarkiroka Thank you for your help! I'll check it soon and I'll fix for webpack 5. Best 😃

ajaxlab avatar Apr 12 '21 06:04 ajaxlab