Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调试断点位置错乱 #11

Open
lm18238818077 opened this issue Apr 26, 2022 · 11 comments
Open

调试断点位置错乱 #11

lm18238818077 opened this issue Apr 26, 2022 · 11 comments

Comments

@lm18238818077
Copy link

No description provided.

@chenxch
Copy link

chenxch commented Apr 26, 2022

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

@aomeivs
Copy link

aomeivs commented May 19, 2022

先说解决方案直接改包中的代码: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
Copy link

作者快来解决下啊

@Corgis
Copy link

Corgis commented Jun 22, 2022

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

@adoin
Copy link

adoin commented Oct 19, 2022

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

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

@chenguzhen87
Copy link

没合发包吗

@coding-bug-git
Copy link

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

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

@chenxch
Copy link

chenxch commented Nov 28, 2022

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)

@coding-bug-git
Copy link

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
Copy link

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

@maxrks
Copy link

maxrks commented Dec 10, 2023

#11 (comment)

vite-plugin-vue-setup-extend-plus

package中type设置为“commonjs”。

"type": "commonjs",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants