-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update tracekit.js to include webpack stacktrace #903
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this is solving. Do you have an example?
We also don't accept parsing changes without tests.
vendor/TraceKit/tracekit.js
Outdated
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i, | ||
winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, | ||
var chrome = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, | ||
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpac|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpac
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed it, its should be webpack
hi @benvinegar i took this change from here: https://github.com/csnover/TraceKit/blob/master/tracekit.js it solve situation when you work with webpack with |
Right – I see the PR here. Alas, I still need a test, or at least a sample stack trace that the environment you're describing generates. |
@benvinegar sample: |
here is complete stack trace sample:
|
You're welcome to read through the history to see what's changed to the file in order to understand. The TL;DR is that our version is wildly forked, and contains less than half of TraceKit's original code. We literally cannot use the upstream repository at this point.
Thanks. |
Moved to #908 where I've added tests (but retains your original commit) |
No description provided.