build: migrate most nuxt packages to use `obuild` by danielroe · Pull Request #34049 · nuxt/nuxt

Walkthrough

This PR migrates many package build configs from unbuild to obuild/config, replacing prior declaration/entries/hooks/externals shapes with bundle/transform style entries (fields like type, input, dts and rolldown). It removes the Rollup timings instrumentation and its helper modules, adds rspack re-exports and a new rspack loader re-export, narrows several test mocks to use targeted spies, casts the schema config default export to InputObject, broadens RuntimeValue<T, B> to include T, and adds an explicit Promise<any> return type to the vite-node-entry default export.

Possibly related PRs

  • nuxt/nuxt PR 30648 — Modifies the Rollup timings instrumentation and build-config integration that are removed in this PR.
  • nuxt/nuxt PR 33462 — Adjusts the nitro-server package and its build configuration overlapping the nitro-server build.config.ts changes here.
  • nuxt/nuxt PR 30043 — Changes schema build configuration and externals handling that overlap the schema build.config.ts updates in this PR.
🚥 Pre-merge checks | ✅ 2 | ❌ 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 (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: migrating Nuxt packages from unbuild to obuild, which is the primary focus across multiple build configuration files.
Description check ✅ Passed The description is related to the changeset, referencing obuild and providing a link to the project, though it is very brief and lacks detail about the scope or rationale of the migration.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch build/rolldown

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.