Migrate from Cordova
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.
Migrating
Section titled “Migrating”The Capacitor Migration section will appear if Cordova is detected:
- Click each item and choose an action (
Uninstall,UpgradeorIgnore). - Finally click
Remove Cordovato finalize the migration.
Unneeded Plugins
Section titled “Unneeded Plugins”Cordova plugins that you no longer need will be flagged and you can click Uninstall to remove them.
Incompatible Plugins
Section titled “Incompatible Plugins”Cordova plugins that are on a known incompatible list will be flagged. There may be Capacitor equivalents, your code will need to be refactored.
Better Plugins
Section titled “Better Plugins”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.
Remove Cordova
Section titled “Remove Cordova”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.