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 ff96876 commit 0711ea2Copy full SHA for 0711ea2
packages/vite/src/vite.ts
@@ -139,16 +139,11 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
139
if (id === 'virtual:vue-devtools-options')
140
return `export default ${JSON.stringify({ base: config.base, componentInspector: pluginOptions.componentInspector })}`
141
},
142
- transform(code, id) {
143
- const { root } = config
144
-
145
- const projectPath = `${root}`
146
147
- if (!id.startsWith(projectPath))
+ transform(code, id, options) {
+ if (options?.ssr)
148
return
149
150
const { appendTo } = pluginOptions
151
152
const [filename] = id.split('?', 2)
153
154
if (appendTo
0 commit comments