Closed lvxiaodi1234 closed 1 year ago
From the top of the readme:
For browser usage, this package targets the latest version of Chrome, Firefox, and Safari.
Using this operator seems to confuse terser for versions < 5.2.0: https://github.com/terser/terser/issues/567
Some parts of the ecosystem still use an older terser, so I think it would be better not to use the optional chaining operator in libraries.
In error log monitor,I found some errors like "Uncaught SyntaxError: Unexpected token ." from old browsers(IE and so on).
Debug file "base.js", the problem is optional chaining operator (?.) can not use directly in old browsers