@@ -23,12 +23,12 @@ import { deepCopy } from '../utils/deep-copy';
2323import { FirebaseNamespaceInternals } from './firebase-namespace' ;
2424import { AppErrorCodes , FirebaseAppError } from '../utils/error' ;
2525
26- import { Auth } from '../auth/auth ' ;
26+ import { Auth } from '../auth/index ' ;
2727import { MachineLearning } from '../machine-learning/machine-learning' ;
28- import { Messaging } from '../messaging/messaging ' ;
28+ import { Messaging } from '../messaging/index ' ;
2929import { Storage } from '../storage/storage' ;
3030import { Database } from '../database/index' ;
31- import { Firestore } from '@google-cloud /firestore' ;
31+ import { Firestore } from '.. /firestore/index ' ;
3232import { InstanceId } from '../instance-id/index' ;
3333import { ProjectManagement } from '../project-management/project-management' ;
3434import { SecurityRules } from '../security-rules/security-rules' ;
@@ -293,10 +293,8 @@ export class FirebaseApp implements app.App {
293293 * @return The Messaging service instance of this app.
294294 */
295295 public messaging ( ) : Messaging {
296- return this . ensureService_ ( 'messaging' , ( ) => {
297- const messagingService : typeof Messaging = require ( '../messaging/messaging' ) . Messaging ;
298- return new messagingService ( this ) ;
299- } ) ;
296+ const fn = require ( '../messaging/index' ) . getMessaging ;
297+ return fn ( this ) ;
300298 }
301299
302300 /**
0 commit comments