Skip to content

fix: support multiple appendTo entries - #1117

Open
pupuking723 wants to merge 1 commit into
vuejs:mainfrom
pupuking723:fix/appendto-multiple-entries
Open

fix: support multiple appendTo entries#1117
pupuking723 wants to merge 1 commit into
vuejs:mainfrom
pupuking723:fix/appendto-multiple-entries

Conversation

@pupuking723

Copy link
Copy Markdown

Fixes #746.

This lets appendTo accept multiple entry matchers:

vueDevTools({
  appendTo: [
    'resources/js/app.js',
    'resources/js/admin.js',
  ],
})

When appendTo is used, the devtools Vite plugin now injects both the devtools overlay and the inspector loader into matching entry modules. The inspector plugin still receives appendTo: 'manually' for this path, so we don't pass an array to vite-plugin-vue-inspector.

Verification:

  • corepack pnpm exec vitest run packages/vite/__tests__/append-to.test.ts
  • corepack pnpm exec eslint packages/vite/src/vite.ts packages/vite/__tests__/append-to.test.ts docs/guide/vite-plugin.md
  • corepack pnpm run type-check
  • corepack pnpm run build:vite
  • git diff --check

@netlify

netlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deploy Preview for vue-devtools-docs ready!

Name Link
🔨 Latest commit cd8fe97
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/6a68230d5930df0008927c1c
😎 Deploy Preview https://deploy-preview-1117--vue-devtools-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

[Feature]: Allow appendTo as an array or glob pattern

1 participant