@tanstack/router-plugin 1.139.14 → 1.140.0

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.
@@ -23,6 +23,16 @@ function getFrameworkOptions(framework) {
23
23
  }
24
24
  };
25
25
  break;
26
+ case "vue":
27
+ frameworkOptions = {
28
+ package: "@tanstack/vue-router",
29
+ idents: {
30
+ createFileRoute: "createFileRoute",
31
+ lazyFn: "lazyFn",
32
+ lazyRouteComponent: "lazyRouteComponent"
33
+ }
34
+ };
35
+ break;
26
36
  default:
27
37
  throw new Error(
28
38
  `[getFrameworkOptions] - Unsupported framework: ${framework}`
@@ -1 +1 @@
1
- {"version":3,"file":"framework-options.cjs","sources":["../../../../src/core/code-splitter/framework-options.ts"],"sourcesContent":["type FrameworkOptions = {\n package: string\n idents: {\n createFileRoute: string\n lazyFn: string\n lazyRouteComponent: string\n }\n}\n\nexport function getFrameworkOptions(framework: string): FrameworkOptions {\n let frameworkOptions: FrameworkOptions\n\n switch (framework) {\n case 'react':\n frameworkOptions = {\n package: '@tanstack/react-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'solid':\n frameworkOptions = {\n package: '@tanstack/solid-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n default:\n throw new Error(\n `[getFrameworkOptions] - Unsupported framework: ${framework}`,\n )\n }\n\n return frameworkOptions\n}\n"],"names":[],"mappings":";;AASO,SAAS,oBAAoB,WAAqC;AACvE,MAAI;AAEJ,UAAQ,WAAA;AAAA,IACN,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF;AACE,YAAM,IAAI;AAAA,QACR,kDAAkD,SAAS;AAAA,MAAA;AAAA,EAC7D;AAGJ,SAAO;AACT;;"}
1
+ {"version":3,"file":"framework-options.cjs","sources":["../../../../src/core/code-splitter/framework-options.ts"],"sourcesContent":["type FrameworkOptions = {\n package: string\n idents: {\n createFileRoute: string\n lazyFn: string\n lazyRouteComponent: string\n }\n}\n\nexport function getFrameworkOptions(framework: string): FrameworkOptions {\n let frameworkOptions: FrameworkOptions\n\n switch (framework) {\n case 'react':\n frameworkOptions = {\n package: '@tanstack/react-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'solid':\n frameworkOptions = {\n package: '@tanstack/solid-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'vue':\n frameworkOptions = {\n package: '@tanstack/vue-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n default:\n throw new Error(\n `[getFrameworkOptions] - Unsupported framework: ${framework}`,\n )\n }\n\n return frameworkOptions\n}\n"],"names":[],"mappings":";;AASO,SAAS,oBAAoB,WAAqC;AACvE,MAAI;AAEJ,UAAQ,WAAA;AAAA,IACN,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF;AACE,YAAM,IAAI;AAAA,QACR,kDAAkD,SAAS;AAAA,MAAA;AAAA,EAC7D;AAGJ,SAAO;AACT;;"}
@@ -31,7 +31,7 @@ export type CodeSplittingOptions = {
31
31
  type FileRouteKeys = keyof (Parameters<CreateFileRoute<any, any, any, any, any>>[0] & {});
32
32
  export type DeletableNodes = FileRouteKeys | (string & {});
33
33
  export declare const configSchema: z.ZodObject<{
34
- target: z.ZodDefault<z.ZodOptional<z.ZodEnum<["react", "solid"]>>>;
34
+ target: z.ZodDefault<z.ZodOptional<z.ZodEnum<["react", "solid", "vue"]>>>;
35
35
  virtualRouteConfig: z.ZodOptional<z.ZodUnion<[z.ZodType<import('@tanstack/virtual-file-routes').VirtualRootRoute, z.ZodTypeDef, import('@tanstack/virtual-file-routes').VirtualRootRoute>, z.ZodString]>>;
36
36
  routeFilePrefix: z.ZodOptional<z.ZodString>;
37
37
  routeFileIgnorePrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -96,7 +96,7 @@ export declare const configSchema: z.ZodObject<{
96
96
  } | undefined;
97
97
  }>>;
98
98
  }, "strip", z.ZodTypeAny, {
99
- target: "react" | "solid";
99
+ target: "react" | "solid" | "vue";
100
100
  routeFileIgnorePrefix: string;
101
101
  routesDirectory: string;
102
102
  quoteStyle: "single" | "double";
@@ -142,7 +142,7 @@ export declare const configSchema: z.ZodObject<{
142
142
  environmentName?: string | undefined;
143
143
  } | undefined;
144
144
  } | undefined;
145
- target?: "react" | "solid" | undefined;
145
+ target?: "react" | "solid" | "vue" | undefined;
146
146
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
147
147
  routeFilePrefix?: string | undefined;
148
148
  routeFileIgnorePrefix?: string | undefined;
@@ -175,7 +175,7 @@ export declare const configSchema: z.ZodObject<{
175
175
  importRoutesUsingAbsolutePaths?: boolean | undefined;
176
176
  }>;
177
177
  export declare const getConfig: (inlineConfig: Partial<Config>, root: string) => {
178
- target: "react" | "solid";
178
+ target: "react" | "solid" | "vue";
179
179
  routeFileIgnorePrefix: string;
180
180
  routesDirectory: string;
181
181
  quoteStyle: "single" | "double";
@@ -9,7 +9,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.cjs';
9
9
  * ```
10
10
  */
11
11
  declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
12
- target: "react" | "solid";
12
+ target: "react" | "solid" | "vue";
13
13
  routeFileIgnorePrefix: string;
14
14
  routesDirectory: string;
15
15
  quoteStyle: "single" | "double";
@@ -58,7 +58,7 @@ declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
58
58
  * ```
59
59
  */
60
60
  declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
61
- target: "react" | "solid";
61
+ target: "react" | "solid" | "vue";
62
62
  routeFileIgnorePrefix: string;
63
63
  routesDirectory: string;
64
64
  quoteStyle: "single" | "double";
@@ -107,7 +107,7 @@ declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
107
107
  * ```
108
108
  */
109
109
  declare const TanStackRouterEsbuild: (options?: Partial<{
110
- target: "react" | "solid";
110
+ target: "react" | "solid" | "vue";
111
111
  routeFileIgnorePrefix: string;
112
112
  routesDirectory: string;
113
113
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const TanStackRouterEsbuild: (options?: Partial<{
147
147
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
148
148
  }> | undefined) => import('unplugin').EsbuildPlugin;
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
@@ -13,7 +13,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.cjs';
13
13
  * ```
14
14
  */
15
15
  declare const TanStackRouterGeneratorRspack: (options?: Partial<{
16
- target: "react" | "solid";
16
+ target: "react" | "solid" | "vue";
17
17
  routeFileIgnorePrefix: string;
18
18
  routesDirectory: string;
19
19
  quoteStyle: "single" | "double";
@@ -66,7 +66,7 @@ declare const TanStackRouterGeneratorRspack: (options?: Partial<{
66
66
  * ```
67
67
  */
68
68
  declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
69
- target: "react" | "solid";
69
+ target: "react" | "solid" | "vue";
70
70
  routeFileIgnorePrefix: string;
71
71
  routesDirectory: string;
72
72
  quoteStyle: "single" | "double";
@@ -119,7 +119,7 @@ declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
119
119
  * ```
120
120
  */
121
121
  declare const TanStackRouterRspack: (options?: Partial<{
122
- target: "react" | "solid";
122
+ target: "react" | "solid" | "vue";
123
123
  routeFileIgnorePrefix: string;
124
124
  routesDirectory: string;
125
125
  quoteStyle: "single" | "double";
@@ -159,7 +159,7 @@ declare const TanStackRouterRspack: (options?: Partial<{
159
159
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
160
160
  }> | undefined) => import('unplugin').RspackPluginInstance;
161
161
  declare const tanstackRouter: (options?: Partial<{
162
- target: "react" | "solid";
162
+ target: "react" | "solid" | "vue";
163
163
  routeFileIgnorePrefix: string;
164
164
  routesDirectory: string;
165
165
  quoteStyle: "single" | "double";
@@ -1,6 +1,6 @@
1
1
  import { configSchema, CodeSplittingOptions, Config, getConfig } from './core/config.cjs';
2
2
  declare const tanstackRouterAutoImport: (options?: Partial<{
3
- target: "react" | "solid";
3
+ target: "react" | "solid" | "vue";
4
4
  routeFileIgnorePrefix: string;
5
5
  routesDirectory: string;
6
6
  quoteStyle: "single" | "double";
@@ -49,7 +49,7 @@ declare const tanstackRouterAutoImport: (options?: Partial<{
49
49
  * ```
50
50
  */
51
51
  declare const tanstackRouterGenerator: (options?: Partial<{
52
- target: "react" | "solid";
52
+ target: "react" | "solid" | "vue";
53
53
  routeFileIgnorePrefix: string;
54
54
  routesDirectory: string;
55
55
  quoteStyle: "single" | "double";
@@ -98,7 +98,7 @@ declare const tanstackRouterGenerator: (options?: Partial<{
98
98
  * ```
99
99
  */
100
100
  declare const tanStackRouterCodeSplitter: (options?: Partial<{
101
- target: "react" | "solid";
101
+ target: "react" | "solid" | "vue";
102
102
  routeFileIgnorePrefix: string;
103
103
  routesDirectory: string;
104
104
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const tanStackRouterCodeSplitter: (options?: Partial<{
147
147
  * ```
148
148
  */
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
@@ -190,7 +190,7 @@ declare const tanstackRouter: (options?: Partial<{
190
190
  * @deprecated Use `tanstackRouter` instead.
191
191
  */
192
192
  declare const TanStackRouterVite: (options?: Partial<{
193
- target: "react" | "solid";
193
+ target: "react" | "solid" | "vue";
194
194
  routeFileIgnorePrefix: string;
195
195
  routesDirectory: string;
196
196
  quoteStyle: "single" | "double";
@@ -9,7 +9,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.cjs';
9
9
  * ```
10
10
  */
11
11
  declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
12
- target: "react" | "solid";
12
+ target: "react" | "solid" | "vue";
13
13
  routeFileIgnorePrefix: string;
14
14
  routesDirectory: string;
15
15
  quoteStyle: "single" | "double";
@@ -58,7 +58,7 @@ declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
58
58
  * ```
59
59
  */
60
60
  declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
61
- target: "react" | "solid";
61
+ target: "react" | "solid" | "vue";
62
62
  routeFileIgnorePrefix: string;
63
63
  routesDirectory: string;
64
64
  quoteStyle: "single" | "double";
@@ -107,7 +107,7 @@ declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
107
107
  * ```
108
108
  */
109
109
  declare const TanStackRouterWebpack: (options?: Partial<{
110
- target: "react" | "solid";
110
+ target: "react" | "solid" | "vue";
111
111
  routeFileIgnorePrefix: string;
112
112
  routesDirectory: string;
113
113
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const TanStackRouterWebpack: (options?: Partial<{
147
147
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
148
148
  }> | undefined) => import('unplugin').WebpackPluginInstance;
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
@@ -21,6 +21,16 @@ function getFrameworkOptions(framework) {
21
21
  }
22
22
  };
23
23
  break;
24
+ case "vue":
25
+ frameworkOptions = {
26
+ package: "@tanstack/vue-router",
27
+ idents: {
28
+ createFileRoute: "createFileRoute",
29
+ lazyFn: "lazyFn",
30
+ lazyRouteComponent: "lazyRouteComponent"
31
+ }
32
+ };
33
+ break;
24
34
  default:
25
35
  throw new Error(
26
36
  `[getFrameworkOptions] - Unsupported framework: ${framework}`
@@ -1 +1 @@
1
- {"version":3,"file":"framework-options.js","sources":["../../../../src/core/code-splitter/framework-options.ts"],"sourcesContent":["type FrameworkOptions = {\n package: string\n idents: {\n createFileRoute: string\n lazyFn: string\n lazyRouteComponent: string\n }\n}\n\nexport function getFrameworkOptions(framework: string): FrameworkOptions {\n let frameworkOptions: FrameworkOptions\n\n switch (framework) {\n case 'react':\n frameworkOptions = {\n package: '@tanstack/react-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'solid':\n frameworkOptions = {\n package: '@tanstack/solid-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n default:\n throw new Error(\n `[getFrameworkOptions] - Unsupported framework: ${framework}`,\n )\n }\n\n return frameworkOptions\n}\n"],"names":[],"mappings":"AASO,SAAS,oBAAoB,WAAqC;AACvE,MAAI;AAEJ,UAAQ,WAAA;AAAA,IACN,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF;AACE,YAAM,IAAI;AAAA,QACR,kDAAkD,SAAS;AAAA,MAAA;AAAA,EAC7D;AAGJ,SAAO;AACT;"}
1
+ {"version":3,"file":"framework-options.js","sources":["../../../../src/core/code-splitter/framework-options.ts"],"sourcesContent":["type FrameworkOptions = {\n package: string\n idents: {\n createFileRoute: string\n lazyFn: string\n lazyRouteComponent: string\n }\n}\n\nexport function getFrameworkOptions(framework: string): FrameworkOptions {\n let frameworkOptions: FrameworkOptions\n\n switch (framework) {\n case 'react':\n frameworkOptions = {\n package: '@tanstack/react-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'solid':\n frameworkOptions = {\n package: '@tanstack/solid-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n case 'vue':\n frameworkOptions = {\n package: '@tanstack/vue-router',\n idents: {\n createFileRoute: 'createFileRoute',\n lazyFn: 'lazyFn',\n lazyRouteComponent: 'lazyRouteComponent',\n },\n }\n break\n default:\n throw new Error(\n `[getFrameworkOptions] - Unsupported framework: ${framework}`,\n )\n }\n\n return frameworkOptions\n}\n"],"names":[],"mappings":"AASO,SAAS,oBAAoB,WAAqC;AACvE,MAAI;AAEJ,UAAQ,WAAA;AAAA,IACN,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF,KAAK;AACH,yBAAmB;AAAA,QACjB,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ;AAAA,UACR,oBAAoB;AAAA,QAAA;AAAA,MACtB;AAEF;AAAA,IACF;AACE,YAAM,IAAI;AAAA,QACR,kDAAkD,SAAS;AAAA,MAAA;AAAA,EAC7D;AAGJ,SAAO;AACT;"}
@@ -31,7 +31,7 @@ export type CodeSplittingOptions = {
31
31
  type FileRouteKeys = keyof (Parameters<CreateFileRoute<any, any, any, any, any>>[0] & {});
32
32
  export type DeletableNodes = FileRouteKeys | (string & {});
33
33
  export declare const configSchema: z.ZodObject<{
34
- target: z.ZodDefault<z.ZodOptional<z.ZodEnum<["react", "solid"]>>>;
34
+ target: z.ZodDefault<z.ZodOptional<z.ZodEnum<["react", "solid", "vue"]>>>;
35
35
  virtualRouteConfig: z.ZodOptional<z.ZodUnion<[z.ZodType<import('@tanstack/virtual-file-routes').VirtualRootRoute, z.ZodTypeDef, import('@tanstack/virtual-file-routes').VirtualRootRoute>, z.ZodString]>>;
36
36
  routeFilePrefix: z.ZodOptional<z.ZodString>;
37
37
  routeFileIgnorePrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -96,7 +96,7 @@ export declare const configSchema: z.ZodObject<{
96
96
  } | undefined;
97
97
  }>>;
98
98
  }, "strip", z.ZodTypeAny, {
99
- target: "react" | "solid";
99
+ target: "react" | "solid" | "vue";
100
100
  routeFileIgnorePrefix: string;
101
101
  routesDirectory: string;
102
102
  quoteStyle: "single" | "double";
@@ -142,7 +142,7 @@ export declare const configSchema: z.ZodObject<{
142
142
  environmentName?: string | undefined;
143
143
  } | undefined;
144
144
  } | undefined;
145
- target?: "react" | "solid" | undefined;
145
+ target?: "react" | "solid" | "vue" | undefined;
146
146
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
147
147
  routeFilePrefix?: string | undefined;
148
148
  routeFileIgnorePrefix?: string | undefined;
@@ -175,7 +175,7 @@ export declare const configSchema: z.ZodObject<{
175
175
  importRoutesUsingAbsolutePaths?: boolean | undefined;
176
176
  }>;
177
177
  export declare const getConfig: (inlineConfig: Partial<Config>, root: string) => {
178
- target: "react" | "solid";
178
+ target: "react" | "solid" | "vue";
179
179
  routeFileIgnorePrefix: string;
180
180
  routesDirectory: string;
181
181
  quoteStyle: "single" | "double";
@@ -9,7 +9,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.js';
9
9
  * ```
10
10
  */
11
11
  declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
12
- target: "react" | "solid";
12
+ target: "react" | "solid" | "vue";
13
13
  routeFileIgnorePrefix: string;
14
14
  routesDirectory: string;
15
15
  quoteStyle: "single" | "double";
@@ -58,7 +58,7 @@ declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
58
58
  * ```
59
59
  */
60
60
  declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
61
- target: "react" | "solid";
61
+ target: "react" | "solid" | "vue";
62
62
  routeFileIgnorePrefix: string;
63
63
  routesDirectory: string;
64
64
  quoteStyle: "single" | "double";
@@ -107,7 +107,7 @@ declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
107
107
  * ```
108
108
  */
109
109
  declare const TanStackRouterEsbuild: (options?: Partial<{
110
- target: "react" | "solid";
110
+ target: "react" | "solid" | "vue";
111
111
  routeFileIgnorePrefix: string;
112
112
  routesDirectory: string;
113
113
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const TanStackRouterEsbuild: (options?: Partial<{
147
147
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
148
148
  }> | undefined) => import('unplugin').EsbuildPlugin;
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
@@ -13,7 +13,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.js';
13
13
  * ```
14
14
  */
15
15
  declare const TanStackRouterGeneratorRspack: (options?: Partial<{
16
- target: "react" | "solid";
16
+ target: "react" | "solid" | "vue";
17
17
  routeFileIgnorePrefix: string;
18
18
  routesDirectory: string;
19
19
  quoteStyle: "single" | "double";
@@ -66,7 +66,7 @@ declare const TanStackRouterGeneratorRspack: (options?: Partial<{
66
66
  * ```
67
67
  */
68
68
  declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
69
- target: "react" | "solid";
69
+ target: "react" | "solid" | "vue";
70
70
  routeFileIgnorePrefix: string;
71
71
  routesDirectory: string;
72
72
  quoteStyle: "single" | "double";
@@ -119,7 +119,7 @@ declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
119
119
  * ```
120
120
  */
121
121
  declare const TanStackRouterRspack: (options?: Partial<{
122
- target: "react" | "solid";
122
+ target: "react" | "solid" | "vue";
123
123
  routeFileIgnorePrefix: string;
124
124
  routesDirectory: string;
125
125
  quoteStyle: "single" | "double";
@@ -159,7 +159,7 @@ declare const TanStackRouterRspack: (options?: Partial<{
159
159
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
160
160
  }> | undefined) => import('unplugin').RspackPluginInstance;
161
161
  declare const tanstackRouter: (options?: Partial<{
162
- target: "react" | "solid";
162
+ target: "react" | "solid" | "vue";
163
163
  routeFileIgnorePrefix: string;
164
164
  routesDirectory: string;
165
165
  quoteStyle: "single" | "double";
@@ -1,6 +1,6 @@
1
1
  import { configSchema, CodeSplittingOptions, Config, getConfig } from './core/config.js';
2
2
  declare const tanstackRouterAutoImport: (options?: Partial<{
3
- target: "react" | "solid";
3
+ target: "react" | "solid" | "vue";
4
4
  routeFileIgnorePrefix: string;
5
5
  routesDirectory: string;
6
6
  quoteStyle: "single" | "double";
@@ -49,7 +49,7 @@ declare const tanstackRouterAutoImport: (options?: Partial<{
49
49
  * ```
50
50
  */
51
51
  declare const tanstackRouterGenerator: (options?: Partial<{
52
- target: "react" | "solid";
52
+ target: "react" | "solid" | "vue";
53
53
  routeFileIgnorePrefix: string;
54
54
  routesDirectory: string;
55
55
  quoteStyle: "single" | "double";
@@ -98,7 +98,7 @@ declare const tanstackRouterGenerator: (options?: Partial<{
98
98
  * ```
99
99
  */
100
100
  declare const tanStackRouterCodeSplitter: (options?: Partial<{
101
- target: "react" | "solid";
101
+ target: "react" | "solid" | "vue";
102
102
  routeFileIgnorePrefix: string;
103
103
  routesDirectory: string;
104
104
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const tanStackRouterCodeSplitter: (options?: Partial<{
147
147
  * ```
148
148
  */
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
@@ -190,7 +190,7 @@ declare const tanstackRouter: (options?: Partial<{
190
190
  * @deprecated Use `tanstackRouter` instead.
191
191
  */
192
192
  declare const TanStackRouterVite: (options?: Partial<{
193
- target: "react" | "solid";
193
+ target: "react" | "solid" | "vue";
194
194
  routeFileIgnorePrefix: string;
195
195
  routesDirectory: string;
196
196
  quoteStyle: "single" | "double";
@@ -9,7 +9,7 @@ import { configSchema, CodeSplittingOptions, Config } from './core/config.js';
9
9
  * ```
10
10
  */
11
11
  declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
12
- target: "react" | "solid";
12
+ target: "react" | "solid" | "vue";
13
13
  routeFileIgnorePrefix: string;
14
14
  routesDirectory: string;
15
15
  quoteStyle: "single" | "double";
@@ -58,7 +58,7 @@ declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
58
58
  * ```
59
59
  */
60
60
  declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
61
- target: "react" | "solid";
61
+ target: "react" | "solid" | "vue";
62
62
  routeFileIgnorePrefix: string;
63
63
  routesDirectory: string;
64
64
  quoteStyle: "single" | "double";
@@ -107,7 +107,7 @@ declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
107
107
  * ```
108
108
  */
109
109
  declare const TanStackRouterWebpack: (options?: Partial<{
110
- target: "react" | "solid";
110
+ target: "react" | "solid" | "vue";
111
111
  routeFileIgnorePrefix: string;
112
112
  routesDirectory: string;
113
113
  quoteStyle: "single" | "double";
@@ -147,7 +147,7 @@ declare const TanStackRouterWebpack: (options?: Partial<{
147
147
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
148
148
  }> | undefined) => import('unplugin').WebpackPluginInstance;
149
149
  declare const tanstackRouter: (options?: Partial<{
150
- target: "react" | "solid";
150
+ target: "react" | "solid" | "vue";
151
151
  routeFileIgnorePrefix: string;
152
152
  routesDirectory: string;
153
153
  quoteStyle: "single" | "double";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tanstack/router-plugin",
3
- "version": "1.139.14",
3
+ "version": "1.140.0",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/TanStack/router.git",
9
+ "url": "git+https://github.com/TanStack/router.git",
10
10
  "directory": "packages/router-plugin"
11
11
  },
12
12
  "homepage": "https://tanstack.com/router",
@@ -97,10 +97,10 @@
97
97
  "chokidar": "^3.6.0",
98
98
  "unplugin": "^2.1.2",
99
99
  "zod": "^3.24.2",
100
- "@tanstack/router-core": "1.139.14",
101
- "@tanstack/router-generator": "1.139.14",
102
- "@tanstack/router-utils": "1.139.0",
103
- "@tanstack/virtual-file-routes": "1.139.0"
100
+ "@tanstack/router-core": "1.140.0",
101
+ "@tanstack/router-generator": "1.140.0",
102
+ "@tanstack/router-utils": "1.140.0",
103
+ "@tanstack/virtual-file-routes": "1.140.0"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@types/babel__core": "^7.20.5",
@@ -112,7 +112,7 @@
112
112
  "vite": ">=5.0.0 || >=6.0.0 || >=7.0.0",
113
113
  "vite-plugin-solid": "^2.11.10",
114
114
  "webpack": ">=5.92.0",
115
- "@tanstack/react-router": "^1.139.14"
115
+ "@tanstack/react-router": "^1.140.0"
116
116
  },
117
117
  "peerDependenciesMeta": {
118
118
  "@rsbuild/core": {
@@ -31,6 +31,16 @@ export function getFrameworkOptions(framework: string): FrameworkOptions {
31
31
  },
32
32
  }
33
33
  break
34
+ case 'vue':
35
+ frameworkOptions = {
36
+ package: '@tanstack/vue-router',
37
+ idents: {
38
+ createFileRoute: 'createFileRoute',
39
+ lazyFn: 'lazyFn',
40
+ lazyRouteComponent: 'lazyRouteComponent',
41
+ },
42
+ }
43
+ break
34
44
  default:
35
45
  throw new Error(
36
46
  `[getFrameworkOptions] - Unsupported framework: ${framework}`,