houdini-svelte 0.0.0-20240904212848 → 0.0.0-20240930215630

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,5 +11,5 @@ type EmbeddedScript = {
11
11
  };
12
12
  useRunes: boolean;
13
13
  };
14
- export declare function parseSvelte(str: string): Promise<Maybe<EmbeddedScript>>;
14
+ export declare function parseSvelte(str: string, forceRunes: boolean): Promise<Maybe<EmbeddedScript>>;
15
15
  export {};
@@ -38,6 +38,12 @@ export type HoudiniSvelteConfig = {
38
38
  * @default undefined
39
39
  */
40
40
  framework: 'kit' | 'svelte' | undefined;
41
+ /**
42
+ * Force Houdini to always use Runes under the hood. Set this to true if you are enabling Runes mode globally for your app.
43
+ * When disabled, Houdini will try to detect Runes and go into Runes mode if required.
44
+ * @default false
45
+ */
46
+ forceRunesMode?: boolean;
41
47
  /**
42
48
  * Override the classes used when building stores for documents. Values should take the form package.export
43
49
  * For example, if you have a store exported from $lib/stores you should set the value to "$lib/stores.CustomStore".
@@ -1,6 +1,6 @@
1
1
  import type { TransformPage } from 'houdini/vite';
2
2
  import type { SourceMapInput } from 'rollup';
3
- import type { Framework } from '../kit';
3
+ import { type Framework } from '../kit';
4
4
  export default function apply_transforms(framework: Framework, page: TransformPage): Promise<{
5
5
  code: string;
6
6
  map?: SourceMapInput;