vux-loader icon indicating copy to clipboard operation
vux-loader copied to clipboard

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

Open wmtdhe opened this issue 3 years ago • 0 comments

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

wmtdhe avatar Jan 14 '21 06:01 wmtdhe