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

[Roadhog 2] devtool选项不能正确生成source map #554

Closed
ghostoy opened this issue Jan 5, 2018 · 26 comments · Fixed by #632
Closed

[Roadhog 2] devtool选项不能正确生成source map #554

ghostoy opened this issue Jan 5, 2018 · 26 comments · Fixed by #632

Comments

@ghostoy
Copy link

ghostoy commented Jan 5, 2018

Environment(required) | 环境(必填)

  • roadhog version(roadhog版本)2.0.3
  • Nodejs and Npm version(Nodejs 和 Npm 版本)Nodejs: 9.3.0 Npm: 5.5.1
  • Operating environment (e.g. OS name) and its version(操作系统版本): Windows 10 Pro

What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)

  1. 使用React的JSX语法实现一个简单页面,或者使用import { localVar} from 'some-module'语法
  2. .webpackrc.jsdevtool设置成eval-source-map
  3. 运行roadhog dev
  4. 浏览器打开页面的开发者工具,查看源代码

What do you expected?(预期的正常效果)

根据webpack的文档,eval-source-map的文档,源代码应该正确显示原始JSX语法或import语法

What happen?(发生了何种非正常现象)

显示的源代码里的JSX语法和import语法都被转义过,在roadhog v1的是没有这个问题的。

Re-producible online demo (可复现的在线demo)

@ssehacker
Copy link

+1 , 请尽快解决,谢谢

@sorrycc sorrycc added the bug label Jan 7, 2018
@fantaishao
Copy link

+1 , 也碰到这个bug了

@remotesc2
Copy link

关注中~
现在调试,很痛苦

@lyingd
Copy link

lyingd commented Jan 12, 2018

关注,试了各种source map,都不能正确生成

@CarlLucasYu
Copy link

这个问题在2.2.0版本任然未得带解决

@TimYi
Copy link
Contributor

TimYi commented Jan 23, 2018

我也遇到了这个问题,看来是个疑难杂证,source map已经生成了,但是在浏览器中没有效果。

@csshere
Copy link

csshere commented Jan 25, 2018

同问,es5调试太痛苦了

@yiqingj
Copy link

yiqingj commented Jan 25, 2018

关注

2 similar comments
@tmkjchen
Copy link

关注

@cjm0000000
Copy link

关注

@sunny920406
Copy link

关注

1 similar comment
@weifansc
Copy link

weifansc commented Feb 8, 2018

关注

@hellocy23
Copy link

关注,希望能尽快解决

@CodingPapi
Copy link

关注这个问题好久了,大年初一拜个年,过年好。顺便催下。。。希望尽快解决

@52flutter
Copy link

关注中~

@douglasjunior
Copy link

@sorrycc are you looking to this? Can I do anything to help?

@gjqiang
Copy link

gjqiang commented Feb 28, 2018

关注。。

@sorrycc
Copy link
Owner

sorrycc commented Feb 28, 2018

今明两天修复。

@zenjava
Copy link

zenjava commented Feb 28, 2018

太痛苦了 没法调试

@TimYi
Copy link
Contributor

TimYi commented Mar 1, 2018

立了flag, 会发布新版本么?

@sorrycc
Copy link
Owner

sorrycc commented Mar 1, 2018

It's fixed, try [email protected].

@douglasjunior
Copy link

Worked, thanks!

image

@Malenconiaprincep
Copy link

cool

1 similar comment
@TimYi
Copy link
Contributor

TimYi commented Mar 7, 2018

cool

@pengshaosu
Copy link

pengshaosu commented Oct 18, 2018

如果使用了按需加载,调试代码时运行的是编译后的代码(分割的代码块),还是没法调试未编译的源码。
求解

@LeehanLee
Copy link

It's fixed, try [email protected].

大佬,edge下可以看到source map了,但是firefox下似乎还是看不到source map,版本2.5.0-beta.4
图片

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

Successfully merging a pull request may close this issue.