title: firebase.auth is not a function
body: <p>I am using Webpack with firebase and firebase-admin.</p>
  <p>To install firebase I ran:</p>
  <pre><code>npm install --save firebase
  </code></pre>
  <p>I am importing firebase using:</p>
  <pre><code>import * as firebase from 'firebase/app'
  import 'firebase/auth'
  </code></pre>
  <p>I also tried:</p>
  <pre><code>import * as firebase from 'firebase'
  </code></pre>
  <p>And I tried:</p>
  <pre><code>const firebase = require('firebase')
  </code></pre>
  <p>As suggested in <a href="https://firebase.google.com/docs/web/setup" rel="noreferrer">web get started guide</a>.</p>
  <p>However, when I try to use <code>firebase.auth()</code> I get an error:</p>
  <blockquote>
  <p>console.js:32 TypeError: firebase.auth is not a function</p>
  </blockquote>
  <p>When I use the debugger to inspect <code>firebase</code> I see that it in fact does not have an <code>auth</code> function:</p>
  <pre><code>&gt; firebase
   {__esModule: true, initializeApp: ƒ, app: ƒ, Promise: ƒ, …}
  </code></pre>
  <p>How can I get <code>auth()</code> included as a function using webpack?</p>