kesne / svelte-relay

Easily use GraphQL in Svelte, powered by the production-ready Relay runtime.
https://kesne.github.io/svelte-relay/
108 stars 5 forks source link

Fix multiple scripts in a svelte file #41

Closed istarkov closed 3 years ago

istarkov commented 3 years ago

Svelte allows multiple script tags in one file, especially this is used in sapper for context="module" scripts. Without this change graphql tags cant be found in sapper route components.

TrySound commented 3 years ago

Hi @kesne. Could you please take a look at this?