Skip to content

ERROR in bundle from UglifyJs Unexpected token: punc (,) #205

Closed
@mhoofman

Description

@mhoofman

Our project's webpack build which uses UglifyJS (uglify-js) started erroring after the tslib update from 2.5.0 to 2.5.1.

Here is the error message we are seeing (I replaced the name of our bundle file w/ bundle.js):

ERROR in bundle.js from UglifyJs
Unexpected token: punc (,) [./~/tslib/tslib.es6.js:296,0][bundle.js:218700,13]

Here are the package versions used that create this build error:

  • webpack 2.7.0
  • uglify-js 2.8.29
  • tslib >=2.5.1
  • cheerio 1.0.0-rc.10 (depends on tslib ^2.2.0)
  • file-selector 0.1.19 (depends on tslib ^2.0.1)

We rolled back tslib to version 2.5.0 to fix our builds.

Can this older version of uglify-js be supported or should we work towards updating our package dependencies?

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