webpack-md5-hash
webpack-md5-hash copied to clipboard
Webpack 3 deprecation warning
When using this plugin with web pack 3 a deprecation warning is issued..
DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
Yes. I am getting the same warning.
@erm0l0v - As a part of lessons learned in extract-text-webpack-plugin & In the spirit of saving you a bit of searching, chunk.modules.sort()
was removed in the initial [email protected]
release.
A sort function was added as a part of 3.1.0
here https://github.com/webpack/webpack/pull/5225 which means removing the deprecation warning mentioned by the OP is going to take a major with a minimum peerDep of [email protected]
@erm0l0v Confirming I'm getting the same warning as well, please fix when possible. Here's the commit merged into extract-text-webpack-plugin that @d3viant0ne mentioned; extract-text-webpack-plugin#543.
Just remove webpack-md5-hash and use [hash]
instead of [chunkhash]
in your output.filename
Pull Request #14 was merged and should fix this deprecation warning. Waiting for it to be released.