Skip to content

Commit

Permalink
fix: exclude firebase source from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
thdk committed Oct 12, 2021
1 parent b5d33a7 commit 5cf5412
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const input = `src/index.ts`;

const external = [
"mobx",
"firebase/app",
"firebase/auth",
"firebase/firestore",
"@firebase/rules-unit-testing",
];

export default [{ // Commonjs
Expand Down
2 changes: 1 addition & 1 deletion src/document/__tests__/watch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { waitFor } from "@testing-library/dom";
import { Doc } from "../..";
import { IBook, IBookData } from "../../__test-utils__";

import { collection, deleteDoc } from "@firebase/firestore";
import { collection, deleteDoc } from "firebase/firestore";
import { CollectionReference, doc, setDoc } from "firebase/firestore";

function deserializeBook(book: IBookData): IBook {
Expand Down
2 changes: 1 addition & 1 deletion src/document/document.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { doc, onSnapshot } from "@firebase/firestore";
import { doc, onSnapshot } from "firebase/firestore";
import { observable, computed, action, IObservableValue, makeObservable } from "mobx";
import { CollectionReference, DocumentReference } from "firebase/firestore";
export interface IDocOptions<T, K> {
Expand Down

0 comments on commit 5cf5412

Please sign in to comment.