Skip to content

Add the umbrella firebase package for modular packages #2927

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 13 commits into from
Apr 17, 2020

Conversation

Feiyang1
Copy link
Member

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 16, 2020

Binary Size Report

Affected SDKs

No changes between base commit (c3f34dc) and head commit (3401e89).

Test Logs

@@ -0,0 +1,35 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the CDN build? Is it not going to include polyfills anymore? Should we still registerVersion as 'cdn' to track when this build is used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's the firebase.js file. I don't think we need to include polyfills for several reasons:

  1. This file is intended for development and most people would use newer browsers that don't need polyfills.
  2. It discourages people to use it in production because it won't work in "all" browsers out of box.
  3. People can add polyfills themselves if needed. And I want us to get out of the business of deciding what polyfills to include and maintaining them forever.

Yup, good idea that we should keep tracking its usage. Will update.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added packages-exp/firebase-exp/app/index.cdn.ts. PTAL.

@@ -46,7 +46,7 @@ function visitNodeAndChildren(node, context) {

function visitNode(node) {
let importPath;
if (ts.isImportDeclaration(node)) {
if (ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) {
const importPathWithQuotes = node.moduleSpecifier.getText();
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems to be causing a build error, need to do a null check on moduleSpecifier?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, just fixed.

Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

Approved after fixing build error.

@Feiyang1 Feiyang1 merged commit 537350e into master Apr 17, 2020
@Feiyang1 Feiyang1 deleted the fei-firebase-next branch April 17, 2020 21:45
@firebase firebase locked and limited conversation to collaborators May 18, 2020
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.

3 participants