Skip to content

feat(devtools-api): add no-op stub under node export condition#1114

Open
danielroe wants to merge 1 commit into
vuejs:mainfrom
danielroe:feat/node-export
Open

feat(devtools-api): add no-op stub under node export condition#1114
danielroe wants to merge 1 commit into
vuejs:mainfrom
danielroe:feat/node-export

Conversation

@danielroe

@danielroe danielroe commented Jul 21, 2026

Copy link
Copy Markdown
Member

noticed in nuxt that vue-router (which imports and calls setupDevToolsPlugin under a condition) was pulling in the entire devtools stack on the server, including devframe, etc.

one solution is simply to provide a node stub.

Note

I'm opening this PR as draft in order to test it out and see if this works to solve the tracing of all of these extra dependencies.

update testing on nuxt, this PR saved us ~213K on a production build e🤯

@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 95815df
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/6a5fa9d63aebfb00082da4c9

@pkg-pr-new

pkg-pr-new Bot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/devtools-applet

npm i https://pkg.pr.new/@vue/devtools-applet@1114

@vue/devtools-core

npm i https://pkg.pr.new/@vue/devtools-core@1114

@vue/devtools

npm i https://pkg.pr.new/@vue/devtools@1114

@vue/devtools-api

npm i https://pkg.pr.new/@vue/devtools-api@1114

@vue/devtools-kit

npm i https://pkg.pr.new/@vue/devtools-kit@1114

@vue/devtools-electron

npm i https://pkg.pr.new/@vue/devtools-electron@1114

@vue/devtools-shared

npm i https://pkg.pr.new/@vue/devtools-shared@1114

@vue/devtools-ui

npm i https://pkg.pr.new/@vue/devtools-ui@1114

vite-plugin-vue-devtools

npm i https://pkg.pr.new/vite-plugin-vue-devtools@1114

commit: 95815df

@danielroe
danielroe marked this pull request as ready for review July 21, 2026 17:46
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.

1 participant