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

vue-template-compiler 支持 deindent 开关 #7054

Closed
kyriosli opened this issue Nov 14, 2017 · 1 comment
Closed

vue-template-compiler 支持 deindent 开关 #7054

kyriosli opened this issue Nov 14, 2017 · 1 comment

Comments

@kyriosli
Copy link

What problem does this feature solve?

parseComponent中,会对script进行de-indent,导致生成sourceMap时无法根据scriptsourceMap计算vue文件中的位置。或许我们应该支持可选的de-indent或在block中输出具体去掉了多少的空白?

What does the proposed API look like?

vue_template_compiler.parseComponent(vue, {deindent: false})

@yyx990803
Copy link
Member

Closed via #7215

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

No branches or pull requests

2 participants