Skip to content

Use @firebase/firestore/memory for Memory-build #2834

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 2 commits into from
Mar 30, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Mar 30, 2020

No description provided.

@@ -20,4 +20,4 @@
* `firebase/firestore/memory`.
*/

import '../../../firestore/dist/index.memory.esm';
import '../../../firestore/dist/index.memory.esm2017';
Copy link
Member

Choose a reason for hiding this comment

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

hmm, we should import from @firebase/firestore instead of from the local path. The build tool will choose the build according to the configuration.

import '@firebase/firestore/memory'

@google-oss-bot
Copy link
Contributor

Binary Size Report

Affected SDKs

SDKTypeBase (6cff2f4)Head (f3d6be5)Diff
@firebase/firestoreesm2017267852.00216152.00-51700.00 (-19.30%)
Metric Unit: byte

Test Logs

@schmidt-sebastian schmidt-sebastian changed the title Use ESM2017 for Memory-build Use @firebase/firestore/memory for Memory-build Mar 30, 2020
@schmidt-sebastian
Copy link
Contributor Author

Merging this since it is cleaner, but it doesn't actually change the size since Typescript imports the ES3 build.

@schmidt-sebastian schmidt-sebastian merged commit 50de3fb into master Mar 30, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/esm2017 branch April 6, 2020 19:26
@firebase firebase locked and limited conversation to collaborators Apr 30, 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