;
+ export let name: U;
+ let className: $$Props["class"] = undefined;
+ export { className as class };
+ `)
+ })
+
test('nested script block', async () => {
const doc = `
diff --git a/packages/houdini-svelte/src/plugin/extract.ts b/packages/houdini-svelte/src/plugin/extract.ts
index a0c9b3371..397a16c39 100644
--- a/packages/houdini-svelte/src/plugin/extract.ts
+++ b/packages/houdini-svelte/src/plugin/extract.ts
@@ -40,6 +40,15 @@ export async function parseSvelte(str: string): Promise> {
// parsing a file happens in two steps:
// - first we use svelte's parser to find the bounds of the script tag
// - then we run the contents through babel to parse it
+
+ // remove generics from script tag — otherwise svelte preprocessor will fail to parse
+ // if the generics attribute contains angle brackets
+ // Input: