{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %} {% extends "_internal/templates/reference.html" %} {% block title %}Analytics interface{% endblock title %} {% block body %} An instance of Firebase Analytics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const packagesToAddEngines = [ | |
"packages/app-check-compat", | |
"packages/app-check", | |
"packages/app-compat", | |
"packages/app", | |
"packages/auth-compat", | |
"packages/auth/internal", | |
"packages/auth", | |
"packages/component", | |
"packages/database-compat", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
//... | |
resolve: { | |
mainFields: ['main', 'module'] | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
//... | |
resolve: { | |
mainFields: ['browser', 'module', 'main'] | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Firebase bundles --> | |
<script src="../node_modules/firebase/firebase-app.js"></script> | |
<script src="../node_modules/firebase/firebase-auth.js"></script> | |
<script src="../node_modules/firebase/firebase-storage.js"></script> | |
<script src="../node_modules/firebase/firebase-firestore.js"></script> | |
<!-- Your code --> | |
<script type="text/javascript" src="../index.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "@firebase/app", | |
"version": "0.4.8", | |
... | |
"main": "dist/index.node.cjs.js", | |
"browser": "dist/index.cjs.js", | |
"module": "dist/index.esm.js", | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import * as firebase from 'firebase/app'; | |
import 'firebase/auth'; | |
import 'firebase/database'; | |
class App extends Component { | |
constructor() { | |
super(); | |
this.state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2013-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
* | |
* @providesModule ReactAddonsDOMDependenciesUMDShim | |
*/ |