UglifyJS throws unexpected token: keyword (const) with node_modules

后端 未结 7 1881
清歌不尽
清歌不尽 2020-12-13 16:31

A small project I started make use a node module (installed via npm) that declares const variables. Running and testing this project is well, b

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 17:30

    I just had this issue with a Gulp project I refactored and for some reason I was having trouble with the official Terser Gulp plugin. This one (gulp-terser) worked with no issues.

提交回复
热议问题