@tanstack/router-plugin 1.121.0-alpha.5 → 1.121.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.
- package/dist/cjs/core/config.d.cts +8 -4
- package/dist/cjs/core/route-hmr-statement.cjs +1 -1
- package/dist/cjs/core/route-hmr-statement.cjs.map +1 -1
- package/dist/cjs/core/router-generator-plugin.cjs +35 -47
- package/dist/cjs/core/router-generator-plugin.cjs.map +1 -1
- package/dist/cjs/esbuild.d.cts +8 -4
- package/dist/cjs/rspack.d.cts +8 -4
- package/dist/cjs/vite.d.cts +10 -5
- package/dist/cjs/webpack.d.cts +8 -4
- package/dist/esm/core/config.d.ts +8 -4
- package/dist/esm/core/route-hmr-statement.js +1 -1
- package/dist/esm/core/route-hmr-statement.js.map +1 -1
- package/dist/esm/core/router-generator-plugin.js +37 -49
- package/dist/esm/core/router-generator-plugin.js.map +1 -1
- package/dist/esm/esbuild.d.ts +8 -4
- package/dist/esm/rspack.d.ts +8 -4
- package/dist/esm/vite.d.ts +10 -5
- package/dist/esm/webpack.d.ts +8 -4
- package/package.json +11 -9
- package/src/core/route-hmr-statement.ts +1 -1
- package/src/core/router-generator-plugin.ts +39 -63
|
@@ -38,7 +38,6 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
38
38
|
disableTypes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
39
39
|
verboseFileRoutes: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
addExtensions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
-
disableManifestGeneration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
42
41
|
enableRouteTreeFormatting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
43
42
|
routeTreeFileFooter: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
43
|
autoCodeSplitting: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -59,6 +58,8 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
59
58
|
}, {
|
|
60
59
|
enableCodeSplitting?: boolean | undefined;
|
|
61
60
|
}>>;
|
|
61
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodType<import('@tanstack/router-generator').GeneratorPlugin, z.ZodTypeDef, import('@tanstack/router-generator').GeneratorPlugin>, "many">>;
|
|
62
|
+
tmpDir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
62
63
|
}>, {
|
|
63
64
|
enableRouteGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
64
65
|
codeSplittingOptions: z.ZodOptional<z.ZodType<CodeSplittingOptions, z.ZodTypeDef, CodeSplittingOptions>>;
|
|
@@ -75,9 +76,9 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
75
76
|
generatedRouteTree: string;
|
|
76
77
|
disableTypes: boolean;
|
|
77
78
|
addExtensions: boolean;
|
|
78
|
-
disableManifestGeneration: boolean;
|
|
79
79
|
enableRouteTreeFormatting: boolean;
|
|
80
80
|
routeTreeFileFooter: string[];
|
|
81
|
+
tmpDir: string;
|
|
81
82
|
enableRouteGeneration?: boolean | undefined;
|
|
82
83
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
83
84
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -93,6 +94,7 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
93
94
|
experimental?: {
|
|
94
95
|
enableCodeSplitting?: boolean | undefined;
|
|
95
96
|
} | undefined;
|
|
97
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
96
98
|
}, {
|
|
97
99
|
enableRouteGeneration?: boolean | undefined;
|
|
98
100
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
@@ -113,7 +115,6 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
113
115
|
disableTypes?: boolean | undefined;
|
|
114
116
|
verboseFileRoutes?: boolean | undefined;
|
|
115
117
|
addExtensions?: boolean | undefined;
|
|
116
|
-
disableManifestGeneration?: boolean | undefined;
|
|
117
118
|
enableRouteTreeFormatting?: boolean | undefined;
|
|
118
119
|
routeTreeFileFooter?: string[] | undefined;
|
|
119
120
|
autoCodeSplitting?: boolean | undefined;
|
|
@@ -124,6 +125,8 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
124
125
|
experimental?: {
|
|
125
126
|
enableCodeSplitting?: boolean | undefined;
|
|
126
127
|
} | undefined;
|
|
128
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
129
|
+
tmpDir?: string | undefined;
|
|
127
130
|
}>;
|
|
128
131
|
export declare const getConfig: (inlineConfig: Partial<Config>, root: string) => {
|
|
129
132
|
target: "react" | "solid";
|
|
@@ -138,9 +141,9 @@ export declare const getConfig: (inlineConfig: Partial<Config>, root: string) =>
|
|
|
138
141
|
generatedRouteTree: string;
|
|
139
142
|
disableTypes: boolean;
|
|
140
143
|
addExtensions: boolean;
|
|
141
|
-
disableManifestGeneration: boolean;
|
|
142
144
|
enableRouteTreeFormatting: boolean;
|
|
143
145
|
routeTreeFileFooter: string[];
|
|
146
|
+
tmpDir: string;
|
|
144
147
|
enableRouteGeneration?: boolean | undefined;
|
|
145
148
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
146
149
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -156,6 +159,7 @@ export declare const getConfig: (inlineConfig: Partial<Config>, root: string) =>
|
|
|
156
159
|
experimental?: {
|
|
157
160
|
enableCodeSplitting?: boolean | undefined;
|
|
158
161
|
} | undefined;
|
|
162
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
159
163
|
};
|
|
160
164
|
export type Config = z.infer<typeof configSchema>;
|
|
161
165
|
export type ConfigInput = z.input<typeof configSchema>;
|
|
@@ -22,7 +22,7 @@ const routeHmrStatement = template__namespace.statement(
|
|
|
22
22
|
`
|
|
23
23
|
if (import.meta.hot) {
|
|
24
24
|
import.meta.hot.accept((newModule) => {
|
|
25
|
-
if (newModule.Route && typeof newModule.Route.clone === 'function') {
|
|
25
|
+
if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') {
|
|
26
26
|
newModule.Route.clone(Route)
|
|
27
27
|
}
|
|
28
28
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-hmr-statement.cjs","sources":["../../../src/core/route-hmr-statement.ts"],"sourcesContent":["import * as template from '@babel/template'\n\nexport const routeHmrStatement = template.statement(\n `\nif (import.meta.hot) {\n import.meta.hot.accept((newModule) => {\n if (newModule.Route && typeof newModule.Route.clone === 'function') {\n newModule.Route.clone(Route)\n }\n })\n}\n`,\n)()\n"],"names":["template"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEO,MAAM,oBAAoBA,oBAAS;AAAA,EACxC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASF,EAAE;;"}
|
|
1
|
+
{"version":3,"file":"route-hmr-statement.cjs","sources":["../../../src/core/route-hmr-statement.ts"],"sourcesContent":["import * as template from '@babel/template'\n\nexport const routeHmrStatement = template.statement(\n `\nif (import.meta.hot) {\n import.meta.hot.accept((newModule) => {\n if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') {\n newModule.Route.clone(Route)\n }\n })\n}\n`,\n)()\n"],"names":["template"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEO,MAAM,oBAAoBA,oBAAS;AAAA,EACxC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASF,EAAE;;"}
|
|
@@ -25,87 +25,79 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
25
25
|
const node_path = require("node:path");
|
|
26
26
|
const routerGenerator = require("@tanstack/router-generator");
|
|
27
27
|
const config = require("./config.cjs");
|
|
28
|
-
let lock = false;
|
|
29
|
-
const checkLock = () => lock;
|
|
30
|
-
const setLock = (bool) => {
|
|
31
|
-
lock = bool;
|
|
32
|
-
};
|
|
33
28
|
const PLUGIN_NAME = "unplugin:router-generator";
|
|
34
29
|
const unpluginRouterGeneratorFactory = (options = {}) => {
|
|
35
|
-
|
|
30
|
+
const ROOT = process.cwd();
|
|
36
31
|
let userConfig = options;
|
|
32
|
+
let generator;
|
|
33
|
+
const routeGenerationDisabled = () => userConfig.enableRouteGeneration === false;
|
|
37
34
|
const getRoutesDirectoryPath = () => {
|
|
38
35
|
return node_path.isAbsolute(userConfig.routesDirectory) ? userConfig.routesDirectory : node_path.join(ROOT, userConfig.routesDirectory);
|
|
39
36
|
};
|
|
37
|
+
const initConfigAndGenerator = () => {
|
|
38
|
+
userConfig = config.getConfig(options, ROOT);
|
|
39
|
+
generator = new routerGenerator.Generator({
|
|
40
|
+
config: userConfig,
|
|
41
|
+
root: ROOT
|
|
42
|
+
});
|
|
43
|
+
};
|
|
40
44
|
const generate = async () => {
|
|
41
|
-
if (
|
|
45
|
+
if (routeGenerationDisabled()) {
|
|
42
46
|
return;
|
|
43
47
|
}
|
|
44
|
-
setLock(true);
|
|
45
48
|
try {
|
|
46
|
-
await
|
|
47
|
-
} catch (
|
|
48
|
-
console.error(
|
|
49
|
-
console.info();
|
|
50
|
-
} finally {
|
|
51
|
-
setLock(false);
|
|
49
|
+
await generator.run();
|
|
50
|
+
} catch (e) {
|
|
51
|
+
console.error(e);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
const handleFile = async (file, event) => {
|
|
55
55
|
const filePath = node_path.normalize(file);
|
|
56
56
|
if (filePath === routerGenerator.resolveConfigPath({ configDirectory: ROOT })) {
|
|
57
|
-
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (event === "update" && filePath === node_path.resolve(userConfig.generatedRouteTree)) {
|
|
57
|
+
initConfigAndGenerator();
|
|
61
58
|
return;
|
|
62
59
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
const run = async (cb) => {
|
|
69
|
-
if (userConfig.enableRouteGeneration ?? true) {
|
|
70
|
-
await cb();
|
|
60
|
+
try {
|
|
61
|
+
await generator.run({ path: filePath, type: event });
|
|
62
|
+
} catch (e) {
|
|
63
|
+
console.error(e);
|
|
71
64
|
}
|
|
72
65
|
};
|
|
73
66
|
return {
|
|
74
67
|
name: "router-generator-plugin",
|
|
68
|
+
enforce: "pre",
|
|
75
69
|
async watchChange(id, { event }) {
|
|
76
|
-
|
|
70
|
+
if (!routeGenerationDisabled()) {
|
|
77
71
|
await handleFile(id, event);
|
|
78
|
-
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
async buildStart() {
|
|
75
|
+
await generate();
|
|
79
76
|
},
|
|
80
77
|
vite: {
|
|
81
|
-
configResolved(
|
|
82
|
-
|
|
83
|
-
userConfig = config.getConfig(options, ROOT);
|
|
78
|
+
configResolved() {
|
|
79
|
+
initConfigAndGenerator();
|
|
84
80
|
},
|
|
85
81
|
async buildStart() {
|
|
86
82
|
if (this.environment.config.consumer === "server") {
|
|
87
83
|
return;
|
|
88
84
|
}
|
|
89
|
-
await
|
|
85
|
+
await generate();
|
|
90
86
|
},
|
|
91
87
|
sharedDuringBuild: true
|
|
92
88
|
},
|
|
93
89
|
rspack(compiler) {
|
|
94
|
-
|
|
90
|
+
initConfigAndGenerator();
|
|
95
91
|
let handle = null;
|
|
96
|
-
compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME,
|
|
97
|
-
await run(generate);
|
|
98
|
-
});
|
|
92
|
+
compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME, generate);
|
|
99
93
|
compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, async () => {
|
|
100
94
|
if (handle) {
|
|
101
95
|
return;
|
|
102
96
|
}
|
|
103
97
|
const routesDirectoryPath = getRoutesDirectoryPath();
|
|
104
98
|
const chokidar = await import("chokidar");
|
|
105
|
-
handle = chokidar.watch(routesDirectoryPath, { ignoreInitial: true }).on("add",
|
|
106
|
-
|
|
107
|
-
});
|
|
108
|
-
await run(generate);
|
|
99
|
+
handle = chokidar.watch(routesDirectoryPath, { ignoreInitial: true }).on("add", generate);
|
|
100
|
+
await generate();
|
|
109
101
|
});
|
|
110
102
|
compiler.hooks.watchClose.tap(PLUGIN_NAME, async () => {
|
|
111
103
|
if (handle) {
|
|
@@ -116,19 +108,15 @@ const unpluginRouterGeneratorFactory = (options = {}) => {
|
|
|
116
108
|
webpack(compiler) {
|
|
117
109
|
userConfig = config.getConfig(options, ROOT);
|
|
118
110
|
let handle = null;
|
|
119
|
-
compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME,
|
|
120
|
-
await run(generate);
|
|
121
|
-
});
|
|
111
|
+
compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME, generate);
|
|
122
112
|
compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, async () => {
|
|
123
113
|
if (handle) {
|
|
124
114
|
return;
|
|
125
115
|
}
|
|
126
116
|
const routesDirectoryPath = getRoutesDirectoryPath();
|
|
127
117
|
const chokidar = await import("chokidar");
|
|
128
|
-
handle = chokidar.watch(routesDirectoryPath, { ignoreInitial: true }).on("add",
|
|
129
|
-
|
|
130
|
-
});
|
|
131
|
-
await run(generate);
|
|
118
|
+
handle = chokidar.watch(routesDirectoryPath, { ignoreInitial: true }).on("add", generate);
|
|
119
|
+
await generate();
|
|
132
120
|
});
|
|
133
121
|
compiler.hooks.watchClose.tap(PLUGIN_NAME, async () => {
|
|
134
122
|
if (handle) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-generator-plugin.cjs","sources":["../../../src/core/router-generator-plugin.ts"],"sourcesContent":["import { isAbsolute, join, normalize
|
|
1
|
+
{"version":3,"file":"router-generator-plugin.cjs","sources":["../../../src/core/router-generator-plugin.ts"],"sourcesContent":["import { isAbsolute, join, normalize } from 'node:path'\nimport { Generator, resolveConfigPath } from '@tanstack/router-generator'\n\nimport { getConfig } from './config'\nimport type { FSWatcher } from 'chokidar'\nimport type { UnpluginFactory } from 'unplugin'\nimport type { Config } from './config'\n\nconst PLUGIN_NAME = 'unplugin:router-generator'\n\nexport const unpluginRouterGeneratorFactory: UnpluginFactory<\n Partial<Config> | undefined\n> = (options = {}) => {\n const ROOT: string = process.cwd()\n let userConfig = options as Config\n let generator: Generator\n\n const routeGenerationDisabled = () =>\n userConfig.enableRouteGeneration === false\n const getRoutesDirectoryPath = () => {\n return isAbsolute(userConfig.routesDirectory)\n ? userConfig.routesDirectory\n : join(ROOT, userConfig.routesDirectory)\n }\n\n const initConfigAndGenerator = () => {\n userConfig = getConfig(options, ROOT)\n generator = new Generator({\n config: userConfig,\n root: ROOT,\n })\n }\n\n const generate = async () => {\n if (routeGenerationDisabled()) {\n return\n }\n try {\n await generator.run()\n } catch (e) {\n console.error(e)\n }\n }\n\n const handleFile = async (\n file: string,\n event: 'create' | 'update' | 'delete',\n ) => {\n const filePath = normalize(file)\n\n if (filePath === resolveConfigPath({ configDirectory: ROOT })) {\n initConfigAndGenerator()\n return\n }\n try {\n await generator.run({ path: filePath, type: event })\n } catch (e) {\n console.error(e)\n }\n }\n\n return {\n name: 'router-generator-plugin',\n enforce: 'pre',\n async watchChange(id, { event }) {\n if (!routeGenerationDisabled()) {\n await handleFile(id, event)\n }\n },\n async buildStart() {\n await generate()\n },\n vite: {\n configResolved() {\n initConfigAndGenerator()\n },\n async buildStart() {\n if (this.environment.config.consumer === 'server') {\n // When building in environment mode, we only need to generate routes\n // for the client environment\n return\n }\n await generate()\n },\n sharedDuringBuild: true,\n },\n rspack(compiler) {\n initConfigAndGenerator()\n\n let handle: FSWatcher | null = null\n\n compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME, generate)\n\n compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, async () => {\n if (handle) {\n return\n }\n\n // rspack watcher doesn't register newly created files\n const routesDirectoryPath = getRoutesDirectoryPath()\n const chokidar = await import('chokidar')\n handle = chokidar\n .watch(routesDirectoryPath, { ignoreInitial: true })\n .on('add', generate)\n\n await generate()\n })\n\n compiler.hooks.watchClose.tap(PLUGIN_NAME, async () => {\n if (handle) {\n await handle.close()\n }\n })\n },\n webpack(compiler) {\n userConfig = getConfig(options, ROOT)\n\n let handle: FSWatcher | null = null\n\n compiler.hooks.beforeRun.tapPromise(PLUGIN_NAME, generate)\n\n compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, async () => {\n if (handle) {\n return\n }\n\n // webpack watcher doesn't register newly created files\n const routesDirectoryPath = getRoutesDirectoryPath()\n const chokidar = await import('chokidar')\n handle = chokidar\n .watch(routesDirectoryPath, { ignoreInitial: true })\n .on('add', generate)\n\n await generate()\n })\n\n compiler.hooks.watchClose.tap(PLUGIN_NAME, async () => {\n if (handle) {\n await handle.close()\n }\n })\n\n compiler.hooks.done.tap(PLUGIN_NAME, () => {\n console.info('✅ ' + PLUGIN_NAME + ': route-tree generation done')\n })\n },\n }\n}\n"],"names":["isAbsolute","join","getConfig","Generator","normalize","resolveConfigPath"],"mappings":"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"}
|
package/dist/cjs/esbuild.d.cts
CHANGED
|
@@ -21,9 +21,9 @@ declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
|
|
|
21
21
|
generatedRouteTree: string;
|
|
22
22
|
disableTypes: boolean;
|
|
23
23
|
addExtensions: boolean;
|
|
24
|
-
disableManifestGeneration: boolean;
|
|
25
24
|
enableRouteTreeFormatting: boolean;
|
|
26
25
|
routeTreeFileFooter: string[];
|
|
26
|
+
tmpDir: string;
|
|
27
27
|
enableRouteGeneration?: boolean | undefined;
|
|
28
28
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
29
29
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -39,6 +39,7 @@ declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
|
|
|
39
39
|
experimental?: {
|
|
40
40
|
enableCodeSplitting?: boolean | undefined;
|
|
41
41
|
} | undefined;
|
|
42
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
42
43
|
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
43
44
|
/**
|
|
44
45
|
* @example
|
|
@@ -62,9 +63,9 @@ declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
|
|
|
62
63
|
generatedRouteTree: string;
|
|
63
64
|
disableTypes: boolean;
|
|
64
65
|
addExtensions: boolean;
|
|
65
|
-
disableManifestGeneration: boolean;
|
|
66
66
|
enableRouteTreeFormatting: boolean;
|
|
67
67
|
routeTreeFileFooter: string[];
|
|
68
|
+
tmpDir: string;
|
|
68
69
|
enableRouteGeneration?: boolean | undefined;
|
|
69
70
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
70
71
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -80,6 +81,7 @@ declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
|
|
|
80
81
|
experimental?: {
|
|
81
82
|
enableCodeSplitting?: boolean | undefined;
|
|
82
83
|
} | undefined;
|
|
84
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
83
85
|
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
84
86
|
/**
|
|
85
87
|
* @example
|
|
@@ -103,9 +105,9 @@ declare const TanStackRouterEsbuild: (options?: Partial<{
|
|
|
103
105
|
generatedRouteTree: string;
|
|
104
106
|
disableTypes: boolean;
|
|
105
107
|
addExtensions: boolean;
|
|
106
|
-
disableManifestGeneration: boolean;
|
|
107
108
|
enableRouteTreeFormatting: boolean;
|
|
108
109
|
routeTreeFileFooter: string[];
|
|
110
|
+
tmpDir: string;
|
|
109
111
|
enableRouteGeneration?: boolean | undefined;
|
|
110
112
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
111
113
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -121,6 +123,7 @@ declare const TanStackRouterEsbuild: (options?: Partial<{
|
|
|
121
123
|
experimental?: {
|
|
122
124
|
enableCodeSplitting?: boolean | undefined;
|
|
123
125
|
} | undefined;
|
|
126
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
124
127
|
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
125
128
|
declare const tanstackRouter: (options?: Partial<{
|
|
126
129
|
target: "react" | "solid";
|
|
@@ -135,9 +138,9 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
135
138
|
generatedRouteTree: string;
|
|
136
139
|
disableTypes: boolean;
|
|
137
140
|
addExtensions: boolean;
|
|
138
|
-
disableManifestGeneration: boolean;
|
|
139
141
|
enableRouteTreeFormatting: boolean;
|
|
140
142
|
routeTreeFileFooter: string[];
|
|
143
|
+
tmpDir: string;
|
|
141
144
|
enableRouteGeneration?: boolean | undefined;
|
|
142
145
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
143
146
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -153,6 +156,7 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
153
156
|
experimental?: {
|
|
154
157
|
enableCodeSplitting?: boolean | undefined;
|
|
155
158
|
} | undefined;
|
|
159
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
156
160
|
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
157
161
|
export default TanStackRouterEsbuild;
|
|
158
162
|
export { configSchema, TanStackRouterGeneratorEsbuild, TanStackRouterCodeSplitterEsbuild, TanStackRouterEsbuild, tanstackRouter, };
|
package/dist/cjs/rspack.d.cts
CHANGED
|
@@ -25,9 +25,9 @@ declare const TanStackRouterGeneratorRspack: (options?: Partial<{
|
|
|
25
25
|
generatedRouteTree: string;
|
|
26
26
|
disableTypes: boolean;
|
|
27
27
|
addExtensions: boolean;
|
|
28
|
-
disableManifestGeneration: boolean;
|
|
29
28
|
enableRouteTreeFormatting: boolean;
|
|
30
29
|
routeTreeFileFooter: string[];
|
|
30
|
+
tmpDir: string;
|
|
31
31
|
enableRouteGeneration?: boolean | undefined;
|
|
32
32
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
33
33
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -43,6 +43,7 @@ declare const TanStackRouterGeneratorRspack: (options?: Partial<{
|
|
|
43
43
|
experimental?: {
|
|
44
44
|
enableCodeSplitting?: boolean | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
46
47
|
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
47
48
|
/**
|
|
48
49
|
* @example
|
|
@@ -70,9 +71,9 @@ declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
|
|
|
70
71
|
generatedRouteTree: string;
|
|
71
72
|
disableTypes: boolean;
|
|
72
73
|
addExtensions: boolean;
|
|
73
|
-
disableManifestGeneration: boolean;
|
|
74
74
|
enableRouteTreeFormatting: boolean;
|
|
75
75
|
routeTreeFileFooter: string[];
|
|
76
|
+
tmpDir: string;
|
|
76
77
|
enableRouteGeneration?: boolean | undefined;
|
|
77
78
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
78
79
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -88,6 +89,7 @@ declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
|
|
|
88
89
|
experimental?: {
|
|
89
90
|
enableCodeSplitting?: boolean | undefined;
|
|
90
91
|
} | undefined;
|
|
92
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
91
93
|
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
92
94
|
/**
|
|
93
95
|
* @example
|
|
@@ -115,9 +117,9 @@ declare const TanStackRouterRspack: (options?: Partial<{
|
|
|
115
117
|
generatedRouteTree: string;
|
|
116
118
|
disableTypes: boolean;
|
|
117
119
|
addExtensions: boolean;
|
|
118
|
-
disableManifestGeneration: boolean;
|
|
119
120
|
enableRouteTreeFormatting: boolean;
|
|
120
121
|
routeTreeFileFooter: string[];
|
|
122
|
+
tmpDir: string;
|
|
121
123
|
enableRouteGeneration?: boolean | undefined;
|
|
122
124
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
123
125
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -133,6 +135,7 @@ declare const TanStackRouterRspack: (options?: Partial<{
|
|
|
133
135
|
experimental?: {
|
|
134
136
|
enableCodeSplitting?: boolean | undefined;
|
|
135
137
|
} | undefined;
|
|
138
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
136
139
|
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
137
140
|
declare const tanstackRouter: (options?: Partial<{
|
|
138
141
|
target: "react" | "solid";
|
|
@@ -147,9 +150,9 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
147
150
|
generatedRouteTree: string;
|
|
148
151
|
disableTypes: boolean;
|
|
149
152
|
addExtensions: boolean;
|
|
150
|
-
disableManifestGeneration: boolean;
|
|
151
153
|
enableRouteTreeFormatting: boolean;
|
|
152
154
|
routeTreeFileFooter: string[];
|
|
155
|
+
tmpDir: string;
|
|
153
156
|
enableRouteGeneration?: boolean | undefined;
|
|
154
157
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
155
158
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -165,6 +168,7 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
165
168
|
experimental?: {
|
|
166
169
|
enableCodeSplitting?: boolean | undefined;
|
|
167
170
|
} | undefined;
|
|
171
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
168
172
|
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
169
173
|
export default TanStackRouterRspack;
|
|
170
174
|
export { configSchema, TanStackRouterRspack, TanStackRouterGeneratorRspack, TanStackRouterCodeSplitterRspack, tanstackRouter, };
|
package/dist/cjs/vite.d.cts
CHANGED
|
@@ -12,9 +12,9 @@ declare const tanstackRouterAutoImport: (options?: Partial<{
|
|
|
12
12
|
generatedRouteTree: string;
|
|
13
13
|
disableTypes: boolean;
|
|
14
14
|
addExtensions: boolean;
|
|
15
|
-
disableManifestGeneration: boolean;
|
|
16
15
|
enableRouteTreeFormatting: boolean;
|
|
17
16
|
routeTreeFileFooter: string[];
|
|
17
|
+
tmpDir: string;
|
|
18
18
|
enableRouteGeneration?: boolean | undefined;
|
|
19
19
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
20
20
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -30,6 +30,7 @@ declare const tanstackRouterAutoImport: (options?: Partial<{
|
|
|
30
30
|
experimental?: {
|
|
31
31
|
enableCodeSplitting?: boolean | undefined;
|
|
32
32
|
} | undefined;
|
|
33
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
33
34
|
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
34
35
|
/**
|
|
35
36
|
* @example
|
|
@@ -53,9 +54,9 @@ declare const tanstackRouterGenerator: (options?: Partial<{
|
|
|
53
54
|
generatedRouteTree: string;
|
|
54
55
|
disableTypes: boolean;
|
|
55
56
|
addExtensions: boolean;
|
|
56
|
-
disableManifestGeneration: boolean;
|
|
57
57
|
enableRouteTreeFormatting: boolean;
|
|
58
58
|
routeTreeFileFooter: string[];
|
|
59
|
+
tmpDir: string;
|
|
59
60
|
enableRouteGeneration?: boolean | undefined;
|
|
60
61
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
61
62
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -71,6 +72,7 @@ declare const tanstackRouterGenerator: (options?: Partial<{
|
|
|
71
72
|
experimental?: {
|
|
72
73
|
enableCodeSplitting?: boolean | undefined;
|
|
73
74
|
} | undefined;
|
|
75
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
74
76
|
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
75
77
|
/**
|
|
76
78
|
* @example
|
|
@@ -94,9 +96,9 @@ declare const tanStackRouterCodeSplitter: (options?: Partial<{
|
|
|
94
96
|
generatedRouteTree: string;
|
|
95
97
|
disableTypes: boolean;
|
|
96
98
|
addExtensions: boolean;
|
|
97
|
-
disableManifestGeneration: boolean;
|
|
98
99
|
enableRouteTreeFormatting: boolean;
|
|
99
100
|
routeTreeFileFooter: string[];
|
|
101
|
+
tmpDir: string;
|
|
100
102
|
enableRouteGeneration?: boolean | undefined;
|
|
101
103
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
102
104
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -112,6 +114,7 @@ declare const tanStackRouterCodeSplitter: (options?: Partial<{
|
|
|
112
114
|
experimental?: {
|
|
113
115
|
enableCodeSplitting?: boolean | undefined;
|
|
114
116
|
} | undefined;
|
|
117
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
115
118
|
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
116
119
|
/**
|
|
117
120
|
* @example
|
|
@@ -135,9 +138,9 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
135
138
|
generatedRouteTree: string;
|
|
136
139
|
disableTypes: boolean;
|
|
137
140
|
addExtensions: boolean;
|
|
138
|
-
disableManifestGeneration: boolean;
|
|
139
141
|
enableRouteTreeFormatting: boolean;
|
|
140
142
|
routeTreeFileFooter: string[];
|
|
143
|
+
tmpDir: string;
|
|
141
144
|
enableRouteGeneration?: boolean | undefined;
|
|
142
145
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
143
146
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -153,6 +156,7 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
153
156
|
experimental?: {
|
|
154
157
|
enableCodeSplitting?: boolean | undefined;
|
|
155
158
|
} | undefined;
|
|
159
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
156
160
|
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
157
161
|
/**
|
|
158
162
|
* @deprecated Use `tanstackRouter` instead.
|
|
@@ -170,9 +174,9 @@ declare const TanStackRouterVite: (options?: Partial<{
|
|
|
170
174
|
generatedRouteTree: string;
|
|
171
175
|
disableTypes: boolean;
|
|
172
176
|
addExtensions: boolean;
|
|
173
|
-
disableManifestGeneration: boolean;
|
|
174
177
|
enableRouteTreeFormatting: boolean;
|
|
175
178
|
routeTreeFileFooter: string[];
|
|
179
|
+
tmpDir: string;
|
|
176
180
|
enableRouteGeneration?: boolean | undefined;
|
|
177
181
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
178
182
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -188,6 +192,7 @@ declare const TanStackRouterVite: (options?: Partial<{
|
|
|
188
192
|
experimental?: {
|
|
189
193
|
enableCodeSplitting?: boolean | undefined;
|
|
190
194
|
} | undefined;
|
|
195
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
191
196
|
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
192
197
|
export default tanstackRouter;
|
|
193
198
|
export { configSchema, tanstackRouterAutoImport, tanStackRouterCodeSplitter, tanstackRouterGenerator, TanStackRouterVite, tanstackRouter, };
|
package/dist/cjs/webpack.d.cts
CHANGED
|
@@ -21,9 +21,9 @@ declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
|
|
|
21
21
|
generatedRouteTree: string;
|
|
22
22
|
disableTypes: boolean;
|
|
23
23
|
addExtensions: boolean;
|
|
24
|
-
disableManifestGeneration: boolean;
|
|
25
24
|
enableRouteTreeFormatting: boolean;
|
|
26
25
|
routeTreeFileFooter: string[];
|
|
26
|
+
tmpDir: string;
|
|
27
27
|
enableRouteGeneration?: boolean | undefined;
|
|
28
28
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
29
29
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -39,6 +39,7 @@ declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
|
|
|
39
39
|
experimental?: {
|
|
40
40
|
enableCodeSplitting?: boolean | undefined;
|
|
41
41
|
} | undefined;
|
|
42
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
42
43
|
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
43
44
|
/**
|
|
44
45
|
* @example
|
|
@@ -62,9 +63,9 @@ declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
|
|
|
62
63
|
generatedRouteTree: string;
|
|
63
64
|
disableTypes: boolean;
|
|
64
65
|
addExtensions: boolean;
|
|
65
|
-
disableManifestGeneration: boolean;
|
|
66
66
|
enableRouteTreeFormatting: boolean;
|
|
67
67
|
routeTreeFileFooter: string[];
|
|
68
|
+
tmpDir: string;
|
|
68
69
|
enableRouteGeneration?: boolean | undefined;
|
|
69
70
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
70
71
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -80,6 +81,7 @@ declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
|
|
|
80
81
|
experimental?: {
|
|
81
82
|
enableCodeSplitting?: boolean | undefined;
|
|
82
83
|
} | undefined;
|
|
84
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
83
85
|
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
84
86
|
/**
|
|
85
87
|
* @example
|
|
@@ -103,9 +105,9 @@ declare const TanStackRouterWebpack: (options?: Partial<{
|
|
|
103
105
|
generatedRouteTree: string;
|
|
104
106
|
disableTypes: boolean;
|
|
105
107
|
addExtensions: boolean;
|
|
106
|
-
disableManifestGeneration: boolean;
|
|
107
108
|
enableRouteTreeFormatting: boolean;
|
|
108
109
|
routeTreeFileFooter: string[];
|
|
110
|
+
tmpDir: string;
|
|
109
111
|
enableRouteGeneration?: boolean | undefined;
|
|
110
112
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
111
113
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -121,6 +123,7 @@ declare const TanStackRouterWebpack: (options?: Partial<{
|
|
|
121
123
|
experimental?: {
|
|
122
124
|
enableCodeSplitting?: boolean | undefined;
|
|
123
125
|
} | undefined;
|
|
126
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
124
127
|
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
125
128
|
declare const tanstackRouter: (options?: Partial<{
|
|
126
129
|
target: "react" | "solid";
|
|
@@ -135,9 +138,9 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
135
138
|
generatedRouteTree: string;
|
|
136
139
|
disableTypes: boolean;
|
|
137
140
|
addExtensions: boolean;
|
|
138
|
-
disableManifestGeneration: boolean;
|
|
139
141
|
enableRouteTreeFormatting: boolean;
|
|
140
142
|
routeTreeFileFooter: string[];
|
|
143
|
+
tmpDir: string;
|
|
141
144
|
enableRouteGeneration?: boolean | undefined;
|
|
142
145
|
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
143
146
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -153,6 +156,7 @@ declare const tanstackRouter: (options?: Partial<{
|
|
|
153
156
|
experimental?: {
|
|
154
157
|
enableCodeSplitting?: boolean | undefined;
|
|
155
158
|
} | undefined;
|
|
159
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
156
160
|
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
157
161
|
export default TanStackRouterWebpack;
|
|
158
162
|
export { configSchema, TanStackRouterWebpack, TanStackRouterGeneratorWebpack, TanStackRouterCodeSplitterWebpack, tanstackRouter, };
|
|
@@ -38,7 +38,6 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
38
38
|
disableTypes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
39
39
|
verboseFileRoutes: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
addExtensions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
-
disableManifestGeneration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
42
41
|
enableRouteTreeFormatting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
43
42
|
routeTreeFileFooter: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
43
|
autoCodeSplitting: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -59,6 +58,8 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
59
58
|
}, {
|
|
60
59
|
enableCodeSplitting?: boolean | undefined;
|
|
61
60
|
}>>;
|
|
61
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodType<import('@tanstack/router-generator').GeneratorPlugin, z.ZodTypeDef, import('@tanstack/router-generator').GeneratorPlugin>, "many">>;
|
|
62
|
+
tmpDir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
62
63
|
}>, {
|
|
63
64
|
enableRouteGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
64
65
|
codeSplittingOptions: z.ZodOptional<z.ZodType<CodeSplittingOptions, z.ZodTypeDef, CodeSplittingOptions>>;
|
|
@@ -75,9 +76,9 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
75
76
|
generatedRouteTree: string;
|
|
76
77
|
disableTypes: boolean;
|
|
77
78
|
addExtensions: boolean;
|
|
78
|
-
disableManifestGeneration: boolean;
|
|
79
79
|
enableRouteTreeFormatting: boolean;
|
|
80
80
|
routeTreeFileFooter: string[];
|
|
81
|
+
tmpDir: string;
|
|
81
82
|
enableRouteGeneration?: boolean | undefined;
|
|
82
83
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
83
84
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -93,6 +94,7 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
93
94
|
experimental?: {
|
|
94
95
|
enableCodeSplitting?: boolean | undefined;
|
|
95
96
|
} | undefined;
|
|
97
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
96
98
|
}, {
|
|
97
99
|
enableRouteGeneration?: boolean | undefined;
|
|
98
100
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
@@ -113,7 +115,6 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
113
115
|
disableTypes?: boolean | undefined;
|
|
114
116
|
verboseFileRoutes?: boolean | undefined;
|
|
115
117
|
addExtensions?: boolean | undefined;
|
|
116
|
-
disableManifestGeneration?: boolean | undefined;
|
|
117
118
|
enableRouteTreeFormatting?: boolean | undefined;
|
|
118
119
|
routeTreeFileFooter?: string[] | undefined;
|
|
119
120
|
autoCodeSplitting?: boolean | undefined;
|
|
@@ -124,6 +125,8 @@ export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
124
125
|
experimental?: {
|
|
125
126
|
enableCodeSplitting?: boolean | undefined;
|
|
126
127
|
} | undefined;
|
|
128
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
129
|
+
tmpDir?: string | undefined;
|
|
127
130
|
}>;
|
|
128
131
|
export declare const getConfig: (inlineConfig: Partial<Config>, root: string) => {
|
|
129
132
|
target: "react" | "solid";
|
|
@@ -138,9 +141,9 @@ export declare const getConfig: (inlineConfig: Partial<Config>, root: string) =>
|
|
|
138
141
|
generatedRouteTree: string;
|
|
139
142
|
disableTypes: boolean;
|
|
140
143
|
addExtensions: boolean;
|
|
141
|
-
disableManifestGeneration: boolean;
|
|
142
144
|
enableRouteTreeFormatting: boolean;
|
|
143
145
|
routeTreeFileFooter: string[];
|
|
146
|
+
tmpDir: string;
|
|
144
147
|
enableRouteGeneration?: boolean | undefined;
|
|
145
148
|
codeSplittingOptions?: CodeSplittingOptions | undefined;
|
|
146
149
|
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
@@ -156,6 +159,7 @@ export declare const getConfig: (inlineConfig: Partial<Config>, root: string) =>
|
|
|
156
159
|
experimental?: {
|
|
157
160
|
enableCodeSplitting?: boolean | undefined;
|
|
158
161
|
} | undefined;
|
|
162
|
+
plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
|
|
159
163
|
};
|
|
160
164
|
export type Config = z.infer<typeof configSchema>;
|
|
161
165
|
export type ConfigInput = z.input<typeof configSchema>;
|