Skip to content

Commit

Permalink
fix(vite): make devtools initialize before app created (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored Jan 24, 2024
1 parent 491671d commit 9bac88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
tags: [
{
tag: 'script',
injectTo: 'head',
injectTo: 'head-prepend',
attrs: {
type: 'module',
src: `${config.base || '/'}@id/virtual:vue-devtools-path:overlay.js`,
Expand All @@ -162,7 +162,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
// inject inspector script manually to ensure it's loaded after vue-devtools
{
tag: 'script',
injectTo: 'head',
injectTo: 'head-prepend',
attrs: {
type: 'module',
src: `${config.base || '/'}@id/virtual:vue-inspector-path:load.js`,
Expand Down

0 comments on commit 9bac88a

Please sign in to comment.