title: Require module without webpack etc
body: <p>How can I load a library that can be loaded only trough require without using webpack, compilation, traspilation, uglification etc.</p>
  
  <p>Let's say: <a href="https://github.com/stutrek/scrollMonitor" rel="nofollow noreferrer">https://github.com/stutrek/scrollMonitor</a></p>
  
  <blockquote>
    <p>The code is vanilla javascript and has no external dependencies, however the script cannot be put in the head.</p>
  </blockquote>
  
  <pre><code>var scrollMonitor = require("scrollmonitor"); // if you're old school you can use the scrollMonitor global.
  </code></pre>
  
  <p>My preferred option would be to do:</p>
  
  <pre><code>&lt;script src="./scrollMonitor.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But that does not work. What is the next easiest option that avoids webpack etc. ?</p>
  
  <p>I tried with ES6 import:</p>
  
  <pre><code>import * as scrollMonitor from './scrollMonitor.js';
  </code></pre>
  
  <p>But that returns just empty object.</p>
  
  <p>Thanks for help.</p>