I create a quick hello world firebase function following the official tutorial. The bundled JS file is ~
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.ping = functions.https.onCall(() => {
return 'Hello world'
});
Bundling this up with esbuild the output is a whopping 8.7mb!! No wonder the cold start is so slow. How can I get this down?
Is this expected / normal?