Closed JamesDevGit closed 5 years ago
Can you please run Nuxt.js's bundle analyzer and post the results here so we can see what it contains?
Not sure how best to show the results of running that - it products an html page and json file. here is Screenshot of html file
Thanks, this is good. It shows that the biggest part of the bundle is the @firebase/firestore/dist/index.cjs.js
package, followed by the auth.esm.js
one. There are a few interesting things I'm seeing regarding the Flamelink SDK that we will try and improve on before this SDK graduates out of alpha and beta.
I built a tool to help you analyze webpack bundles for size regressions, and report them directly to GitHub PRs. It's free for open source, so it might be worth checking out and helpful in this scenario.
This is awesome, thanks for sharing @jondavidjohn
@jondavidjohn does packtracker only work with Webpack? We're using rollup for this project.
Doh, yes, it only works for webpack based builds.
Ah okay, thanks, I thought I might've missed something. Any plans for rollup support in the future?
@JamesDevGit since v1.0.0-alpha.23
all the Flamelink packages are now split out into the individual modules + individual databases. ie. separate files for the content
module for cloud firestore versus the realtime db.
I've also updated the Nuxt.js basic example to use the new version of the SDK as an example of how you would only import what you need.
More info regarding the new file sizes are here: https://github.com/flamelink/flamelink-js-sdk/pull/92#issuecomment-521169740
@jperasmus Not in the short term, need to see some demand build up to warrant it.
Fair enough. Iām definitely going to give it a try on some of my Webpack based projects.
On Wed, 14 Aug 2019 at 19:01, Jonathan D. Johnson notifications@github.com wrote:
@jperasmus https://github.com/jperasmus Not in the short term, need to see some demand build up to warrant it.
ā You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/flamelink/flamelink-js-sdk/issues/82?email_source=notifications&email_token=ABTZC7GSBNG5XVH3RCONG7LQEQ26RA5CNFSM4HQB63BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JOE4Q#issuecomment-521331314, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTZC7GT7A5FTH3DTZ7EUE3QEQ26RANCNFSM4HQB63BA .
Nuxt, adding flamelink, firebase, firebase-admin results in large vendor bundle
yarn generate output
any advice on how best to amend my flamelink js would be greatly appreciated