title: Using a Cordova plugin with Capacitor
body: <p>I've been working through this example:
  <a href="https://capacitor.ionicframework.com/docs/basics/cordova" rel="noreferrer">https://capacitor.ionicframework.com/docs/basics/cordova</a></p>
  
  <p>I've run:</p>
  
  <pre><code>npm install cordova-plugin-qrscanner
  npx cap sync
  </code></pre>
  
  <p>and I can see the plugin installed in my node_modules. </p>
  
  <p>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? </p>
  
  <p>I'm also confused as to how this works if the cordova plugin contains native swift (or other) code.</p>