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 deprecation warning DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET #50

Open
Semigradsky opened this issue Oct 15, 2021 · 0 comments
Open

Comments

@Semigradsky
Copy link

There is a Webpack deprecation warning DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET:

(node:15570) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.modules was changed from Array to Set (using Array method 'map' is deprecated)

It can be fixed by small change in utils.js:

- const modulePaths = stats.compilation.modules
+ const modulePaths = Array.from(stats.compilation.modules)

But I think it will require a major version update.

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

1 participant