svelte-adapter-firebase icon indicating copy to clipboard operation
svelte-adapter-firebase copied to clipboard

docs: TypeScript Support & Example

Open jthegedus opened this issue 4 years ago • 1 comments

Describe the bug

TypeScript may cause issues because our SvelteKit app is already built when the build output lands in functions/lib/<site name>/.

How should this be recommended to users? If they include the compiled relative import in the uncompiled TS then the app may attempt to be recompiled by the TS compilation of the functions, which we do not want :thinking:

EG:

// functions/src/index.ts
svelteKit = require("../lib/<site name>/handler").sveltekitServer;` 

This relative dir will be correct in the compiled code in functions/lib/index.js, but if the SvelteKit code is also passed through the TS compiler then we may have issues.

jthegedus avatar Feb 08 '21 06:02 jthegedus

+1 for this -- would be great to have easy integration with Typescript

joefhall avatar Jun 12 '23 10:06 joefhall