title: Error: AudioWorkletNode is undefined in React App
body: <p>I'm trying to create an AudioWorklet in React. I'm using create-react-app and importing scripts that are working outside the context of React into App.jsx. It is failing to instantiate my AudioWorkletNode extension and throwing the following error:</p>
  
  <pre><code>   Failed to compile.
  ./src/worklet/worklet-node.js
    Line 2:  'AudioWorkletNode' is not defined  no-undef
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code> // The code in the main global scope.
      class MyWorkletNode extends AudioWorkletNode {
          constructor(context) {
            super(context, 'my-worklet-processor');
          }
        }
  
        let context = new AudioContext();
  
        context.audioWorklet.addModule('processor.js').then(() =&gt; {
          let node = new MyWorkletNode(context);
        });
  </code></pre>
  
  <p>The same exact code is successfully initializing the AudioWorklet, so I'm a little baffled as to why AudioWorkletNode is not being recognized.</p>