jthegedus / svelte-adapter-firebase

SvelteKit adapter for Firebase Hosting rewrites to Cloud Functions for a Svelte SSR experience

Home Page:https://github.com/jthegedus/svelte-adapter-firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docs: how to use new ESM support in Cloud Functions

jthegedus opened this issue · comments

Cloud Functions has recently added support for ESM. It is enabled in functions/package.json and therefore applies to all functions.

This adapter converts SvelteKit server to CJS by default but you can configure this output with the esbuild options. We should document this, write tests for ESM and also have an example in the docs for ESM.

closed in #137