-
Notifications
You must be signed in to change notification settings - Fork 916
解析(originalPositionFor) vue-loader 输出的sourceMap信息, 结果为null #968
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
Comments
应该是 vue-loader 内部的用的 babel-loader 的问题,我发现 它生成的sourceMap 不对, vue-loader 生成的sourceMap 是正确的 |
这是一个demo |
tracked in #1163 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
13.0.2
Reproduction link
https://github.com/xiachaoxulu/issues/blob/master/vueloader
Steps to reproduce
1.webpack 中使用vue-loader
2.入口是一个js文件,其中引入了vue组件
3.打包,devtool 为nosources-source-map
4.生成了 map,和 js 文件
5.使用官网的sourceMap 包,来解析这个 map文件。
6.输入: 打包之后的js 的行列信息, 来获取 其源代码的行列信息
7.得到的结果是null
What is expected?
得到正确源代码 行列
What is actually happening?
得到的结果是null
估计是vue-loader生成的map文件有问题
The text was updated successfully, but these errors were encountered: