Netlify build fails after firebase update

Hi! I am trying build expressjs app which was working previously, but after updating firebase-admin pkg it fails & has something to do with webpack loader

error log :
9:49:23 PM: netlify-lambda: Building functions
9:49:35 PM: [
9:49:35 PM: ModuleParseError: Module parse failed: Unexpected token (84:65)
9:49:35 PM: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See Concepts | webpack
9:49:35 PM: | // use the native Promise and then remove this.
9:49:35 PM: | this.Promise = Promise;
9:49:35 PM: > this.INTERNAL = new FirebaseNamespaceInternals(appStore ?? new lifecycle_1.AppStore());
9:49:35 PM: | }
9:49:35 PM: | /**
at handleParseError (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:469:19)

this helped → Netlify Functions and Firebase SDK Gotchas | The personal website of Frank Calise