Composition-api: Can we use this package for migration vue version 2 to 3?

Created on 15 Mar 2020  路  4Comments  路  Source: vuejs/composition-api

This question is just curiosity. Can we use this package for migration from vue 2 to 3?
Or shouldn't we use this for migration? (As far as I saw the note, we should not use it...)
If we should not use this package, is there alternative way?

question

Most helpful comment

If you want to start using to composition functions now, you can use this plugin although you should probably be careful in components that are performance-critical.

The API is close enough to make migration to Vue 3 easy and straightforward imho.

But I would not try and move a whole app to the composition API now, except for side projects.

All 4 comments

If you want to start using to composition functions now, you can use this plugin although you should probably be careful in components that are performance-critical.

The API is close enough to make migration to Vue 3 easy and straightforward imho.

But I would not try and move a whole app to the composition API now, except for side projects.

I see. Thank you for that!
When we migrated from vue version 1 to 2, we used vue-migration-helper.
Do you or vue team have the plan to create the migration tool like vue-migration-helper?

Yes we do. We also plan to provide actual codemode scripts to automate migration for those parts that can be automated.

It's on the roadmap: https://github.com/vuejs/vue/projects/6

Really? It's so great. I can't wait for it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ycmjason picture ycmjason  路  5Comments

geekox86 picture geekox86  路  4Comments

banricho picture banricho  路  3Comments

sapphi-red picture sapphi-red  路  4Comments

sseeland picture sseeland  路  4Comments