File tree 4 files changed +15
-4
lines changed
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 4
4
const perf = getInstance ( ) ;
5
5
6
6
function intialize ( ) {
7
- // [START perf_initialize ]
7
+ // [START perf_imports ]
8
8
const { initializeApp } = require ( "firebase/app" ) ;
9
9
const { getPerformance } = require ( "firebase/performance" ) ;
10
+ // [END perf_imports]
10
11
12
+ // [START perf_initialize]
11
13
// TODO: Replace the following with your app's Firebase project configuration
12
14
// See: https://firebase.google.com/docs/web/setup#config-object
13
15
const firebaseConfig = {
Original file line number Diff line number Diff line change
1
+ // [START perf_imports]
1
2
import firebase from "firebase/app" ;
2
3
import "firebase/performance" ;
4
+ // [END perf_imports]
3
5
4
6
const perf = firebase . performance ( ) ;
5
7
Original file line number Diff line number Diff line change
1
+ // This snippet file was generated by processing the source file:
2
+ // ./perf-next/index.js
3
+ //
4
+ // To update the snippets in this file, edit the source and then run
5
+ // 'npm run snippets'.
6
+
7
+ // [START perf_imports_modular]
8
+ import { initializeApp } from "firebase/app" ;
9
+ import { getPerformance } from "firebase/performance" ;
10
+ // [END perf_imports_modular]
Original file line number Diff line number Diff line change 5
5
// 'npm run snippets'.
6
6
7
7
// [START perf_initialize_modular]
8
- import { initializeApp } from "firebase/app" ;
9
- import { getPerformance } from "firebase/performance" ;
10
-
11
8
// TODO: Replace the following with your app's Firebase project configuration
12
9
// See: https://firebase.google.com/docs/web/setup#config-object
13
10
const firebaseConfig = {
You can’t perform that action at this time.
0 commit comments