Roman Dubinin
Jul 10, 2017 · 1 min read

Sorry for long answer Josh, super-busy weekdays (and weekends):(

I’ll try to isolate the issue, but as far as I remember, It was the issue with this one:

var Storage = require('dom-storage');var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;_app2.default.INTERNAL.extendNamespace({'INTERNAL': {  'node': {    'localStorage': new Storage(null, { strict: true }),    'sessionStorage': new Storage(null, { strict: true }),    'XMLHttpRequest': XMLHttpRequest  }}});

firebase-node just had some dependency injection hooked in.

As for using firebase-node and firebase-browser binaries— it’s really okay for us (for now at least): we almost always need database and auth which is 80% of firebase anyway :)

As soon as I’ll have time to optimise this more I’ll move firebase-app into initialization and move database and auth into separate bundles.

    Roman Dubinin

    Written by

    https://romanonthego.github.io

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade