Skip to content

refactor(oxc): relocate DevTools client into src/app to match rolldown/vite - #424

Merged
antfu merged 1 commit into
mainfrom
chore/oxc-client-restructure
Jul 16, 2026
Merged

refactor(oxc): relocate DevTools client into src/app to match rolldown/vite#424
antfu merged 1 commit into
mainfrom
chore/oxc-client-restructure

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Description

Relocates the oxc DevTools Nuxt SPA from packages/oxc/client/ to packages/oxc/src/app, so oxc shares the same package layout as the other analyzer UIs (rolldown, vite) and builds from a single package with nuxi … src + tsdown. This is a pure relocation — the client still runs on @nuxt/ui; the UnoCSS / @vitejs/devtools-ui swap follows in later PRs.

PR A of the oxc UI-stack migration documented in plans/018-oxc-ui-unocss-migration.md.

What changed:

  • git mv app/, modules/, public/, nuxt.config.ts, tsconfig.json into src/ (history preserved; all app→node relative imports survive as both trees sit at the same depth under packages/oxc).
  • Removed the nested client/{package.json,tsdown.config.ts,.oxlintrc.json,.oxfmtrc.json} (the oxc-configs were byte-identical to the package-root ones).
  • nuxt.config.ts: srcDir: 'app'; static output dist/clientdist (client now lands in dist/public).
  • dirs.ts: clientPublicDirdist/public.
  • package.json scripts adopt the rolldown/vite shape (build: nuxi build src && tsdown, dev, dev:prepare).
  • tsdown.config.ts: clean:false (so tsdown doesn't wipe the nuxi-built client) + tsconfig: ../../tsconfig.base.json; root tsconfig.json narrowed to node-only paths.
  • Adds plan 018 (full A/B/C migration plan + locked decisions) and a plans/README.md row.

Linked Issues

Additional context

Verified with pnpm turbo run build --filter=@vitejs/devtools-oxc (client prerendered to dist/public, node entries emitted by tsdown) and pnpm -C packages/oxc lint. Reviewers: the diff is dominated by history-preserving renames; the substantive changes are the 4 config files (package.json, nuxt.config.ts, tsconfig.json, tsdown.config.ts) + src/dirs.ts.

This PR was created with the help of an agent.

…n/vite

Move the oxc Nuxt SPA from packages/oxc/client/ to packages/oxc/src/app so
oxc shares the same layout as the other analyzer UIs and can be built with
`nuxi ... src` + tsdown from a single package, dropping the nested client
package.json. This is PR A of the oxc UI-stack migration (plan 018); it is a
pure relocation and still runs on @nuxt/ui — the UnoCSS/@vitejs/devtools-ui
swap follows in later PRs.

Static output now lands in dist/public (from dist/client/public) and the node
dts build is decoupled from the app-inclusive root tsconfig.

Adds plan 018 documenting the full migration (PRs A/B/C) and the locked
decisions behind it.
@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools@424

@vitejs/devtools-kit

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-kit@424

@vitejs/devtools-oxc

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-oxc@424

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-rolldown@424

@vitejs/devtools-vite

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vite@424

@vitejs/devtools-vitest

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vitest@424

commit: 06633d0

@antfu
antfu merged commit 0c7e30b into main Jul 16, 2026
9 of 10 checks passed
@antfu
antfu deleted the chore/oxc-client-restructure branch July 16, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants