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

[ES 6] Using uglify-es prints warning during webpack build #2026

Closed
tobias-kuendig opened this issue May 30, 2017 · 2 comments
Closed

[ES 6] Using uglify-es prints warning during webpack build #2026

tobias-kuendig opened this issue May 30, 2017 · 2 comments

Comments

@tobias-kuendig
Copy link

I just switched from uglify-js#harmony to uglify-es and now I am receiving the following warning during my webpack build. Everything works as expected though...

WARNING in ./~/uglify-es/tools/node.js
18:11-32 Critical dependency: the request of a dependency is an expression
webpack: Compiled with warnings.
@alexlamsl
Copy link
Collaborator

The warning message isn't produced by uglify-es - please consult with the project in your toolchain which produces it.

@tobias-kuendig
Copy link
Author

tobias-kuendig commented May 30, 2017

It looks like webpack is having problems with dynamic imports.

Changing return require.resolve(file); in node.js to return require.resolve('' + file); removes the warnings.

see webpack/webpack.js.org#1099

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

2 participants