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

@arco-plugins/vite-vue 插件导致控制台打印的行数与代码实际行数不一致 #47

Open
1 task
songpeng154 opened this issue Mar 17, 2023 · 7 comments

Comments

@songpeng154
Copy link

songpeng154 commented Mar 17, 2023

Basic Info

What is expected?

期望控制台打印的行数与实际代码的行数一致,希望能够解决这个问题,谢谢

Steps to reproduce

复现地址:https://stackblitz.com/edit/vitejs-vite-ixdnin?file=src/App.vue
按F12,打开控制台会看到 打印的”测试1“和”测试2“的行数一样,但是代码中“测试1”“测试2”的实际的行数是3和4。

去掉 @arco-plugins/vite-vue 插件后,控制台打印的行数与实际代码的行数一致。

Extra info

只有在 .vue 文件中有这个问题

@songpeng154 songpeng154 changed the title @arco-plugins/vite-vue 插件导致控制台行数与代码实际行数不一致 @arco-plugins/vite-vue 插件导致控制台打印的行数与代码实际行数不一致 Mar 21, 2023
@songpeng154
Copy link
Author

这个库现在还维护吗?

@jinghm318
Copy link
Member

jinghm318 commented Apr 6, 2023

这个库现在还维护吗?

@thikiiii 在维护,这个行数差异应该比较小,不太影响排查问题吧。最近比较忙,得等等。

@czq297297
Copy link

+1

@songpeng154
Copy link
Author

这个库现在还在维护吗?

@thikiiii在维保,这个行数差异应该比较小,不要太影响排查问题吧。最近比较忙,得等。
@jinghm318差异是比较大的,行数是完全不准的,有空在解决吧,维护就好

@Loongphy
Copy link
Contributor

移除 unplugin-vue-components

@songpeng154
Copy link
Author

移除unplugin-vue-components

有没有其他解决办法

@agileago
Copy link

agileago commented Sep 2, 2023

纯 tsx项目这个插件的 sourcemap貌似也有问题,代码不能调试了

https://github.com/agileago/oop-pro

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

5 participants