webfansplz / vite-plugin-vue-inspector

jump to editor source code while click the element of browser automatically.
MIT License
697 stars 74 forks source link

fix: normalize path in `data-v-inspector` attribute #60

Closed marvinschuerz closed 1 year ago

marvinschuerz commented 1 year ago

Fixes the error SyntaxError: Invalid Unicode escape sequence I had, caused by this line:

"data-v-inspector": "src\modules\common\composables\asyncSearch\useAsyncSearch.tsx:69:12"

Will now be generated as

"data-v-inspector": "src/modules/common/composables/asyncSearch/useAsyncSearch.tsx:69:12"