The extension automates the experience of migrating from Cordova to Capacitor. Most Cordova plugins will work in a Capacitor application but the extension will suggest recommendations for improvement as well.
Capacitor Migration section will appear if Cordova is detected:
- Click each item and choose an action (
- Finally click
Remove Cordovato finalize the migration.
Capacitor will work with most Cordova plugins and there are only a few Cordova plugins that are incompatible and will require you to refactor your code after migration.
Cordova plugins that you no longer need will be flagged and you can click
Uninstall to remove them.
Cordova plugins that are on a known incompatible list will be flagged. There may be Capacitor equivalents, your code will need to be refactored.
Cordova plugins that have better equivalent Capacitor plugins will show as optional suggestions (light bulb icon). A better plugin is defined as one that has official support from the Capacitor team. Some Cordova plugins have been deprecated or are no longer maintained, we track these and provide suggestions for alternatives.
The final step of migration is to choose the Remove Cordova item which will backup your
config.xml and remove the
cordova section from
package.json. After this you'll see additional features appear like debugging and running.