-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
better description when no exports found #4877
Comments
There could be CJS or AMD exports, but we can't detect them as CJS and AMD are dynamic and exports are only known at runtime. |
@sokra If the file has no exports (as it often is with the main file) the message it the same |
that's great. Do you want to send a PR? -> |
Sure, I think webpack is awesome and it's a pleasure to make it even better. |
** a feature **
What is the current behavior?
when
output.pathinfo
is set totrue
and no exports are found in a module, the module is labeled with:/* unknown exports provided */
What is the expected behavior?
I find this message a bit misleading since it suggests that there are some exports but they are unknown for some reason. But as far as I know this message appears when webpack found no exports because there are none or it couldn't find any.
If this is a feature request, what is motivation or use case for changing the behavior?
I think that message like:
/* no exports found */
would be more appropriate.Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack@2.5.1
The text was updated successfully, but these errors were encountered: