es6-css-minify
es6-css-minify copied to clipboard
Error unexpected token: punc (.) on optional chaining
Describe the bug Error "unexpected token: punc (.)" when minifying JavaScript file which contains optional chaining (?.) syntax
To Reproduce Steps to reproduce the behavior:
- Create a JavaScript file
- Add an optional chaining syntax, ex:
if(object.key?.otherKey) - Run Minify
- There will be an error showing
unexpected token: punc (.)
Expected behavior The JavaScript file is minified correctly
Desktop (please complete the following information):
- OS: Windows 10 Home Single Language
- Version: 1909
I have the exact same issue.
OS: Xubuntu Linux
Version: 20.04
same
same
same