title: Chrome Extension: trying to use require.js in content scripts
body: <p><strong>What I'm trying to fix:</strong></p>
  
  <p>I'm experiencing <code>content.js:179 Uncaught ReferenceError: require is not defined</code> on the line where I call <code>var wordnet =require('../node_modules/wordnet');</code> And to overcome this error, I'm trying to use <a href="http://requirejs.org/docs/download.html#domReady" rel="nofollow noreferrer">require.js</a>. However, I'm not sure how to include this script in my content script.
  I have already included require.js in my manifest.json:</p>
  
  <pre><code>"content_scripts": [
  {
    "matches": [
      "https://www.reddit.com/r/design_critiques/*"
    ],
    "run_at": "document_end",
    "js": [
      "scripts/content.js",
      "scripts/require.js"
    ],
    "css": [
      "stylesheets/content.css"
    ]
  }]
  </code></pre>