Skip to content

No longer works with uglify-js #610

Closed
@ibc

Description

@ibc

I think that, due this commit debug no longer works with browserify + gulp-uglify (which uses uglify-js internally):

 GulpUglifyError: unable to minify JavaScript
Caused by: SyntaxError: Unexpected token: keyword (const)
File: /Users/ibc/xxxx/src/myApp/myApp.js
Line: 24207
Col: 1

If I use browserify without uglify and check the generated bundled JS file, it contains:

const c = 'color: ' + this.color;

// and many other ES6 stuff

I don't think this is intentional, am I right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions