Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dlarocque/fcm-esm-bundle


https://github.com/dlarocque/fcm-esm-bundle

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# FCM with ESM in SW

Firebase Cloud Messaging currently don't support ESM syntax (`import ... from ...`). For most users, the solution to this is to use the `-compat` bundles imported from the CDN.

For users who wish to use ESM syntax, they must bundle their service worker file into a `firebase-messaging-sw.js` file that does *not* use ESM syntax. This repository provides an example for how to do that.