-
-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the message in BabelLoaderError's stack trace (#499)
* Add the message in BabelLoaderError's stack trace When Error.captureStackTrace is called at the top of BabelLoaderError, the error name and message are not added to the stack property. When webpack wraps this in a ModuleBuildError, the message is lost. Capturing at the end of the function ensures the message is part of the stack trace, so it is eventually added to webpack's output. * Add test for BabelLoaderError's stack property
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters