Skip to content

FlipClock breaks when uglified. #375

@Woolfe

Description

@Woolfe

The version of FlipClock that is on npm (the js-es6 branch) breaks when uglified.

Because FlipClock reads the names of functions, when run through Uglify it gives this error:

n cannot be rendered because it has no template which occurs in DomComponent.js because this.name is a function name generated by Uglify.

Npm modules should handle common build processes that change variable names, such as Uglify.

For those looking for a fix in the meantime, adding keep_classnames: true and keep_fnames: true to uglifyOptions worked for me.

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