webpack-md5-hash icon indicating copy to clipboard operation
webpack-md5-hash copied to clipboard

Webpack 3 deprecation warning

Open sppatel opened this issue 7 years ago • 5 comments

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.

sppatel avatar Jul 15 '17 16:07 sppatel

Yes. I am getting the same warning.

Igor-Vuk avatar Jul 15 '17 20:07 Igor-Vuk

@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]

joshwiens avatar Jul 16 '17 02:07 joshwiens

@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.

wilbert-abreu avatar Jul 19 '17 15:07 wilbert-abreu

Just remove webpack-md5-hash and use [hash] instead of [chunkhash] in your output.filename

zoxon avatar Nov 21 '17 08:11 zoxon

Pull Request #14 was merged and should fix this deprecation warning. Waiting for it to be released.

newyork-anthonyng avatar Nov 28 '17 16:11 newyork-anthonyng