Skip to content

build: new internal builds for google3 #9139

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

build: new internal builds for google3 #9139

wants to merge 3 commits into from

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Jul 2, 2025

Create new builds that are only triggered during the internal google3 build, for google3 consumers:

  • firebase.js - includes every product
  • firebase-analytics-rc.js - includes those two products - special request by an internal team

It also doesn't look like we need to do the convoluted rollup config swap that we do in the google3 import script (internal link: https://source.corp.google.com/piper///depot/google3/third_party/javascript/firebase/updateThirdParty.sh;rcl=666835113;l=91) when we have a special build:internal script that can simply call the other config, so I changed that.

I assume we need to roll up new typings for each of the new bundles, so I added a step to generate those.

An unfortunate complication is that simply exporting * from each package leads to name collisions so every module needs to be namespaced with the product name, so that initializeApp must be referred to as app.initializeApp for example. This is really going backwards toward the old compat packages but the g3 ecosystem doesn't really give us much choice.

Also I noticed the rollup-internal.config.js builds every file that the main one does, including the non-cdn ones (such as the individual product entry points under firebase/) which doesn't seem necessary as they're not included in any BUILD target in google3, so I removed those. Will see if this causes a problem.

I will leave this as a branch and a draft that can be imported into google3 and iterated on based on whether it works there.

Copy link

changeset-bot bot commented Jul 2, 2025

⚠️ No Changeset found

Latest commit: 9900312

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
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants