Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 6, 2025
1 parent c67f360 commit a1743f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/devtools/src/integrations/vue-devtools.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { NuxtDevtoolsServerContext } from '../types'
import { addPluginTemplate } from '@nuxt/kit'
import { addPluginTemplate, resolvePath } from '@nuxt/kit'
import { join } from 'pathe'
import { runtimeDir } from '../dirs'

export function setup({ nuxt }: NuxtDevtoolsServerContext) {
export async function setup({ nuxt }: NuxtDevtoolsServerContext) {
if (!nuxt.options.dev || nuxt.options.test)
return

addPluginTemplate({
name: 'vue-devtools-client',
mode: 'client',
src: join(runtimeDir, 'vue-devtools-client.js'),
src: await resolvePath(join(runtimeDir, 'vue-devtools-client')),
})
}

0 comments on commit a1743f3

Please sign in to comment.