title: puppeteer-web: "Puppeteer is not a constructor"
body: <p>I'm trying to follow the <a href="https://github.com/GoogleChrome/puppeteer/tree/master/utils/browser" rel="nofollow noreferrer">instructions here to bundle puppeteer</a>, with the intention of including it in a chrome extension as a hacky way of scripting operations in the browser window (specifically, printing a page to PDF, which is surprisingly impossible with just the Chrome Extension API as far as I can tell). </p>
  
  <p>As per the <code>README</code> in the link above, I've set up my Chrome extension as follows:</p>
  
  <p><strong>background.html</strong></p>
  
  <pre><code>&lt;script src="./puppeteer/utils/browser/puppeteer-web.js"&gt;&lt;/script&gt;
  &lt;script src="background.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>background.js</strong></p>
  
  <pre><code>const puppeteer = require("puppeteer");
  </code></pre>
  
  <p>Throws the error <code>puppeteer/utils/browser/puppeteer-web.js:10877 (anonymous function) Uncaught TypeError: Puppeteer is not a constructor</code>. </p>
  
  <p>What am I missing here?</p>
  
  <p>Chrome version: Version 69.0.3497.100</p>
  
  <p>Node version: 7.4.0</p>