Skip to content

Commit aed6fbe

Browse files
committedApr 23, 2024·
fix(vite): ensure inject overlay before app mounted
1 parent e978458 commit aed6fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/vite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
155155
&& (
156156
(typeof appendTo === 'string' && filename.endsWith(appendTo))
157157
|| (appendTo instanceof RegExp && appendTo.test(filename))))
158-
code = `${code}\nimport 'virtual:vue-devtools-path:overlay.js'`
158+
code = `import 'virtual:vue-devtools-path:overlay.js';\n${code}`
159159

160160
return code
161161
},

0 commit comments

Comments
 (0)
Please sign in to comment.