title: how use npm packages with Vue SPA
body: <p>i have created Vuejs app using vue-loader,now i need to use an installed npm package as follow : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   var x = require('package-name')
     Vue.use(x)</code></pre>
  </div>
  </div>
  </p>
  
  <p>but i have this error :</p>
  
  <pre><code>Uncaught TypeError: plugin.apply is not a function
  </code></pre>
  
  <p>dose Vuejs require a special type packages or it can work with any JavaScript package and this error can be solved</p>