vite-plugin-vue-tracer
Advanced tools
Comparing version
{ | ||
"name": "vite-plugin-vue-tracer", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Tracer for the source code of elements and vdoms in Vue SFC", | ||
@@ -24,4 +24,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"./client/overlay": "./dist/client/overlay.mjs", | ||
"./client/listeners": "./dist/client/listeners.mjs", | ||
"./client/vue-inspector-compat": "./dist/client/vue-inspector-compat.mjs" | ||
"./client/listeners": "./dist/client/listeners.mjs" | ||
}, | ||
@@ -62,3 +61,3 @@ "main": "./dist/index.mjs", | ||
"vue-tsc": "^2.2.8", | ||
"vite-plugin-vue-tracer": "0.0.0" | ||
"vite-plugin-vue-tracer": "0.0.1" | ||
}, | ||
@@ -65,0 +64,0 @@ "simple-git-hooks": { |
@@ -37,3 +37,6 @@ # vite-plugin-vue-tracer | ||
if (import.meta.hot) { | ||
import('vite-plugin-vue-tracer/client/overlay').then(({ events, isEnabled }) => { | ||
import('vite-plugin-vue-tracer/client/overlay').then(({ events, state }) => { | ||
// Enables the overlay | ||
state.isEnabled = true | ||
events.on('hover', (info) => { | ||
@@ -46,2 +49,3 @@ // ... | ||
openInEditor(info.fullpath) // 'src/app.vue:10:1' | ||
state.isEnabled = false | ||
}) | ||
@@ -58,2 +62,3 @@ }) | ||
.then(({ | ||
hasData, | ||
findTraceFromElement, | ||
@@ -60,0 +65,0 @@ findraceFromVNode, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
98
5.38%25824
-5.42%11
-15.38%468
-6.02%