vue-design-system: ERROR in system/system.js from UglifyJs Unexpected token: punc (() [system/system.js:50506,9]

Hi

I upgraded to and am running latest VDS 3.5.2 and when I run npm run build:system I get the stated error.

ERROR in system/system.js from UglifyJs Unexpected token: punc (() [system/system.js:50506,9]

Stopping me dead in my tracks.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (13 by maintainers)

Most upvoted comments

@michaelpumo Tracked it down to this breaking change in Uglify.js (Uglify does not support ES6 anymore): https://github.com/webpack-contrib/uglifyjs-webpack-plugin/blob/master/CHANGELOG.md#breaking-changes.

This comment made me found the changelog: https://github.com/webpack/webpack/issues/5858#issuecomment-423796350

I will release a new version with fix to this (and changing from Uglify to Terser https://github.com/webpack-contrib/terser-webpack-plugin) later today or tomorrow.