diff --git a/packages/typescript-plugin/src/svelte-snapshots.ts b/packages/typescript-plugin/src/svelte-snapshots.ts index ba491ed02..5bbb199b3 100644 --- a/packages/typescript-plugin/src/svelte-snapshots.ts +++ b/packages/typescript-plugin/src/svelte-snapshots.ts @@ -343,7 +343,7 @@ export class SvelteSnapshotManager { // @ts-ignore this.projectService.host[onReadSvelteFile].forEach((listener) => - listener(path, code, isTsFile, mapper) + listener(path, svelteCode, isTsFile, mapper) ); return code;