@tanstack/router-plugin 1.20.3-alpha.1
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/LICENSE +21 -0
- package/README.md +13 -0
- package/dist/cjs/core/code-splitter/compilers.cjs +755 -0
- package/dist/cjs/core/code-splitter/compilers.cjs.map +1 -0
- package/dist/cjs/core/code-splitter/compilers.d.cts +22 -0
- package/dist/cjs/core/code-splitter/framework-options.cjs +34 -0
- package/dist/cjs/core/code-splitter/framework-options.cjs.map +1 -0
- package/dist/cjs/core/code-splitter/framework-options.d.cts +10 -0
- package/dist/cjs/core/code-splitter/path-ids.cjs +37 -0
- package/dist/cjs/core/code-splitter/path-ids.cjs.map +1 -0
- package/dist/cjs/core/code-splitter/path-ids.d.cts +2 -0
- package/dist/cjs/core/config.cjs +46 -0
- package/dist/cjs/core/config.cjs.map +1 -0
- package/dist/cjs/core/config.d.cts +160 -0
- package/dist/cjs/core/constants.cjs +19 -0
- package/dist/cjs/core/constants.cjs.map +1 -0
- package/dist/cjs/core/constants.d.cts +5 -0
- package/dist/cjs/core/route-autoimport-plugin.cjs +98 -0
- package/dist/cjs/core/route-autoimport-plugin.cjs.map +1 -0
- package/dist/cjs/core/route-autoimport-plugin.d.cts +6 -0
- package/dist/cjs/core/route-hmr-statement.cjs +33 -0
- package/dist/cjs/core/route-hmr-statement.cjs.map +1 -0
- package/dist/cjs/core/route-hmr-statement.d.cts +1 -0
- package/dist/cjs/core/router-code-splitter-plugin.cjs +173 -0
- package/dist/cjs/core/router-code-splitter-plugin.cjs.map +1 -0
- package/dist/cjs/core/router-code-splitter-plugin.d.cts +3 -0
- package/dist/cjs/core/router-composed-plugin.cjs +27 -0
- package/dist/cjs/core/router-composed-plugin.cjs.map +1 -0
- package/dist/cjs/core/router-composed-plugin.d.cts +3 -0
- package/dist/cjs/core/router-generator-plugin.cjs +145 -0
- package/dist/cjs/core/router-generator-plugin.cjs.map +1 -0
- package/dist/cjs/core/router-generator-plugin.d.cts +3 -0
- package/dist/cjs/core/router-hmr-plugin.cjs +51 -0
- package/dist/cjs/core/router-hmr-plugin.cjs.map +1 -0
- package/dist/cjs/core/router-hmr-plugin.d.cts +8 -0
- package/dist/cjs/core/utils.cjs +12 -0
- package/dist/cjs/core/utils.cjs.map +1 -0
- package/dist/cjs/core/utils.d.cts +2 -0
- package/dist/cjs/esbuild.cjs +20 -0
- package/dist/cjs/esbuild.cjs.map +1 -0
- package/dist/cjs/esbuild.d.cts +127 -0
- package/dist/cjs/index.cjs +9 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +4 -0
- package/dist/cjs/rspack.cjs +22 -0
- package/dist/cjs/rspack.cjs.map +1 -0
- package/dist/cjs/rspack.d.cts +139 -0
- package/dist/cjs/vite.cjs +22 -0
- package/dist/cjs/vite.cjs.map +1 -0
- package/dist/cjs/vite.d.cts +159 -0
- package/dist/cjs/webpack.cjs +22 -0
- package/dist/cjs/webpack.cjs.map +1 -0
- package/dist/cjs/webpack.d.cts +127 -0
- package/dist/esm/core/code-splitter/compilers.d.ts +22 -0
- package/dist/esm/core/code-splitter/compilers.js +737 -0
- package/dist/esm/core/code-splitter/compilers.js.map +1 -0
- package/dist/esm/core/code-splitter/framework-options.d.ts +10 -0
- package/dist/esm/core/code-splitter/framework-options.js +34 -0
- package/dist/esm/core/code-splitter/framework-options.js.map +1 -0
- package/dist/esm/core/code-splitter/path-ids.d.ts +2 -0
- package/dist/esm/core/code-splitter/path-ids.js +37 -0
- package/dist/esm/core/code-splitter/path-ids.js.map +1 -0
- package/dist/esm/core/config.d.ts +160 -0
- package/dist/esm/core/config.js +46 -0
- package/dist/esm/core/config.js.map +1 -0
- package/dist/esm/core/constants.d.ts +5 -0
- package/dist/esm/core/constants.js +19 -0
- package/dist/esm/core/constants.js.map +1 -0
- package/dist/esm/core/route-autoimport-plugin.d.ts +6 -0
- package/dist/esm/core/route-autoimport-plugin.js +81 -0
- package/dist/esm/core/route-autoimport-plugin.js.map +1 -0
- package/dist/esm/core/route-hmr-statement.d.ts +1 -0
- package/dist/esm/core/route-hmr-statement.js +16 -0
- package/dist/esm/core/route-hmr-statement.js.map +1 -0
- package/dist/esm/core/router-code-splitter-plugin.d.ts +3 -0
- package/dist/esm/core/router-code-splitter-plugin.js +173 -0
- package/dist/esm/core/router-code-splitter-plugin.js.map +1 -0
- package/dist/esm/core/router-composed-plugin.d.ts +3 -0
- package/dist/esm/core/router-composed-plugin.js +27 -0
- package/dist/esm/core/router-composed-plugin.js.map +1 -0
- package/dist/esm/core/router-generator-plugin.d.ts +3 -0
- package/dist/esm/core/router-generator-plugin.js +123 -0
- package/dist/esm/core/router-generator-plugin.js.map +1 -0
- package/dist/esm/core/router-hmr-plugin.d.ts +8 -0
- package/dist/esm/core/router-hmr-plugin.js +51 -0
- package/dist/esm/core/router-hmr-plugin.js.map +1 -0
- package/dist/esm/core/utils.d.ts +2 -0
- package/dist/esm/core/utils.js +12 -0
- package/dist/esm/core/utils.js.map +1 -0
- package/dist/esm/esbuild.d.ts +127 -0
- package/dist/esm/esbuild.js +20 -0
- package/dist/esm/esbuild.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/rspack.d.ts +139 -0
- package/dist/esm/rspack.js +22 -0
- package/dist/esm/rspack.js.map +1 -0
- package/dist/esm/vite.d.ts +159 -0
- package/dist/esm/vite.js +22 -0
- package/dist/esm/vite.js.map +1 -0
- package/dist/esm/webpack.d.ts +127 -0
- package/dist/esm/webpack.js +22 -0
- package/dist/esm/webpack.js.map +1 -0
- package/package.json +133 -0
- package/src/core/code-splitter/compilers.ts +1005 -0
- package/src/core/code-splitter/framework-options.ts +41 -0
- package/src/core/code-splitter/path-ids.ts +39 -0
- package/src/core/config.ts +80 -0
- package/src/core/constants.ts +17 -0
- package/src/core/route-autoimport-plugin.ts +102 -0
- package/src/core/route-hmr-statement.ts +13 -0
- package/src/core/router-code-splitter-plugin.ts +253 -0
- package/src/core/router-composed-plugin.ts +32 -0
- package/src/core/router-generator-plugin.ts +172 -0
- package/src/core/router-hmr-plugin.ts +65 -0
- package/src/core/utils.ts +18 -0
- package/src/esbuild.ts +56 -0
- package/src/index.ts +4 -0
- package/src/rspack.ts +67 -0
- package/src/vite.ts +57 -0
- package/src/webpack.ts +55 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { configSchema, Config } from './core/config.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* export default {
|
|
6
|
+
* plugins: [TanStackRouterGeneratorEsbuild()],
|
|
7
|
+
* // ...
|
|
8
|
+
* }
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
declare const TanStackRouterGeneratorEsbuild: (options?: Partial<{
|
|
12
|
+
target: "react" | "solid";
|
|
13
|
+
routeFileIgnorePrefix: string;
|
|
14
|
+
routesDirectory: string;
|
|
15
|
+
quoteStyle: "single" | "double";
|
|
16
|
+
semicolons: boolean;
|
|
17
|
+
disableLogging: boolean;
|
|
18
|
+
routeTreeFileHeader: string[];
|
|
19
|
+
indexToken: string;
|
|
20
|
+
routeToken: string;
|
|
21
|
+
generatedRouteTree: string;
|
|
22
|
+
disableTypes: boolean;
|
|
23
|
+
addExtensions: boolean;
|
|
24
|
+
disableManifestGeneration: boolean;
|
|
25
|
+
enableRouteTreeFormatting: boolean;
|
|
26
|
+
routeTreeFileFooter: string[];
|
|
27
|
+
enableRouteGeneration?: boolean | undefined;
|
|
28
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
29
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
30
|
+
routeFilePrefix?: string | undefined;
|
|
31
|
+
routeFileIgnorePattern?: string | undefined;
|
|
32
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
33
|
+
verboseFileRoutes?: boolean | undefined;
|
|
34
|
+
autoCodeSplitting?: boolean | undefined;
|
|
35
|
+
customScaffolding?: {
|
|
36
|
+
routeTemplate?: string | undefined;
|
|
37
|
+
lazyRouteTemplate?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
experimental?: {
|
|
40
|
+
enableCodeSplitting?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* export default {
|
|
47
|
+
* plugins: [TanStackRouterCodeSplitterEsbuild()],
|
|
48
|
+
* // ...
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare const TanStackRouterCodeSplitterEsbuild: (options?: Partial<{
|
|
53
|
+
target: "react" | "solid";
|
|
54
|
+
routeFileIgnorePrefix: string;
|
|
55
|
+
routesDirectory: string;
|
|
56
|
+
quoteStyle: "single" | "double";
|
|
57
|
+
semicolons: boolean;
|
|
58
|
+
disableLogging: boolean;
|
|
59
|
+
routeTreeFileHeader: string[];
|
|
60
|
+
indexToken: string;
|
|
61
|
+
routeToken: string;
|
|
62
|
+
generatedRouteTree: string;
|
|
63
|
+
disableTypes: boolean;
|
|
64
|
+
addExtensions: boolean;
|
|
65
|
+
disableManifestGeneration: boolean;
|
|
66
|
+
enableRouteTreeFormatting: boolean;
|
|
67
|
+
routeTreeFileFooter: string[];
|
|
68
|
+
enableRouteGeneration?: boolean | undefined;
|
|
69
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
70
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
71
|
+
routeFilePrefix?: string | undefined;
|
|
72
|
+
routeFileIgnorePattern?: string | undefined;
|
|
73
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
74
|
+
verboseFileRoutes?: boolean | undefined;
|
|
75
|
+
autoCodeSplitting?: boolean | undefined;
|
|
76
|
+
customScaffolding?: {
|
|
77
|
+
routeTemplate?: string | undefined;
|
|
78
|
+
lazyRouteTemplate?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
experimental?: {
|
|
81
|
+
enableCodeSplitting?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* export default {
|
|
88
|
+
* plugins: [TanStackRouterEsbuild()],
|
|
89
|
+
* // ...
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
declare const TanStackRouterEsbuild: (options?: Partial<{
|
|
94
|
+
target: "react" | "solid";
|
|
95
|
+
routeFileIgnorePrefix: string;
|
|
96
|
+
routesDirectory: string;
|
|
97
|
+
quoteStyle: "single" | "double";
|
|
98
|
+
semicolons: boolean;
|
|
99
|
+
disableLogging: boolean;
|
|
100
|
+
routeTreeFileHeader: string[];
|
|
101
|
+
indexToken: string;
|
|
102
|
+
routeToken: string;
|
|
103
|
+
generatedRouteTree: string;
|
|
104
|
+
disableTypes: boolean;
|
|
105
|
+
addExtensions: boolean;
|
|
106
|
+
disableManifestGeneration: boolean;
|
|
107
|
+
enableRouteTreeFormatting: boolean;
|
|
108
|
+
routeTreeFileFooter: string[];
|
|
109
|
+
enableRouteGeneration?: boolean | undefined;
|
|
110
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
111
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
112
|
+
routeFilePrefix?: string | undefined;
|
|
113
|
+
routeFileIgnorePattern?: string | undefined;
|
|
114
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
115
|
+
verboseFileRoutes?: boolean | undefined;
|
|
116
|
+
autoCodeSplitting?: boolean | undefined;
|
|
117
|
+
customScaffolding?: {
|
|
118
|
+
routeTemplate?: string | undefined;
|
|
119
|
+
lazyRouteTemplate?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
experimental?: {
|
|
122
|
+
enableCodeSplitting?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
}> | undefined) => import('unplugin').EsbuildPlugin;
|
|
125
|
+
export default TanStackRouterEsbuild;
|
|
126
|
+
export { configSchema, TanStackRouterGeneratorEsbuild, TanStackRouterCodeSplitterEsbuild, TanStackRouterEsbuild, };
|
|
127
|
+
export type { Config };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const config = require("./core/config.cjs");
|
|
4
|
+
const routerCodeSplitterPlugin = require("./core/router-code-splitter-plugin.cjs");
|
|
5
|
+
const routerGeneratorPlugin = require("./core/router-generator-plugin.cjs");
|
|
6
|
+
exports.configSchema = config.configSchema;
|
|
7
|
+
exports.unpluginRouterCodeSplitterFactory = routerCodeSplitterPlugin.unpluginRouterCodeSplitterFactory;
|
|
8
|
+
exports.unpluginRouterGeneratorFactory = routerGeneratorPlugin.unpluginRouterGeneratorFactory;
|
|
9
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { configSchema } from './core/config.cjs';
|
|
2
|
+
export { unpluginRouterCodeSplitterFactory } from './core/router-code-splitter-plugin.cjs';
|
|
3
|
+
export { unpluginRouterGeneratorFactory } from './core/router-generator-plugin.cjs';
|
|
4
|
+
export type { Config } from './core/config.cjs';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const unplugin = require("unplugin");
|
|
4
|
+
const config = require("./core/config.cjs");
|
|
5
|
+
const routerCodeSplitterPlugin = require("./core/router-code-splitter-plugin.cjs");
|
|
6
|
+
const routerGeneratorPlugin = require("./core/router-generator-plugin.cjs");
|
|
7
|
+
const routerComposedPlugin = require("./core/router-composed-plugin.cjs");
|
|
8
|
+
const TanStackRouterGeneratorRspack = /* @__PURE__ */ unplugin.createRspackPlugin(
|
|
9
|
+
routerGeneratorPlugin.unpluginRouterGeneratorFactory
|
|
10
|
+
);
|
|
11
|
+
const TanStackRouterCodeSplitterRspack = /* @__PURE__ */ unplugin.createRspackPlugin(
|
|
12
|
+
routerCodeSplitterPlugin.unpluginRouterCodeSplitterFactory
|
|
13
|
+
);
|
|
14
|
+
const TanStackRouterRspack = /* @__PURE__ */ unplugin.createRspackPlugin(
|
|
15
|
+
routerComposedPlugin.unpluginRouterComposedFactory
|
|
16
|
+
);
|
|
17
|
+
exports.configSchema = config.configSchema;
|
|
18
|
+
exports.TanStackRouterCodeSplitterRspack = TanStackRouterCodeSplitterRspack;
|
|
19
|
+
exports.TanStackRouterGeneratorRspack = TanStackRouterGeneratorRspack;
|
|
20
|
+
exports.TanStackRouterRspack = TanStackRouterRspack;
|
|
21
|
+
exports.default = TanStackRouterRspack;
|
|
22
|
+
//# sourceMappingURL=rspack.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rspack.cjs","sources":["../../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { configSchema } from './core/config'\nimport { unpluginRouterCodeSplitterFactory } from './core/router-code-splitter-plugin'\nimport { unpluginRouterGeneratorFactory } from './core/router-generator-plugin'\nimport { unpluginRouterComposedFactory } from './core/router-composed-plugin'\nimport type { Config } from './core/config'\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * // ...\n * tools: {\n * rspack: {\n * plugins: [TanStackRouterGeneratorRspack()],\n * },\n * },\n * })\n * ```\n */\nconst TanStackRouterGeneratorRspack = /* #__PURE__ */ createRspackPlugin(\n unpluginRouterGeneratorFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * // ...\n * tools: {\n * rspack: {\n * plugins: [TanStackRouterCodeSplitterRspack()],\n * },\n * },\n * })\n * ```\n */\nconst TanStackRouterCodeSplitterRspack = /* #__PURE__ */ createRspackPlugin(\n unpluginRouterCodeSplitterFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * // ...\n * tools: {\n * rspack: {\n * plugins: [TanStackRouterRspack()],\n * },\n * },\n * })\n * ```\n */\nconst TanStackRouterRspack = /* #__PURE__ */ createRspackPlugin(\n unpluginRouterComposedFactory,\n)\n\nexport default TanStackRouterRspack\nexport {\n configSchema,\n TanStackRouterRspack,\n TanStackRouterGeneratorRspack,\n TanStackRouterCodeSplitterRspack,\n}\nexport type { Config }\n"],"names":["createRspackPlugin","unpluginRouterGeneratorFactory","unpluginRouterCodeSplitterFactory","unpluginRouterComposedFactory"],"mappings":";;;;;;;AAqBA,MAAM,gCAAgDA,yBAAA;AAAA,EACpDC,sBAAAA;AACF;AAeA,MAAM,mCAAmDD,yBAAA;AAAA,EACvDE,yBAAAA;AACF;AAeA,MAAM,uBAAuCF,yBAAA;AAAA,EAC3CG,qBAAAA;AACF;;;;;;"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { configSchema, Config } from './core/config.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* export default defineConfig({
|
|
6
|
+
* // ...
|
|
7
|
+
* tools: {
|
|
8
|
+
* rspack: {
|
|
9
|
+
* plugins: [TanStackRouterGeneratorRspack()],
|
|
10
|
+
* },
|
|
11
|
+
* },
|
|
12
|
+
* })
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const TanStackRouterGeneratorRspack: (options?: Partial<{
|
|
16
|
+
target: "react" | "solid";
|
|
17
|
+
routeFileIgnorePrefix: string;
|
|
18
|
+
routesDirectory: string;
|
|
19
|
+
quoteStyle: "single" | "double";
|
|
20
|
+
semicolons: boolean;
|
|
21
|
+
disableLogging: boolean;
|
|
22
|
+
routeTreeFileHeader: string[];
|
|
23
|
+
indexToken: string;
|
|
24
|
+
routeToken: string;
|
|
25
|
+
generatedRouteTree: string;
|
|
26
|
+
disableTypes: boolean;
|
|
27
|
+
addExtensions: boolean;
|
|
28
|
+
disableManifestGeneration: boolean;
|
|
29
|
+
enableRouteTreeFormatting: boolean;
|
|
30
|
+
routeTreeFileFooter: string[];
|
|
31
|
+
enableRouteGeneration?: boolean | undefined;
|
|
32
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
33
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
34
|
+
routeFilePrefix?: string | undefined;
|
|
35
|
+
routeFileIgnorePattern?: string | undefined;
|
|
36
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
37
|
+
verboseFileRoutes?: boolean | undefined;
|
|
38
|
+
autoCodeSplitting?: boolean | undefined;
|
|
39
|
+
customScaffolding?: {
|
|
40
|
+
routeTemplate?: string | undefined;
|
|
41
|
+
lazyRouteTemplate?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
experimental?: {
|
|
44
|
+
enableCodeSplitting?: boolean | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* export default defineConfig({
|
|
51
|
+
* // ...
|
|
52
|
+
* tools: {
|
|
53
|
+
* rspack: {
|
|
54
|
+
* plugins: [TanStackRouterCodeSplitterRspack()],
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* })
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare const TanStackRouterCodeSplitterRspack: (options?: Partial<{
|
|
61
|
+
target: "react" | "solid";
|
|
62
|
+
routeFileIgnorePrefix: string;
|
|
63
|
+
routesDirectory: string;
|
|
64
|
+
quoteStyle: "single" | "double";
|
|
65
|
+
semicolons: boolean;
|
|
66
|
+
disableLogging: boolean;
|
|
67
|
+
routeTreeFileHeader: string[];
|
|
68
|
+
indexToken: string;
|
|
69
|
+
routeToken: string;
|
|
70
|
+
generatedRouteTree: string;
|
|
71
|
+
disableTypes: boolean;
|
|
72
|
+
addExtensions: boolean;
|
|
73
|
+
disableManifestGeneration: boolean;
|
|
74
|
+
enableRouteTreeFormatting: boolean;
|
|
75
|
+
routeTreeFileFooter: string[];
|
|
76
|
+
enableRouteGeneration?: boolean | undefined;
|
|
77
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
78
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
79
|
+
routeFilePrefix?: string | undefined;
|
|
80
|
+
routeFileIgnorePattern?: string | undefined;
|
|
81
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
82
|
+
verboseFileRoutes?: boolean | undefined;
|
|
83
|
+
autoCodeSplitting?: boolean | undefined;
|
|
84
|
+
customScaffolding?: {
|
|
85
|
+
routeTemplate?: string | undefined;
|
|
86
|
+
lazyRouteTemplate?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
experimental?: {
|
|
89
|
+
enableCodeSplitting?: boolean | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* export default defineConfig({
|
|
96
|
+
* // ...
|
|
97
|
+
* tools: {
|
|
98
|
+
* rspack: {
|
|
99
|
+
* plugins: [TanStackRouterRspack()],
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* })
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
declare const TanStackRouterRspack: (options?: Partial<{
|
|
106
|
+
target: "react" | "solid";
|
|
107
|
+
routeFileIgnorePrefix: string;
|
|
108
|
+
routesDirectory: string;
|
|
109
|
+
quoteStyle: "single" | "double";
|
|
110
|
+
semicolons: boolean;
|
|
111
|
+
disableLogging: boolean;
|
|
112
|
+
routeTreeFileHeader: string[];
|
|
113
|
+
indexToken: string;
|
|
114
|
+
routeToken: string;
|
|
115
|
+
generatedRouteTree: string;
|
|
116
|
+
disableTypes: boolean;
|
|
117
|
+
addExtensions: boolean;
|
|
118
|
+
disableManifestGeneration: boolean;
|
|
119
|
+
enableRouteTreeFormatting: boolean;
|
|
120
|
+
routeTreeFileFooter: string[];
|
|
121
|
+
enableRouteGeneration?: boolean | undefined;
|
|
122
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
123
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
124
|
+
routeFilePrefix?: string | undefined;
|
|
125
|
+
routeFileIgnorePattern?: string | undefined;
|
|
126
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
127
|
+
verboseFileRoutes?: boolean | undefined;
|
|
128
|
+
autoCodeSplitting?: boolean | undefined;
|
|
129
|
+
customScaffolding?: {
|
|
130
|
+
routeTemplate?: string | undefined;
|
|
131
|
+
lazyRouteTemplate?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
experimental?: {
|
|
134
|
+
enableCodeSplitting?: boolean | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
}> | undefined) => import('unplugin').RspackPluginInstance;
|
|
137
|
+
export default TanStackRouterRspack;
|
|
138
|
+
export { configSchema, TanStackRouterRspack, TanStackRouterGeneratorRspack, TanStackRouterCodeSplitterRspack, };
|
|
139
|
+
export type { Config };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const unplugin = require("unplugin");
|
|
4
|
+
const config = require("./core/config.cjs");
|
|
5
|
+
const routerCodeSplitterPlugin = require("./core/router-code-splitter-plugin.cjs");
|
|
6
|
+
const routerGeneratorPlugin = require("./core/router-generator-plugin.cjs");
|
|
7
|
+
const routerComposedPlugin = require("./core/router-composed-plugin.cjs");
|
|
8
|
+
const TanStackRouterGeneratorVite = unplugin.createVitePlugin(
|
|
9
|
+
routerGeneratorPlugin.unpluginRouterGeneratorFactory
|
|
10
|
+
);
|
|
11
|
+
const TanStackRouterCodeSplitterVite = unplugin.createVitePlugin(
|
|
12
|
+
routerCodeSplitterPlugin.unpluginRouterCodeSplitterFactory
|
|
13
|
+
);
|
|
14
|
+
const TanStackRouterVite = unplugin.createVitePlugin(routerComposedPlugin.unpluginRouterComposedFactory);
|
|
15
|
+
const tanstackRouter = TanStackRouterVite;
|
|
16
|
+
exports.configSchema = config.configSchema;
|
|
17
|
+
exports.TanStackRouterCodeSplitterVite = TanStackRouterCodeSplitterVite;
|
|
18
|
+
exports.TanStackRouterGeneratorVite = TanStackRouterGeneratorVite;
|
|
19
|
+
exports.TanStackRouterVite = TanStackRouterVite;
|
|
20
|
+
exports.default = TanStackRouterVite;
|
|
21
|
+
exports.tanstackRouter = tanstackRouter;
|
|
22
|
+
//# sourceMappingURL=vite.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.cjs","sources":["../../src/vite.ts"],"sourcesContent":["import { createVitePlugin } from 'unplugin'\n\nimport { configSchema } from './core/config'\nimport { unpluginRouterCodeSplitterFactory } from './core/router-code-splitter-plugin'\nimport { unpluginRouterGeneratorFactory } from './core/router-generator-plugin'\nimport { unpluginRouterComposedFactory } from './core/router-composed-plugin'\n\nimport type { Config } from './core/config'\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * plugins: [TanStackRouterGeneratorVite()],\n * // ...\n * })\n * ```\n */\nconst TanStackRouterGeneratorVite = createVitePlugin(\n unpluginRouterGeneratorFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * plugins: [TanStackRouterCodeSplitterVite()],\n * // ...\n * })\n * ```\n */\nconst TanStackRouterCodeSplitterVite = createVitePlugin(\n unpluginRouterCodeSplitterFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default defineConfig({\n * plugins: [TanStackRouterVite()],\n * // ...\n * })\n * ```\n */\nconst TanStackRouterVite = createVitePlugin(unpluginRouterComposedFactory)\nconst tanstackRouter = TanStackRouterVite\n\nexport default TanStackRouterVite\nexport {\n configSchema,\n TanStackRouterGeneratorVite,\n TanStackRouterCodeSplitterVite,\n TanStackRouterVite,\n tanstackRouter,\n}\n\nexport type { Config }\n"],"names":["createVitePlugin","unpluginRouterGeneratorFactory","unpluginRouterCodeSplitterFactory","unpluginRouterComposedFactory"],"mappings":";;;;;;;AAkBA,MAAM,8BAA8BA,SAAA;AAAA,EAClCC,sBAAAA;AACF;AAWA,MAAM,iCAAiCD,SAAA;AAAA,EACrCE,yBAAAA;AACF;AAWM,MAAA,qBAAqBF,0BAAiBG,qBAA6B,6BAAA;AACzE,MAAM,iBAAiB;;;;;;;"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { configSchema, Config } from './core/config.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* export default defineConfig({
|
|
6
|
+
* plugins: [TanStackRouterGeneratorVite()],
|
|
7
|
+
* // ...
|
|
8
|
+
* })
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
declare const TanStackRouterGeneratorVite: (options?: Partial<{
|
|
12
|
+
target: "react" | "solid";
|
|
13
|
+
routeFileIgnorePrefix: string;
|
|
14
|
+
routesDirectory: string;
|
|
15
|
+
quoteStyle: "single" | "double";
|
|
16
|
+
semicolons: boolean;
|
|
17
|
+
disableLogging: boolean;
|
|
18
|
+
routeTreeFileHeader: string[];
|
|
19
|
+
indexToken: string;
|
|
20
|
+
routeToken: string;
|
|
21
|
+
generatedRouteTree: string;
|
|
22
|
+
disableTypes: boolean;
|
|
23
|
+
addExtensions: boolean;
|
|
24
|
+
disableManifestGeneration: boolean;
|
|
25
|
+
enableRouteTreeFormatting: boolean;
|
|
26
|
+
routeTreeFileFooter: string[];
|
|
27
|
+
enableRouteGeneration?: boolean | undefined;
|
|
28
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
29
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
30
|
+
routeFilePrefix?: string | undefined;
|
|
31
|
+
routeFileIgnorePattern?: string | undefined;
|
|
32
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
33
|
+
verboseFileRoutes?: boolean | undefined;
|
|
34
|
+
autoCodeSplitting?: boolean | undefined;
|
|
35
|
+
customScaffolding?: {
|
|
36
|
+
routeTemplate?: string | undefined;
|
|
37
|
+
lazyRouteTemplate?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
experimental?: {
|
|
40
|
+
enableCodeSplitting?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* export default defineConfig({
|
|
47
|
+
* plugins: [TanStackRouterCodeSplitterVite()],
|
|
48
|
+
* // ...
|
|
49
|
+
* })
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare const TanStackRouterCodeSplitterVite: (options?: Partial<{
|
|
53
|
+
target: "react" | "solid";
|
|
54
|
+
routeFileIgnorePrefix: string;
|
|
55
|
+
routesDirectory: string;
|
|
56
|
+
quoteStyle: "single" | "double";
|
|
57
|
+
semicolons: boolean;
|
|
58
|
+
disableLogging: boolean;
|
|
59
|
+
routeTreeFileHeader: string[];
|
|
60
|
+
indexToken: string;
|
|
61
|
+
routeToken: string;
|
|
62
|
+
generatedRouteTree: string;
|
|
63
|
+
disableTypes: boolean;
|
|
64
|
+
addExtensions: boolean;
|
|
65
|
+
disableManifestGeneration: boolean;
|
|
66
|
+
enableRouteTreeFormatting: boolean;
|
|
67
|
+
routeTreeFileFooter: string[];
|
|
68
|
+
enableRouteGeneration?: boolean | undefined;
|
|
69
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
70
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
71
|
+
routeFilePrefix?: string | undefined;
|
|
72
|
+
routeFileIgnorePattern?: string | undefined;
|
|
73
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
74
|
+
verboseFileRoutes?: boolean | undefined;
|
|
75
|
+
autoCodeSplitting?: boolean | undefined;
|
|
76
|
+
customScaffolding?: {
|
|
77
|
+
routeTemplate?: string | undefined;
|
|
78
|
+
lazyRouteTemplate?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
experimental?: {
|
|
81
|
+
enableCodeSplitting?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* export default defineConfig({
|
|
88
|
+
* plugins: [TanStackRouterVite()],
|
|
89
|
+
* // ...
|
|
90
|
+
* })
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
declare const TanStackRouterVite: (options?: Partial<{
|
|
94
|
+
target: "react" | "solid";
|
|
95
|
+
routeFileIgnorePrefix: string;
|
|
96
|
+
routesDirectory: string;
|
|
97
|
+
quoteStyle: "single" | "double";
|
|
98
|
+
semicolons: boolean;
|
|
99
|
+
disableLogging: boolean;
|
|
100
|
+
routeTreeFileHeader: string[];
|
|
101
|
+
indexToken: string;
|
|
102
|
+
routeToken: string;
|
|
103
|
+
generatedRouteTree: string;
|
|
104
|
+
disableTypes: boolean;
|
|
105
|
+
addExtensions: boolean;
|
|
106
|
+
disableManifestGeneration: boolean;
|
|
107
|
+
enableRouteTreeFormatting: boolean;
|
|
108
|
+
routeTreeFileFooter: string[];
|
|
109
|
+
enableRouteGeneration?: boolean | undefined;
|
|
110
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
111
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
112
|
+
routeFilePrefix?: string | undefined;
|
|
113
|
+
routeFileIgnorePattern?: string | undefined;
|
|
114
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
115
|
+
verboseFileRoutes?: boolean | undefined;
|
|
116
|
+
autoCodeSplitting?: boolean | undefined;
|
|
117
|
+
customScaffolding?: {
|
|
118
|
+
routeTemplate?: string | undefined;
|
|
119
|
+
lazyRouteTemplate?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
experimental?: {
|
|
122
|
+
enableCodeSplitting?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
125
|
+
declare const tanstackRouter: (options?: Partial<{
|
|
126
|
+
target: "react" | "solid";
|
|
127
|
+
routeFileIgnorePrefix: string;
|
|
128
|
+
routesDirectory: string;
|
|
129
|
+
quoteStyle: "single" | "double";
|
|
130
|
+
semicolons: boolean;
|
|
131
|
+
disableLogging: boolean;
|
|
132
|
+
routeTreeFileHeader: string[];
|
|
133
|
+
indexToken: string;
|
|
134
|
+
routeToken: string;
|
|
135
|
+
generatedRouteTree: string;
|
|
136
|
+
disableTypes: boolean;
|
|
137
|
+
addExtensions: boolean;
|
|
138
|
+
disableManifestGeneration: boolean;
|
|
139
|
+
enableRouteTreeFormatting: boolean;
|
|
140
|
+
routeTreeFileFooter: string[];
|
|
141
|
+
enableRouteGeneration?: boolean | undefined;
|
|
142
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
143
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
144
|
+
routeFilePrefix?: string | undefined;
|
|
145
|
+
routeFileIgnorePattern?: string | undefined;
|
|
146
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
147
|
+
verboseFileRoutes?: boolean | undefined;
|
|
148
|
+
autoCodeSplitting?: boolean | undefined;
|
|
149
|
+
customScaffolding?: {
|
|
150
|
+
routeTemplate?: string | undefined;
|
|
151
|
+
lazyRouteTemplate?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
experimental?: {
|
|
154
|
+
enableCodeSplitting?: boolean | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
}> | undefined) => import('vite').Plugin<any> | import('vite').Plugin<any>[];
|
|
157
|
+
export default TanStackRouterVite;
|
|
158
|
+
export { configSchema, TanStackRouterGeneratorVite, TanStackRouterCodeSplitterVite, TanStackRouterVite, tanstackRouter, };
|
|
159
|
+
export type { Config };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const unplugin = require("unplugin");
|
|
4
|
+
const config = require("./core/config.cjs");
|
|
5
|
+
const routerCodeSplitterPlugin = require("./core/router-code-splitter-plugin.cjs");
|
|
6
|
+
const routerGeneratorPlugin = require("./core/router-generator-plugin.cjs");
|
|
7
|
+
const routerComposedPlugin = require("./core/router-composed-plugin.cjs");
|
|
8
|
+
const TanStackRouterGeneratorWebpack = /* @__PURE__ */ unplugin.createWebpackPlugin(
|
|
9
|
+
routerGeneratorPlugin.unpluginRouterGeneratorFactory
|
|
10
|
+
);
|
|
11
|
+
const TanStackRouterCodeSplitterWebpack = /* @__PURE__ */ unplugin.createWebpackPlugin(
|
|
12
|
+
routerCodeSplitterPlugin.unpluginRouterCodeSplitterFactory
|
|
13
|
+
);
|
|
14
|
+
const TanStackRouterWebpack = /* @__PURE__ */ unplugin.createWebpackPlugin(
|
|
15
|
+
routerComposedPlugin.unpluginRouterComposedFactory
|
|
16
|
+
);
|
|
17
|
+
exports.configSchema = config.configSchema;
|
|
18
|
+
exports.TanStackRouterCodeSplitterWebpack = TanStackRouterCodeSplitterWebpack;
|
|
19
|
+
exports.TanStackRouterGeneratorWebpack = TanStackRouterGeneratorWebpack;
|
|
20
|
+
exports.TanStackRouterWebpack = TanStackRouterWebpack;
|
|
21
|
+
exports.default = TanStackRouterWebpack;
|
|
22
|
+
//# sourceMappingURL=webpack.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.cjs","sources":["../../src/webpack.ts"],"sourcesContent":["import { createWebpackPlugin } from 'unplugin'\n\nimport { configSchema } from './core/config'\nimport { unpluginRouterCodeSplitterFactory } from './core/router-code-splitter-plugin'\nimport { unpluginRouterGeneratorFactory } from './core/router-generator-plugin'\nimport { unpluginRouterComposedFactory } from './core/router-composed-plugin'\nimport type { Config } from './core/config'\n\n/**\n * @example\n * ```ts\n * export default {\n * // ...\n * plugins: [TanStackRouterGeneratorWebpack()],\n * }\n * ```\n */\nconst TanStackRouterGeneratorWebpack = /* #__PURE__ */ createWebpackPlugin(\n unpluginRouterGeneratorFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default {\n * // ...\n * plugins: [TanStackRouterCodeSplitterWebpack()],\n * }\n * ```\n */\nconst TanStackRouterCodeSplitterWebpack = /* #__PURE__ */ createWebpackPlugin(\n unpluginRouterCodeSplitterFactory,\n)\n\n/**\n * @example\n * ```ts\n * export default {\n * // ...\n * plugins: [TanStackRouterWebpack()],\n * }\n * ```\n */\nconst TanStackRouterWebpack = /* #__PURE__ */ createWebpackPlugin(\n unpluginRouterComposedFactory,\n)\n\nexport default TanStackRouterWebpack\nexport {\n configSchema,\n TanStackRouterWebpack,\n TanStackRouterGeneratorWebpack,\n TanStackRouterCodeSplitterWebpack,\n}\nexport type { Config }\n"],"names":["createWebpackPlugin","unpluginRouterGeneratorFactory","unpluginRouterCodeSplitterFactory","unpluginRouterComposedFactory"],"mappings":";;;;;;;AAiBA,MAAM,iCAAiDA,yBAAA;AAAA,EACrDC,sBAAAA;AACF;AAWA,MAAM,oCAAoDD,yBAAA;AAAA,EACxDE,yBAAAA;AACF;AAWA,MAAM,wBAAwCF,yBAAA;AAAA,EAC5CG,qBAAAA;AACF;;;;;;"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { configSchema, Config } from './core/config.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* export default {
|
|
6
|
+
* // ...
|
|
7
|
+
* plugins: [TanStackRouterGeneratorWebpack()],
|
|
8
|
+
* }
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
declare const TanStackRouterGeneratorWebpack: (options?: Partial<{
|
|
12
|
+
target: "react" | "solid";
|
|
13
|
+
routeFileIgnorePrefix: string;
|
|
14
|
+
routesDirectory: string;
|
|
15
|
+
quoteStyle: "single" | "double";
|
|
16
|
+
semicolons: boolean;
|
|
17
|
+
disableLogging: boolean;
|
|
18
|
+
routeTreeFileHeader: string[];
|
|
19
|
+
indexToken: string;
|
|
20
|
+
routeToken: string;
|
|
21
|
+
generatedRouteTree: string;
|
|
22
|
+
disableTypes: boolean;
|
|
23
|
+
addExtensions: boolean;
|
|
24
|
+
disableManifestGeneration: boolean;
|
|
25
|
+
enableRouteTreeFormatting: boolean;
|
|
26
|
+
routeTreeFileFooter: string[];
|
|
27
|
+
enableRouteGeneration?: boolean | undefined;
|
|
28
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
29
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
30
|
+
routeFilePrefix?: string | undefined;
|
|
31
|
+
routeFileIgnorePattern?: string | undefined;
|
|
32
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
33
|
+
verboseFileRoutes?: boolean | undefined;
|
|
34
|
+
autoCodeSplitting?: boolean | undefined;
|
|
35
|
+
customScaffolding?: {
|
|
36
|
+
routeTemplate?: string | undefined;
|
|
37
|
+
lazyRouteTemplate?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
experimental?: {
|
|
40
|
+
enableCodeSplitting?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* export default {
|
|
47
|
+
* // ...
|
|
48
|
+
* plugins: [TanStackRouterCodeSplitterWebpack()],
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare const TanStackRouterCodeSplitterWebpack: (options?: Partial<{
|
|
53
|
+
target: "react" | "solid";
|
|
54
|
+
routeFileIgnorePrefix: string;
|
|
55
|
+
routesDirectory: string;
|
|
56
|
+
quoteStyle: "single" | "double";
|
|
57
|
+
semicolons: boolean;
|
|
58
|
+
disableLogging: boolean;
|
|
59
|
+
routeTreeFileHeader: string[];
|
|
60
|
+
indexToken: string;
|
|
61
|
+
routeToken: string;
|
|
62
|
+
generatedRouteTree: string;
|
|
63
|
+
disableTypes: boolean;
|
|
64
|
+
addExtensions: boolean;
|
|
65
|
+
disableManifestGeneration: boolean;
|
|
66
|
+
enableRouteTreeFormatting: boolean;
|
|
67
|
+
routeTreeFileFooter: string[];
|
|
68
|
+
enableRouteGeneration?: boolean | undefined;
|
|
69
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
70
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
71
|
+
routeFilePrefix?: string | undefined;
|
|
72
|
+
routeFileIgnorePattern?: string | undefined;
|
|
73
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
74
|
+
verboseFileRoutes?: boolean | undefined;
|
|
75
|
+
autoCodeSplitting?: boolean | undefined;
|
|
76
|
+
customScaffolding?: {
|
|
77
|
+
routeTemplate?: string | undefined;
|
|
78
|
+
lazyRouteTemplate?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
experimental?: {
|
|
81
|
+
enableCodeSplitting?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* export default {
|
|
88
|
+
* // ...
|
|
89
|
+
* plugins: [TanStackRouterWebpack()],
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
declare const TanStackRouterWebpack: (options?: Partial<{
|
|
94
|
+
target: "react" | "solid";
|
|
95
|
+
routeFileIgnorePrefix: string;
|
|
96
|
+
routesDirectory: string;
|
|
97
|
+
quoteStyle: "single" | "double";
|
|
98
|
+
semicolons: boolean;
|
|
99
|
+
disableLogging: boolean;
|
|
100
|
+
routeTreeFileHeader: string[];
|
|
101
|
+
indexToken: string;
|
|
102
|
+
routeToken: string;
|
|
103
|
+
generatedRouteTree: string;
|
|
104
|
+
disableTypes: boolean;
|
|
105
|
+
addExtensions: boolean;
|
|
106
|
+
disableManifestGeneration: boolean;
|
|
107
|
+
enableRouteTreeFormatting: boolean;
|
|
108
|
+
routeTreeFileFooter: string[];
|
|
109
|
+
enableRouteGeneration?: boolean | undefined;
|
|
110
|
+
codeSplittingOptions?: import('./core/config.cjs').CodeSplittingOptions | undefined;
|
|
111
|
+
virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
|
|
112
|
+
routeFilePrefix?: string | undefined;
|
|
113
|
+
routeFileIgnorePattern?: string | undefined;
|
|
114
|
+
pathParamsAllowedCharacters?: (";" | ":" | "@" | "&" | "=" | "+" | "$" | ",")[] | undefined;
|
|
115
|
+
verboseFileRoutes?: boolean | undefined;
|
|
116
|
+
autoCodeSplitting?: boolean | undefined;
|
|
117
|
+
customScaffolding?: {
|
|
118
|
+
routeTemplate?: string | undefined;
|
|
119
|
+
lazyRouteTemplate?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
experimental?: {
|
|
122
|
+
enableCodeSplitting?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
}> | undefined) => import('unplugin').WebpackPluginInstance;
|
|
125
|
+
export default TanStackRouterWebpack;
|
|
126
|
+
export { configSchema, TanStackRouterWebpack, TanStackRouterGeneratorWebpack, TanStackRouterCodeSplitterWebpack, };
|
|
127
|
+
export type { Config };
|