We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c67f360 commit a1743f3Copy full SHA for a1743f3
packages/devtools/src/integrations/vue-devtools.ts
@@ -1,15 +1,15 @@
1
import type { NuxtDevtoolsServerContext } from '../types'
2
-import { addPluginTemplate } from '@nuxt/kit'
+import { addPluginTemplate, resolvePath } from '@nuxt/kit'
3
import { join } from 'pathe'
4
import { runtimeDir } from '../dirs'
5
6
-export function setup({ nuxt }: NuxtDevtoolsServerContext) {
+export async function setup({ nuxt }: NuxtDevtoolsServerContext) {
7
if (!nuxt.options.dev || nuxt.options.test)
8
return
9
10
addPluginTemplate({
11
name: 'vue-devtools-client',
12
mode: 'client',
13
- src: join(runtimeDir, 'vue-devtools-client.js'),
+ src: await resolvePath(join(runtimeDir, 'vue-devtools-client')),
14
})
15
}
0 commit comments