fix: helper insertion, loader runtime web targets. - #58
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
+ Coverage 89.43% 89.55% +0.12%
==========================================
Files 15 15
Lines 1467 1484 +17
Branches 394 399 +5
==========================================
+ Hits 1312 1329 +17
Misses 39 39
Partials 116 116 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR fixes helper insertion in the JSX loader by hoisting React helper functions to the beginning of transformed modules instead of appending them at the end. The change includes a new test to verify the hoisting behavior, version bumps from release candidates to stable releases, clean script improvements, and new documentation for React SSR usage.
Key Changes:
- Helper functions (
__jsxReact,__jsxReactMergeProps) are now prepended to the beginning of files (after any shebang) instead of being appended at the end - Version bumped from
1.6.3-rc.1to1.6.3with dependency updates - New SSR documentation guide added
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/loader/jsx.ts | Changes helper insertion from append() to prepend() with shebang handling |
| test/loader.test.ts | Adds test to verify helpers are hoisted before transformed templates |
| package.json | Version bump to 1.6.3, dependency updates, and clean script improvements |
| package-lock.json | Lockfile updates for version and dependency changes |
| docs/ssr-rendered-bundle.md | New documentation guide for React SSR with the JSX loader |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.