Skip to content

Add ReactNative and Browser builds (Lite/Exp) #3400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 18, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Jul 13, 2020

  • Renames index.node.ts to index.ts since we can share the file
  • Moves index.d.ts files to different folder since these types now clash with the renamed index.ts file
  • Adds minified builds for RN and Browser
  • Removed tryCatchDeoptimization from Rollup config as it doesn't seem to make a difference
  • Fix small issues in types

@changeset-bot
Copy link

changeset-bot bot commented Jul 13, 2020

💥 No Changeset

Latest commit: 373d996

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 13, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore/exp

    Type Base (ee33ebf) Head (4499f9e) Diff
    browser ? 188 kB ? (?)
    main 401 kB 535 kB +134 kB (+33.5%)
    react-native ? 188 kB ? (?)
  • @firebase/firestore/lite

    Type Base (ee33ebf) Head (4499f9e) Diff
    browser ? 67.9 kB ? (?)
    main 125 kB 521 kB +396 kB (+316.7%)
    react-native ? 67.9 kB ? (?)

Test Logs

@schmidt-sebastian schmidt-sebastian changed the title Add ReactNative and Browser builds Add ReactNative and Browser builds (Lite/Exp) Jul 15, 2020
@@ -2,5 +2,7 @@
"name": "@firebase/firestore/exp",
"description": "A tree-shakeable version of the Firestore SDK",
"main": "../dist/exp/index.node.esm2017.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make main a umd build, since it's going to be used in Node.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Changed to UMD and ES5.

@@ -2,5 +2,7 @@
"name": "@firebase/firestore/lite",
"description": "A lite version of the Firestore SDK",
"main": "../dist/lite/index.node.esm2017.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to umd build.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Changed to UMD and ES5.

@schmidt-sebastian schmidt-sebastian merged commit d434118 into master Jul 18, 2020
@firebase firebase locked and limited conversation to collaborators Aug 18, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/rnbrowser branch November 9, 2020 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants