We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2f952 commit 9b633cdCopy full SHA for 9b633cd
packages/devtools/src/integrations/vue-devtools.ts
@@ -15,11 +15,11 @@ export function setup({ nuxt }: NuxtDevtoolsServerContext) {
15
return resolved
16
}
17
},
18
- transform(code, id) {
+ transform(code, id, options) {
19
const [filename] = id.split('?', 2)
20
const appendTo = /\/entry\.m?js$/
21
22
- if (appendTo.test(filename))
+ if (!options?.ssr && appendTo.test(filename))
23
code = `import 'virtual:vue-devtools-path:overlay.mjs';\n${code}`
24
25
return code
0 commit comments