Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: avoid sourcemap for refresh wrapper injection#835

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

sapphi-red
Copy link
Member

Description

By changing$RefreshReg$ /$RefreshSig$ to a local variable and leveraging the function hoisting, we can avoid the sourcemap generation for the refresh wrapper completely. Also this would reduce the code size, which would also improve the perf a bit.

@sapphi-redsapphi-red marked this pull request as ready for reviewSeptember 11, 2025 09:07
Copy link
Member

@ArnaudBarreArnaudBarre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice

@sapphi-redsapphi-red merged commit3a8b4a9 intomainSep 11, 2025
11 checks passed
@sapphi-redsapphi-red deleted the perf/avoid-sourcemap-for-refresh-wrapper-injection branchSeptember 11, 2025 12:15
renovatebot added a commit to andrei-picus-tink/auto-renovate that referenced this pull requestSep 17, 2025
| datasource | package              | from  | to    || ---------- | -------------------- | ----- | ----- || npm        | @vitejs/plugin-react | 5.0.2 | 5.0.3 |## [v5.0.3](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#503-2025-09-17)##### HMR did not work for components imported with queries with rolldown-vite ([#872](vitejs/vite-plugin-react#872))##### Perf: simplify refresh wrapper generation ([#835](vitejs/vite-plugin-react#835))
renovatebot added a commit to andrei-picus-tink/auto-renovate that referenced this pull requestSep 18, 2025
| datasource | package              | from  | to    || ---------- | -------------------- | ----- | ----- || npm        | @vitejs/plugin-react | 5.0.2 | 5.0.3 |## [v5.0.3](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#503-2025-09-17)##### HMR did not work for components imported with queries with rolldown-vite ([#872](vitejs/vite-plugin-react#872))##### Perf: simplify refresh wrapper generation ([#835](vitejs/vite-plugin-react#835))
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ArnaudBarreArnaudBarreArnaudBarre approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sapphi-red@ArnaudBarre

[8]ページ先頭

©2009-2025 Movatter.jp