Skip to content

Commit a1743f3

Browse files
committed
chore: update
1 parent c67f360 commit a1743f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import type { NuxtDevtoolsServerContext } from '../types'
2-
import { addPluginTemplate } from '@nuxt/kit'
2+
import { addPluginTemplate, resolvePath } from '@nuxt/kit'
33
import { join } from 'pathe'
44
import { runtimeDir } from '../dirs'
55

6-
export function setup({ nuxt }: NuxtDevtoolsServerContext) {
6+
export async function setup({ nuxt }: NuxtDevtoolsServerContext) {
77
if (!nuxt.options.dev || nuxt.options.test)
88
return
99

1010
addPluginTemplate({
1111
name: 'vue-devtools-client',
1212
mode: 'client',
13-
src: join(runtimeDir, 'vue-devtools-client.js'),
13+
src: await resolvePath(join(runtimeDir, 'vue-devtools-client')),
1414
})
1515
}

0 commit comments

Comments
 (0)