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

Appearance settings

feat(rspack): upgrade to rspack v2 - #34929

#34929
Merged
danielroe merged 1 commit into
mainnuxt/nuxt:mainfrom
feat/rspack-v2nuxt/nuxt:feat/rspack-v2Copy head branch name to clipboard
Apr 28, 2026
Merged

feat(rspack): upgrade to rspack v2#34929
danielroe merged 1 commit into
mainnuxt/nuxt:mainfrom
feat/rspack-v2nuxt/nuxt:feat/rspack-v2Copy head branch name to clipboard

Conversation

@danielroe

@danielroe danielroe commented Apr 27, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

this updates us to rspack v2 which is faster and lighter 🦀

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added 5.x ✨ enhancement New feature or improvement to existing functionality labels Apr 27, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedfile-loader@​6.2.09910010075100
Updated@​rspack/​core@​1.7.11 ⏵ 2.0.0100 +510081 +197100

View full report

@coderabbitai

coderabbitai Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e6b22bd3-dd27-47c6-92e9-ca53c1387209

📥 Commits

Reviewing files that changed from the base of the PR and between ea393f9 and 71861a3.

⛔ Files ignored due to path filters (5)
  • package.json is excluded by !package.json, !**/package.json
  • packages/kit/package.json is excluded by !**/package.json
  • packages/rspack/package.json is excluded by !**/package.json
  • packages/webpack/package.json is excluded by !**/package.json
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (4)
  • packages/webpack/src/plugins/vue/client.ts
  • packages/webpack/src/plugins/vue/server.ts
  • packages/webpack/src/presets/base.ts
  • packages/webpack/src/presets/node.ts

Walkthrough

The changes modify webpack and rspack configuration handling across multiple files. The Vue client and server plugins are updated to explicitly specify which webpack stats to include in the JSON output, ensuring modules, assets, chunks, and entrypoints are available for processing. The base preset introduces a builder-specific parser configuration that sets exportsPresence to 'auto' only when using the rspack builder. The node preset modifies the outputModule experiment to be conditional on the builder type, enabling it only when not using rspack.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarises the main change: upgrading to rspack v2, which aligns with all the technical modifications across multiple configuration files.
Description check ✅ Passed The description relates to the changeset by explaining the purpose of the updates (upgrading to rspack v2) and noting its benefits, despite lacking a linked issue number.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rspack-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new

pkg-pr-new Bot commented Apr 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

npm i https://pkg.pr.new/@nuxt/kit@34929

@nuxt/nitro-server

npm i https://pkg.pr.new/@nuxt/nitro-server@34929

nuxt

npm i https://pkg.pr.new/nuxt@34929

@nuxt/rspack-builder

npm i https://pkg.pr.new/@nuxt/rspack-builder@34929

@nuxt/schema

npm i https://pkg.pr.new/@nuxt/schema@34929

@nuxt/vite-builder

npm i https://pkg.pr.new/@nuxt/vite-builder@34929

@nuxt/webpack-builder

npm i https://pkg.pr.new/@nuxt/webpack-builder@34929

commit: 71861a3

@codspeed-hq

codspeed-hq Bot commented Apr 27, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 13.92%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 19 untouched benchmarks
⏩ 3 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
loadNuxt in the basic test fixture 420.8 ms 488.9 ms -13.92%

Comparing feat/rspack-v2 (71861a3) with main (ea393f9)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@danielroe
danielroe enabled auto-merge April 28, 2026 06:41
@danielroe
danielroe disabled auto-merge April 28, 2026 06:41
@danielroe
danielroe merged commit ab09977 into main Apr 28, 2026
34 checks passed
@danielroe
danielroe deleted the feat/rspack-v2 branch April 28, 2026 06:41
@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
5 tasks
danielroe added a commit that referenced this pull request May 21, 2026
@github-actions github-actions Bot mentioned this pull request May 21, 2026
davidstackio pushed a commit to davidstackio/nuxt that referenced this pull request May 30, 2026
danielroe added a commit that referenced this pull request Jun 2, 2026
danielroe added a commit that referenced this pull request Jun 2, 2026
danielroe added a commit that referenced this pull request Jun 8, 2026
benlavalley pushed a commit to benlavalley/nuxt that referenced this pull request Jun 22, 2026
@github-actions github-actions Bot mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x ✨ enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.