Repository navigation
Conversation
size-limit report 📦Compared: f58aeb8 (PR test merge using develop at 71f41ed) Against: 71f41ed (develop) · base run #68183 ✅ Baseline matches: this diff contains only this PR's changes.
|
Optional E2E testsSome optional checks were not successful. They do not block the merge. 7 not successful, 58 successful. See the run.
Successful checks
|
800fc8f to
59a7cd3
Compare
59a7cd3 to
2a1a14a
Compare
2a1a14a to
72f4c3a
Compare
f5223e3 to
f6fc0a9
Compare
f6fc0a9 to
8cc5991
Compare
8cc5991 to
61534a3
Compare
61534a3 to
c3dab93
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c3dab93. Configure here.
| { parse }, | ||
| ).transform(code, normalizedId); | ||
|
|
||
| return output ?? undefined; |
There was a problem hiding this comment.
Parse fallback can emit TypeScript
Medium Severity
When this.parse fails, the plugin now parses the entry with oxc and returns the rewriter output. oxc can read TypeScript, but the rewriter only splices wrappers and does not strip types. This plugin runs with enforce: 'post', so that output can become the final module source. Previously the hook returned undefined and left the file to the rest of the pipeline.
Reviewed by Cursor Bugbot for commit c3dab93. Configure here.
There was a problem hiding this comment.
The rewriter only adds plain JavaScript, so if TypeScript reached this point the output would contain the same TypeScript that the input already had.
c3dab93 to
869404b
Compare
869404b to
892f682
Compare
The export handling moves into the shared rewriter core, so SvelteKit and TanStack Start get the same export forms. Sibling modules are now parsed with oxc instead of a regex scanner, which reads TypeScript without guessing at its syntax. The entry falls back to oxc when `this.parse` cannot read it, where it was skipped before.
892f682 to
2c10a70
Compare


Why: The export handling moves into the shared rewriter core, so SvelteKit and TanStack Start get the same export forms in the next PRs. The emitted code is the same as before for every existing test. Sibling modules are now parsed with oxc instead of a regex scanner, so TypeScript syntax is read, not guessed.
Two small behaviour changes: when
this.parsecannot read the entry, it now falls back to oxc instead of skipping the entry, and when nothing changes the plugin returnsundefinedinstead of the unchanged code.How to review:
transform.tsis mostly deletions of code that moved to the core. In the tests only theparseJShelper changed.Ref #25776