Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

DeprecationWarning: Chunk.modules is deprecated. #1

Closed
c0defre4k opened this issue Nov 7, 2017 · 1 comment
Closed

DeprecationWarning: Chunk.modules is deprecated. #1

c0defre4k opened this issue Nov 7, 2017 · 1 comment

Comments

@c0defre4k
Copy link

In Webpack >= 3 this warning is thrown:

DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

In this case search.js's files method should use the Chunk.mapModules instead of Object.keys to get the same result.

@Ffloriel
Copy link
Member

Thank you very much @c0defre4k for the information, I updated the code to replace the deprecated property.
The warning should not appear anymore in v0.10.1.

@Ffloriel Ffloriel mentioned this issue Jan 27, 2018
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants