vbenjs / vite-plugin-vue-setup-extend

Extending the vue script setup syntactic sugar
MIT License
148 stars 18 forks source link

调试断点位置错乱 #11

Open lm18238818077 opened 2 years ago

chenxch commented 2 years ago

try vite-plugin-vue-setup-extend-plus

aomeivs commented 2 years ago

先说解决方案直接改包中的代码:vite-plugin-vue-setup-extend/dist/index.cjs `

return { //map: str().generateMap(), map: str().generateDecodedMap(), code: str().toString() };

` 这个问题是使用magic-string生成sourceMap导致的; 生成sourceMap有两种方式,一种是generateMap,编码字符串插入源码式;一种是不编码generateDecodedMap。 希望作者更新下,对调试影响还是很大的;

mayuxian commented 2 years ago

作者快来解决下啊

Corgis commented 2 years ago

是 装了这个插件后 调试真的不友好

adoin commented 1 year ago

//map: str().generateMap(), map: str().generateDecodedMap(),

可以提交pr给懒作者合并不。。。。

chenguzhen87 commented 1 year ago

没合发包吗

coding-bug-git commented 1 year ago

try vite-plugin-vue-setup-extend-plus

it dont work, with error: vueSetupExtend is not a function

chenxch commented 1 year ago

try vite-plugin-vue-setup-extend-plus

it dont work, with error: vueSetupExtend is not a function

https://github.com/chenxch/vite-plugin-vue-setup-extend-plus/issues/5#issuecomment-1286539730

coding-bug-git commented 1 year ago

try vite-plugin-vue-setup-extend-plus

it dont work, with error: vueSetupExtend is not a function

chenxch/vite-plugin-vue-setup-extend-plus#5 (comment)

OK, THX

Liujialei commented 1 year ago

作者别睡了喂,起床看bug了 01E2DA98

maxrks commented 9 months ago

https://github.com/vbenjs/vite-plugin-vue-setup-extend/issues/11#issuecomment-1328654107

vite-plugin-vue-setup-extend-plus

package中type设置为“commonjs”。

"type": "commonjs",