title: Add node module to chrome extension
body: <p>I am currently tying to add this single node module to my chrome extension: <a href="https://www.npmjs.com/package/get-urls" rel="nofollow noreferrer">https://www.npmjs.com/package/get-urls</a> Except I always get the require is not defined error. I have googled this and all I have been able to find are chrome extension templates to use but those give them same require is not defined error as well (and they are confusing to set up). I have built a chrome extension before using the <a href="https://www.npmjs.com/package/fuse.js/v/3.4.3" rel="nofollow noreferrer">https://www.npmjs.com/package/fuse.js/v/3.4.3</a> module.  I was able to get it to work by adding it into the manifest.json file like this: </p>
  
  <pre><code>"background": {
      "scripts": ["node_modules/fuse.js/dist/fuse.js", "background.js"]
  }
  </code></pre>
  
  <p>But I am unable to do this with the get-urls file as the index.js file has require() in it. </p>
  
  <pre><code>'use strict';
  const {URL} = require('url');
  const urlRegex = require('url-regex');
  const normalizeUrl = require('normalize-url');
  </code></pre>
  
  <p>When I npm installed the get-urls It also installed the folders that all these things are requiring. My question is will I be able to add the node_modules path to each index.js file and remove the require at the top of the files? each index.js file is requiring each other so they are all connected. </p>
  
  <p>Is there an easier way to do this that I am missing? </p>