-
Notifications
You must be signed in to change notification settings - Fork 938
Make Firestore-mangled build the only Firestore build #2640
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
packages/firestore/package.json
Outdated
@@ -49,6 +46,7 @@ | |||
"@firebase/app-types": "0.x" | |||
}, | |||
"devDependencies": { | |||
"@types/node": "8.10.59", |
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.
This is in devDependencies
in the root package.json
, is there a reason to include it separately here?
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.
The paths in externs.json
are relative to the package root, so I need this to be installed in packages/firestore/node_modules.
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.
Doesn't line 38 of firestore/rollup.config.js
set them to be relative to repo root? The other files in externs.json
seem to be relative to repo root.
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! Updated.
@Feiyang1 Let me know if you have time to check whether this works properly with SourceMaps. |
@Feiyang1 confirmed the source maps still work as is. Thanks! |
This removes the
.min.js
files for Firestore and updates the default build to use the minified property names.It looks like the previous build did not include a mangled Node build - I added this here and because of that I also had to add externs for Node.