Closed LachlanEdwards closed 3 years ago
Thank you for the detailed report. As described in https://github.com/SAP/ui5-builder/issues/514, we plan to replace esprima with some more up-to-date parser implementation and have put this as a task on our backlog.
Closing this issue here as a duplicate.
Expected Behavior
I would like to be able to use ES2020 notation in our SAPUI5 Project. When using Optional Chaining (foo?.bar) I would expect to be able to deploy this to the Cloud Platform.
Current Behavior
Esprima throws the error "Unexpected token ." on the first line I use Optional Chaining, I suspect this is because Esprima hasn't been updated in two years and only provides support up to ES2017. It does have an Open Issue regarding Optional Chaining however JQuery/the development team haven't responded.
Steps to reproduce the issue
Context
ui5 --version
when using the CLI):2.4.4
10.22.0
6.14.6
Windows 10
Irrelevant
N/A
Affected components (if known)
Log Output / Stack Trace