title: How to initializeApp() dynamically
body: <p>At the moment I'm trying to initialize a firebase app dynamically.</p>
  <pre><code>const cliConfig = import('./cli-config.json').then((config) =&gt; {
    initializeApp(cliConfig.default);
  })
  </code></pre>
  <p>But it does not work:
  <a href="https://i.stack.imgur.com/pLDT9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pLDT9.png" alt="Please help" /></a></p>