There is a main.js file
In this file you need to connect firebase import, without using WebPack or other collectors.
There is an example in the official documentation.
<!-- Firebase App is always required and must be first --> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase-app.js"> </script> <!-- Add additional services that you want to use --> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase-auth.js"> </script> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase-database.js"> </script> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase- firestore.js"></script> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase- messaging.js"></script> <script src="https://www.gstatic.com/firebasejs/5.6.0/firebase- functions.js"></script> But it is not quite that. This approach violates the structure of the application.