title: When bundled with rollupjs seeing the "require is not defined" error
body: <p>Trying to bundle a library here with rollupjs and to add that to an example HTML like like this</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          ...
      &lt;/head&gt;
      &lt;body&gt;
          ...
          &lt;script src="/dist/videomail-client.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              var VideomailClient = require('videomail-client')
  
              ...
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But then, I see this error:
  <strong>Uncaught ReferenceError: require is not defined</strong></p>
  
  <p>The whole rollupjs config can be seen here <a href="https://github.com/binarykitchen/videomail-client/blob/feature/rollupjs/env/dev/rollup.config.js" rel="nofollow noreferrer">https://github.com/binarykitchen/videomail-client/blob/feature/rollupjs/env/dev/rollup.config.js</a></p>
  
  <p>Using the cjs format because it is supposed to come with that <code>require</code> function, doesn't it? Any clues?</p>