Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 3 deprecation warning #11

Open
sppatel opened this issue Jul 15, 2017 · 5 comments
Open

Webpack 3 deprecation warning #11

sppatel opened this issue Jul 15, 2017 · 5 comments

Comments

@sppatel
Copy link

sppatel commented Jul 15, 2017

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.

@Igor-Vuk
Copy link

Yes. I am getting the same warning.

@joshwiens
Copy link

@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 webpack@3.0.0 release.

A sort function was added as a part of 3.1.0 here webpack/webpack#5225 which means removing the deprecation warning mentioned by the OP is going to take a major with a minimum peerDep of webpack@3.1.0

@wilbert-abreu
Copy link

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

@zoxon
Copy link

zoxon commented Nov 21, 2017

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

@newyork-anthonyng
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants