import { NgModule , Optional } from '@angular/core' ; import { AngularFirePerformance } from './performance' ; import { PerformanceMonitoringService } from './performance.service' ; import firebase from 'firebase/compat/app' ; import { VERSION } from '@angular/fire' ; @ NgModule ( { providers : [ AngularFirePerformance ] } ) export class AngularFirePerformanceModule { constructor ( perf , @ Optional ( ) _ ) { firebase . registerVersion ( 'angularfire' , VERSION . full , 'perf-compat' ) ; perf . dataCollectionEnabled . then ( ( ) => { } ) ; } }