Skip to content

Commit

Permalink
fix(vite): ensure inject overlay before app mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Apr 23, 2024
1 parent e978458 commit aed6fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/vite.ts
Expand Up @@ -155,7 +155,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
&& (
(typeof appendTo === 'string' && filename.endsWith(appendTo))
|| (appendTo instanceof RegExp && appendTo.test(filename))))
code = `${code}\nimport 'virtual:vue-devtools-path:overlay.js'`
code = `import 'virtual:vue-devtools-path:overlay.js';\n${code}`

return code
},
Expand Down

0 comments on commit aed6fbe

Please sign in to comment.