Skip to content

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

@wmtdhe

Description

@wmtdhe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions