title: Importing JS libraries to Vue.js
body: <p>I'm trying to use <code>hammer.js</code> on my project, however I'm having trouble importing it. I have installed the library through <code>npm</code> by <code>npm i hammerjs</code>. Imported it on my <code>main.js</code> file as <code>import 'hammerjs'</code> and then when I do</p>
  
  <pre><code>var hammertime = new Hammer(myElement, myOptions)
  hammertime.on('pan', function(ev) {
  console.log(ev)
  })
  </code></pre>
  
  <p>I get errors saying <code>Hammer</code> is not defined. What is the correct way to import libraries in vue?</p>