Updated: 12.Feb.2024
MV3 doesn't support remote hosted code anymore so everything should be bind inside extension package.
Save Firebase Javascript modules inside /js/firebase/ of extension root.
E.g. files: https://www.gstatic.com/firebasejs/10.8.0/firebase-app.js
https://www.gstatic.com/firebasejs/10.8.0/firebase-firestore.js
E.g. for this case firebase-firestore.js at end of line #1 :
from 'https://www.gstatic.com/firebasejs/10.8.0/firebase-app.js'
to
from './firebase-app.js';
Then add firebase_config.js from below to the same folder /js/firebase.
Add inject.js inside root of package.
Hey thanks for this, but I get an error "Uncaught Error: Service firestore is not available" at line 20 of firebase_config. Any idea why?