Skip to content

Conversation

@cuixiaorui
Copy link
Contributor

replaced with optional chaining operator

@cuixiaorui cuixiaorui changed the title refactor: replaced with optional chaining operator refactor(runtime-core): replaced with optional chaining operator Nov 1, 2021
@sqal
Copy link
Contributor

sqal commented Nov 1, 2021

Are you sure it is safe to use this feature since iOS <= 13.3 and Chrome < 80 don't support it?

https://caniuse.com/mdn-javascript_operators_optional_chaining
https://caniuse.com/?search=es6 (vue 3 supported browsers)

@yyx990803
Copy link
Member

We intentionally avoid using optional chaining in the codebase because we target ES2016 and TS will transpile it to something much more verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants