-
Notifications
You must be signed in to change notification settings - Fork 900
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
Add minified ("mangled") Firestore build #2495
Conversation
7a176ff
to
8037b6b
Compare
ecf9dd0
to
090eb7f
Compare
|
Sorry - most of our design docs (including this one) are internal only for now. I can promise that it is not all that interesting :) |
19bba3b
to
7e7a174
Compare
packages/firestore/package.json
Outdated
"rollup-plugin-node-resolve": "5.2.0", | ||
"rollup-plugin-replace": "2.2.0", | ||
"rollup-plugin-terser": "5.1.2", |
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.
Unless this version is important you could probably move up to terser 5.1.3 and not have 2 separate versions in yarn.lock
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.
Updated to 5.1.3. Thanks!
Will this also be part of the Firebase package? Did not see a version bump yet 😄 |
This hasn't been released yet. We are working on it! |
Sending this one out for early review. Doc for more context: go/minification
This PR adds a new Firestore where most identifiers a mangled (a size saving of 9% gzipped). I don't know too much about the Rollup pipeline, so any suggestions there are more than appreciated.
The basic steps involved in this minification/mangling are:
The output of this process are a couple of new files:
We discussed internally to only have a single build and make our default build use the new mangled property names. That might be coming before we release this, but we need to figure out how to run our integration test against the mangled build first.