GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(v10/cloudflare): keep default exports intact when auto-instrumenting by sentry-junior[bot] · Pull Request #25732 · getsentry/sentry-javascript Conversation
|
size-limit report 📦
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 498856a. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
A comment between `export default` and the expression that contained the word `default` moved the overwrite past the keyword and produced invalid syntax.
…cking regex CodeQL flagged the comment-skipping regex as prone to exponential backtracking. A linear scan over whitespace and comments finds the same offset.
… the Vite transform (#25741) The transform found the end of the `export default` keywords with `lastIndexOf('default')` on the text before the expression. A comment in that span that contains the word `default`, such as `export default /* default handler */ { ... }`, moved the overwrite past the keyword and produced invalid syntax, so the Worker failed to start. The keyword is now found by matching `export`, then any whitespace or comments, then `default`, starting at the statement. Acorn only gives an `ExportDefaultDeclaration` when that sequence is there, so the match always succeeds. Cursor Bugbot found this on the v10 backport in #25732, which already has the same fix. Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Isaac Schlueter <[email protected]>
There was an error while loading. Please reload this page.
…transform (#25733) Backport of: #25663 Stacked on #25732 (backport of #25372), which is stacked on #25407. Once those merge, this retargets to `v10`. The cherry-pick applied cleanly and is identical to the original. <!-- junior-request-attribution:start --> via **Isaac Schlueter**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0CBUGS556X%3A1792966013.340469 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AD0CBUGS556X%3A1792966013.340469) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0CBUGS556X%3A1792966013.340469/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Isaac Schlueter <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.