Skip to content

A few fixes for Firestore bundle sdk builds #4177

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 8 commits into from
Dec 7, 2020

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Dec 7, 2020

  • Add missing firebase/firestore/bundle and firebase/firestore/memory/bundle.
  • Add bundle to firebase complete build
  • Add missing firestore.proto for Firestore memory build for Node.

@changeset-bot
Copy link

changeset-bot bot commented Dec 7, 2020

⚠️ No Changeset found

Latest commit: ca061e9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, 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 Dec 7, 2020

Size Analysis Report

Affected Products

No changes between base commit (aae9956) and head commit (a1f0b99).

Test Logs

@@ -111,7 +117,7 @@ const appBuilds = [

const componentBuilds = pkg.components
// The "app" component is treated differently because it doesn't depend on itself.
.filter(component => component !== 'app')
.filter(component => component !== 'app' && component !== 'firestore')
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update comment.

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.

sourcemap: true
}
],
plugins,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not need

uglify({
           output: {
             ascii_only: true // escape unicode chars
            }	               
})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The index.ts is just import '@firebase/firestore'; (so is the output), I think we can skip it here.

@@ -24,6 +24,7 @@ import '../database';
// `atob`). We should provide a RN build that works out of the box.
import '../storage';
import '../firestore';
import '../firestore/bundle';
Copy link
Contributor

Choose a reason for hiding this comment

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

The React Nativce build of the main Firestore package splits up bundles and non-bundled code. I think we should do the same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for "complete" build, which include everything (except memory only builds) on other platforms.

@schmidt-sebastian schmidt-sebastian removed their assignment Dec 7, 2020
@wu-hui wu-hui merged commit 931621e into wuandy/ReleaseBundles Dec 7, 2020
wu-hui added a commit that referenced this pull request Dec 8, 2020
* Add bundles to d.ts and rearrange bundles source code for building it as a separate module (#4120)

* Add bundles to d.ts and rearrange bundles source code for building it as a separate module.

* Roll bundle with prebuilt (#4128)

Build firestore sdks with prebuilt to support bundle as a prototype patched feature.

* Add JSDoc for bundles (#4155)

Add JSDoc for bundles.

* Create changeset

* Update old-lobsters-pull.md

* A few fixes for Firestore bundle sdk builds (#4177)

* Actually creates firebase/firestore/bundle package.json

* Fix standard node/browser builds for bundles

* Make it release from remote branch.

* Add bundle to firebase complete build and fix missing proto for memory build.

* Make rollup.config.js more organized.

* Revert "Make it release from remote branch."

This reverts commit 2c91fd1.

* 2017 -> 2020

* Update comment.

* Address comments

* Update .changeset/old-lobsters-pull.md

Co-authored-by: Sebastian Schmidt <[email protected]>

* Update .changeset/old-lobsters-pull.md

Co-authored-by: Sebastian Schmidt <[email protected]>

* Add toc.

* Remove webpack change.

Co-authored-by: Sebastian Schmidt <[email protected]>
@firebase firebase locked and limited conversation to collaborators Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants