-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Critical dependency: the request of a dependency is an expression #2115
Comments
That's by design. |
I see that you import all the libs at that point. |
instead of the map function, you could just require each js and the warning will be gone. |
If you need to parse & embed |
I need to see this warnig go away. that is all.
|
@rolele thanks for the clarification, though I still don't see the point. We can't keep making cosmetic changes whenever a third party tool decides to emit a new warning. |
I agree @alexlamsl. |
I also ran into this problem. As highlighted above, the fix is simple. Please see #3432 |
this code:
https://github.com/mishoo/UglifyJS2/blob/master/tools/node.js#L18
will trigger a warning in webpack:
The point here is that from that point webpack is unable to optimize the import and you endup with the whole js in your final bundle.
The text was updated successfully, but these errors were encountered: