-
Notifications
You must be signed in to change notification settings - Fork 934
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
Conversation
@@ -0,0 +1,35 @@ | |||
/** |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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:
- This file is intended for development and most people would use newer browsers that don't need polyfills.
- It discourages people to use it in production because it won't work in "all" browsers out of box.
- 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.
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, just fixed.
There was a problem hiding this 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.
No description provided.