title: In vite + vue3 + TS project, AWS Amplify Failed to resolve components
body: <p>I am having hard time to make AWS Amplify work with <a href="https://vitejs.dev/" rel="noreferrer">Vite.js</a></p>
  <pre><code>// First I was getting this error:
  Uncaught ReferenceError: global is not defined
  </code></pre>
  <p>So, I added this <code>script</code> in index.html's <code>head</code> section</p>
  <pre><code>&lt;script&gt;
    var global = global || window;
    var Buffer = Buffer || [];
    var process = process || {
      env: { DEBUG: undefined },
      version: []
    };
  &lt;/script&gt;
  </code></pre>
  <p>Now, I am getting this warning/error</p>
  <pre><code>[Vue warn]: Failed to resolve component: amplify-sign-out 
  [Vue warn]: Failed to resolve component: amplify-authenticator 
  </code></pre>
  <p>You can see complete logs here:
  <a href="https://i.stack.imgur.com/nH8O9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nH8O9.png" alt="enter image description here" /></a></p>