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

Add ability to log stack traces for bundling errors #42

Closed
TikiTDO opened this issue Aug 21, 2017 · 2 comments
Closed

Add ability to log stack traces for bundling errors #42

TikiTDO opened this issue Aug 21, 2017 · 2 comments

Comments

@TikiTDO
Copy link

TikiTDO commented Aug 21, 2017

Do you want to request a feature or report a bug?

feature

What is the current behavior?

Currently when there is a bundling error the bundler strips off all stack information before printing an error.

The TerminalReporter _logBundlingError function states We do not want to log the whole stacktrace for bundling error, because these are operational errors, not programming errors, and the stacktrace is not actionable to end users.

What is the expected behavior?

There should be an option to enable the bundler to report the full stack information of any errors it encounters, something like a --verbose option would suffice.

There are multiple scenarios where having this information would make a developer's live a lot easier (such as the one I am experiencing trying to debug babel issues). Currently I have to resort to modifying module code, and running the bundler within an inspector just to extract information which should realistically be much easier to get at.

@cpojer
Copy link
Contributor

cpojer commented Aug 21, 2017

I made this change recently, it may not have made it to react-native yet: 521e25b

@cpojer cpojer closed this as completed Aug 21, 2017
@TikiTDO
Copy link
Author

TikiTDO commented Aug 21, 2017

Good to know, thanks.

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