Skip to content

压缩工具会把else if压缩成elseif,导致报错 #7

@iwillwen

Description

@iwillwen

现在用JSinJS的缩进工具来做minify发现一个bug。

if () {
  // statements
} else if () {
  //statements
}

以上代码会被压缩成

if(){}elseif(){}

这样引擎就会报错。求fix。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions