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

parser不用正确解析以LF为换行格式下多个斜杠开头的comments #92

Open
wmtdhe opened this issue Jan 14, 2021 · 0 comments

Comments

@wmtdhe
Copy link

wmtdhe commented Jan 14, 2021

vux-loader version

^1.0.56

OS/Browsers version

无关

Vue version

^2.6.0

Code

/////
const a = 1;

// another comment here
let b = 'this works';

What is Expected?

\n为换行格式的文件能够正确解析多个/开头的comments

What is actually happening?

静态解析初始文本

/////\n  const a=1;\n\n // another comment here\n let b='this works';\n

经过vux-loader解析后 const a = 1; 被注释掉了。
image

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

1 participant