Using a Cordova plugin with Capacitor
问题 I've been working through this example: https://capacitor.ionicframework.com/docs/basics/cordova I've run: npm install cordova-plugin-qrscanner npx cap sync and I can see the plugin installed in my node_modules. What I do not know how to do is call one of the functions on the cordova-plugin. I'm wondering if I need a packager like webpack? I'm also confused as to how this works if the cordova plugin contains native swift (or other) code. 回答1: Remember you can install the native wrapper too.