title: How to import popper.js? (not with a CDN, installed with NPM)
body: <p>I am aware there is other similar questions such as this <a href="https://stackoverflow.com/questions/45650583/how-to-import-popper-js">one</a>. However mine is quite different. </p>
  
  <p>I would like to know how to import Popper.js using the <code>import</code> directive. So far I have this on my <code>app.js</code> (but it does not work yet)</p>
  
  <pre><code>import * as popper from 'popper.js'
  window.popper = popper
  </code></pre>
  
  <p>But I have to mangle every example I find on the Internet with <code>popper.</code>. Moreover this include takes two lines while the traditional writing <code>window.popper = require('popper.js')</code> takes only one line. </p>
  
  <p>What is the correct way to import Popper.js and other similar JS libraries?</p>