Skip to content

feat(core): vite integration plugin & environments config #300

Open
webfansplz wants to merge 2 commits intomainfrom
feat/vite-integrate
Open

feat(core): vite integration plugin & environments config #300
webfansplz wants to merge 2 commits intomainfrom
feat/vite-integrate

Conversation

@webfansplz
Copy link
Copy Markdown
Member

@webfansplz webfansplz commented Apr 23, 2026

Be related to #296 (comment) and vitejs/vite#22312

Copilot AI review requested due to automatic review settings April 23, 2026 13:14
@webfansplz webfansplz marked this pull request as draft April 23, 2026 13:15
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 23, 2026

Open in StackBlitz

@vitejs/devtools

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

@vitejs/devtools-kit

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

@vitejs/devtools-rolldown

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

@vitejs/devtools-rpc

npm i https://pkg.pr.new/@vitejs/devtools-rpc@300

@vitejs/devtools-self-inspect

npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@300

commit: 0cacb1f

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new public “integration” entrypoint to @vitejs/devtools intended to integrate DevTools into Vite’s build flow (and enable Rolldown devtools output), alongside a small refactor of DevTools config normalization.

Changes:

  • Add ./integration package export + new src/integration.ts entry for consumers.
  • Introduce DevToolsIntegration() Vite plugin (build-only) to enable build.rolldownOptions.devtools and start DevTools.
  • Add resolveDevToolsConfig() (and deprecate normalizeDevToolsConfig()) to normalize/merge DevTools config inputs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/core/tsdown.config.ts Adds build entry for the new integration entrypoint.
packages/core/src/node/plugins/integration.ts New Vite plugin that enables Rolldown devtools options and starts DevTools during build.
packages/core/src/node/config.ts Adds resolveDevToolsConfig() + host normalization helper; deprecates old normalizer.
packages/core/src/integration.ts New public re-export entrypoint for the integration plugin.
packages/core/package.json Exposes ./integration in the package exports map.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/src/node/config.ts Outdated
@webfansplz webfansplz force-pushed the feat/vite-integrate branch from 9795ddd to f66b9c6 Compare April 23, 2026 15:06
@webfansplz webfansplz force-pushed the feat/vite-integrate branch 5 times, most recently from 21ee231 to 9115b5a Compare April 24, 2026 05:00
@webfansplz webfansplz force-pushed the feat/vite-integrate branch from 9115b5a to 0cacb1f Compare April 24, 2026 06:09
@webfansplz webfansplz changed the title feat: vite integration plugin feat(core): vite integration plugin & environments config Apr 24, 2026
@webfansplz webfansplz marked this pull request as ready for review April 24, 2026 06:25
@webfansplz webfansplz requested a review from antfu April 24, 2026 06:26
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