--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/e8dd37dd-9753-4e01-9cd7-93c8987edc40n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAFY0HLOcyPfK9box%2B_yUxO90tuQAkqSL-FoR_RAeA5b2Tkvokg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/b347a26b-ca29-4512-8184-073e83e57308n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/eb52b44e-e828-4ee8-96df-eb0ef5f63635n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAN5Ev6u%3DyVE_DdbcEr%2BbbAZy8%2BUW309tGrfuFCOmKiV9n6FyRg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CADEwH3whGVtb-3P6oVH4endErEP8AXZq1wOQAYE3WMw9a-E7jg%40mail.gmail.com.
FYI issues I faced and have tried to find all possible workarounds and not currently supported:
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/c44b4708-ccb1-4b07-8b30-e0a008bd3e39n%40chromium.org.
hey guys, where are the static SDK files for V9? Did Google remove support for that? I cannot find them. The links above do not have them. I feel like that's the only way Firebase Auth can work in a service worker.Please help
I did an actual test with npm version so far. It works perfectly
NPM or traditional browser JS?
@Jakie Han Thanks a lot for the insights> If you use version 9, NPM is the official recommendation. They say V9 Modular API supports tree-shaking, so I wonder if that unused code(remote js url) will be removed when you bundle modules.So what I did is that I produced a minimum example that imports auth to check if it includes this remote js url, the only imports I used were:import { initializeApp } from 'firebase/app';import { getAuth } from 'firebase/auth';and this makes the "https://apis.google.com/js/api.js" string included in the build. Removing the import { getAuth } from 'firebase/auth' makes this string disappear from the build so I guess there is no way to get the advantage of tree-shaking to exclude this url from the build while using auth. What I'm planning to do is to either leave the string in the build as it is or add an additional step to the build that replaces it with something like an empty string to be safe.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/124f7bba-e2d7-4f24-9f3f-62ed1114849bn%40chromium.org.