gruntjs / grunt-contrib-uglify

Minify files with UglifyJS.
http://gruntjs.com/
MIT License
1.48k stars 347 forks source link

Getting error when using optinal chaining #583

Closed prashantkapate closed 4 months ago

prashantkapate commented 4 months ago

We are getting an error when using optional chaining

Error: Line 107: Unexpected token. Modules we are using as below with node 16 "dependencies": { "grunt": "^1.4.1", "grunt-contrib-requirejs": "^1.0.0", "grunt-text-replace": "^0.4.0" }, "devDependencies": { "grunt-cli": "^1.4.3", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-cssmin": "^2.2.1", "grunt-contrib-uglify": "^5.2.2", "postcss": "^8.4.13", "postcss-cli": "^9.1.0", "postcss-import": "^14.1.0" }

alexlamsl commented 4 months ago

Please file the report with uglify-js by following the instructions there, e.g. provide the input that reproduce the issue etc.