Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/devtools/src/integrations/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export function setup({ nuxt, options }: NuxtDevtoolsServerContext): void {
uploadExtensions: options.assets?.uploadExtensions || defaultAllowedExtensions,
})
onDevtoolsReady((kit) => {
return kit.install(definition, {
// Vite DevTools' built-in devframes install `service-open` and pass the
// services barrier before this runs, so re-declaring it can't merge our
// `roots` and only warns (DF0066). The public dir sits inside the
// workspace root the service already allows.
const services = definition.services?.filter(service => !kit.services.has(service.package))
return kit.install({ ...definition, services }, {
dock: {
groupId: NUXT_DEVTOOLS_GROUP_ID,
category: 'analyze',
Expand Down
1 change: 1 addition & 0 deletions packages/devtools/test/devtools-origin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe('vite DevTools origin', () => {
viteConfig: { command: 'serve', build: { ssr: false } },
host: { resolveOrigin: () => 'http://localhost:5173' },
install: vi.fn(),
services: { has: () => false },
docks: { register: vi.fn() },
rpc: {
register: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion skills-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"source": "vuejs-ai/skills",
"sourceType": "github",
"skillPath": "skills/vue-best-practices/SKILL.md",
"computedHash": "70a50d6ee12edf24e0be9a79f59ea55a581961e8a38de2a20b96c7ae766ce3ef",
"computedHash": "2f4da0a95f19b225e784981413f727ff03bfdec7818a1e5bb0a477aab633095e",
"via": "@antfu/skills"
},
"vue-debug-guides": {
Expand Down
Loading