Skip to content

Commit 9bac88a

Browse files
authored
fix(vite): make devtools initialize before app created (#194)
1 parent 491671d commit 9bac88a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vite/src/vite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
153153
tags: [
154154
{
155155
tag: 'script',
156-
injectTo: 'head',
156+
injectTo: 'head-prepend',
157157
attrs: {
158158
type: 'module',
159159
src: `${config.base || '/'}@id/virtual:vue-devtools-path:overlay.js`,
@@ -162,7 +162,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
162162
// inject inspector script manually to ensure it's loaded after vue-devtools
163163
{
164164
tag: 'script',
165-
injectTo: 'head',
165+
injectTo: 'head-prepend',
166166
attrs: {
167167
type: 'module',
168168
src: `${config.base || '/'}@id/virtual:vue-inspector-path:load.js`,

0 commit comments

Comments
 (0)