Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(runtime-core): replaced with optional chaining operator #4882

Closed
wants to merge 1 commit into from

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.

None yet

3 participants