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 05d618a commit af23df7Copy full SHA for af23df7
packages/core/src/node/plugins/injection.ts
@@ -7,7 +7,9 @@ export function DevToolsInjection(): Plugin {
7
return {
8
name: 'vite:devtools:injection',
9
enforce: 'post',
10
- apply: 'serve',
+ apply(_config, env) {
11
+ return env.command === 'serve' && !env.isSsrBuild
12
+ },
13
transformIndexHtml() {
14
const fileUrl = process.env.VITE_DEVTOOLS_LOCAL_DEV
15
? normalize(join(dirDist, '..', 'src/client/inject/index.ts'))
0 commit comments