@tanstack/vue-start 1.167.36 → 1.167.38
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/esm/plugin/rsbuild.d.ts +3 -0
- package/dist/esm/plugin/rsbuild.js +15 -0
- package/dist/esm/plugin/rsbuild.js.map +1 -0
- package/dist/esm/plugin/vite.d.ts +1 -1
- package/dist/esm/plugin/vite.js +1 -1
- package/dist/esm/plugin/vite.js.map +1 -1
- package/package.json +26 -10
- package/src/plugin/rsbuild.ts +23 -0
- package/src/plugin/vite.ts +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { vueStartDefaultEntryPaths } from "./shared.js";
|
|
2
|
+
import { RSBUILD_ENVIRONMENT_NAMES, tanStackStartRsbuild } from "@tanstack/start-plugin-core/rsbuild";
|
|
3
|
+
//#region src/plugin/rsbuild.ts
|
|
4
|
+
function tanstackStart(options) {
|
|
5
|
+
return tanStackStartRsbuild({
|
|
6
|
+
framework: "vue",
|
|
7
|
+
defaultEntryPaths: vueStartDefaultEntryPaths,
|
|
8
|
+
providerEnvironmentName: RSBUILD_ENVIRONMENT_NAMES.server,
|
|
9
|
+
ssrIsProvider: true
|
|
10
|
+
}, options);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { tanstackStart };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=rsbuild.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rsbuild.js","names":[],"sources":["../../../src/plugin/rsbuild.ts"],"sourcesContent":["import {\n RSBUILD_ENVIRONMENT_NAMES,\n tanStackStartRsbuild,\n} from '@tanstack/start-plugin-core/rsbuild'\nimport { vueStartDefaultEntryPaths } from './shared'\nimport type {\n TanStackStartRsbuildInputConfig,\n TanStackStartRsbuildPluginCoreOptions,\n} from '@tanstack/start-plugin-core/rsbuild'\nimport type { RsbuildPlugin } from '@rsbuild/core'\n\nexport function tanstackStart(\n options?: TanStackStartRsbuildInputConfig,\n): RsbuildPlugin {\n const corePluginOpts: TanStackStartRsbuildPluginCoreOptions = {\n framework: 'vue',\n defaultEntryPaths: vueStartDefaultEntryPaths,\n providerEnvironmentName: RSBUILD_ENVIRONMENT_NAMES.server,\n ssrIsProvider: true,\n }\n\n return tanStackStartRsbuild(corePluginOpts, options)\n}\n"],"mappings":";;;AAWA,SAAgB,cACd,SACe;AAQf,QAAO,qBAPuD;EAC5D,WAAW;EACX,mBAAmB;EACnB,yBAAyB,0BAA0B;EACnD,eAAe;EAChB,EAE2C,QAAQ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TanStackStartViteInputConfig } from '@tanstack/start-plugin-core';
|
|
1
|
+
import { TanStackStartViteInputConfig } from '@tanstack/start-plugin-core/vite';
|
|
2
2
|
import { PluginOption } from 'vite';
|
|
3
3
|
export declare function tanstackStart(options?: TanStackStartViteInputConfig): Array<PluginOption>;
|
package/dist/esm/plugin/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { vueStartDefaultEntryPaths } from "./shared.js";
|
|
2
|
-
import { START_ENVIRONMENT_NAMES, tanStackStartVite } from "@tanstack/start-plugin-core";
|
|
2
|
+
import { START_ENVIRONMENT_NAMES, tanStackStartVite } from "@tanstack/start-plugin-core/vite";
|
|
3
3
|
//#region src/plugin/vite.ts
|
|
4
4
|
function tanstackStart(options) {
|
|
5
5
|
return [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","names":[],"sources":["../../../src/plugin/vite.ts"],"sourcesContent":["import {\n START_ENVIRONMENT_NAMES,\n tanStackStartVite,\n} from '@tanstack/start-plugin-core'\nimport type {\n TanStackStartViteInputConfig,\n TanStackStartVitePluginCoreOptions,\n} from '@tanstack/start-plugin-core'\nimport { vueStartDefaultEntryPaths } from './shared'\nimport type { PluginOption } from 'vite'\n\nexport function tanstackStart(\n options?: TanStackStartViteInputConfig,\n): Array<PluginOption> {\n const corePluginOpts: TanStackStartVitePluginCoreOptions = {\n framework: 'vue',\n defaultEntryPaths: vueStartDefaultEntryPaths,\n providerEnvironmentName: START_ENVIRONMENT_NAMES.server,\n ssrIsProvider: true,\n ssrResolverStrategy: {\n type: 'default',\n },\n }\n\n return [\n {\n name: 'tanstack-vue-start:config',\n configEnvironment(environmentName, options) {\n return {\n optimizeDeps:\n environmentName === START_ENVIRONMENT_NAMES.client ||\n (environmentName === START_ENVIRONMENT_NAMES.server &&\n // This indicates that the server environment has opted in to dependency optimization\n options.optimizeDeps?.noDiscovery === false)\n ? {\n // As `@tanstack/vue-start` depends on `@tanstack/vue-router`, we should exclude both.\n exclude: [\n '@tanstack/vue-start',\n '@tanstack/vue-router',\n '@tanstack/start-static-server-functions',\n ],\n }\n : undefined,\n }\n },\n },\n tanStackStartVite(corePluginOpts, options),\n ]\n}\n"],"mappings":";;;AAWA,SAAgB,cACd,SACqB;AAWrB,QAAO,CACL;EACE,MAAM;EACN,kBAAkB,iBAAiB,SAAS;AAC1C,UAAO,EACL,cACE,oBAAoB,wBAAwB,UAC3C,oBAAoB,wBAAwB,UAE3C,QAAQ,cAAc,gBAAgB,QACpC,EAEE,SAAS;IACP;IACA;IACA;IACD,EACF,GACD,KAAA,GACP;;EAEJ,EACD,kBAhCyD;EACzD,WAAW;EACX,mBAAmB;EACnB,yBAAyB,wBAAwB;EACjD,eAAe;EACf,qBAAqB,EACnB,MAAM,WACP;EACF,EAwBmC,QAAQ,CAC3C"}
|
|
1
|
+
{"version":3,"file":"vite.js","names":[],"sources":["../../../src/plugin/vite.ts"],"sourcesContent":["import {\n START_ENVIRONMENT_NAMES,\n tanStackStartVite,\n} from '@tanstack/start-plugin-core/vite'\nimport type {\n TanStackStartViteInputConfig,\n TanStackStartVitePluginCoreOptions,\n} from '@tanstack/start-plugin-core/vite'\nimport { vueStartDefaultEntryPaths } from './shared'\nimport type { PluginOption } from 'vite'\n\nexport function tanstackStart(\n options?: TanStackStartViteInputConfig,\n): Array<PluginOption> {\n const corePluginOpts: TanStackStartVitePluginCoreOptions = {\n framework: 'vue',\n defaultEntryPaths: vueStartDefaultEntryPaths,\n providerEnvironmentName: START_ENVIRONMENT_NAMES.server,\n ssrIsProvider: true,\n ssrResolverStrategy: {\n type: 'default',\n },\n }\n\n return [\n {\n name: 'tanstack-vue-start:config',\n configEnvironment(environmentName, options) {\n return {\n optimizeDeps:\n environmentName === START_ENVIRONMENT_NAMES.client ||\n (environmentName === START_ENVIRONMENT_NAMES.server &&\n // This indicates that the server environment has opted in to dependency optimization\n options.optimizeDeps?.noDiscovery === false)\n ? {\n // As `@tanstack/vue-start` depends on `@tanstack/vue-router`, we should exclude both.\n exclude: [\n '@tanstack/vue-start',\n '@tanstack/vue-router',\n '@tanstack/start-static-server-functions',\n ],\n }\n : undefined,\n }\n },\n },\n tanStackStartVite(corePluginOpts, options),\n ]\n}\n"],"mappings":";;;AAWA,SAAgB,cACd,SACqB;AAWrB,QAAO,CACL;EACE,MAAM;EACN,kBAAkB,iBAAiB,SAAS;AAC1C,UAAO,EACL,cACE,oBAAoB,wBAAwB,UAC3C,oBAAoB,wBAAwB,UAE3C,QAAQ,cAAc,gBAAgB,QACpC,EAEE,SAAS;IACP;IACA;IACA;IACD,EACF,GACD,KAAA,GACP;;EAEJ,EACD,kBAhCyD;EACzD,WAAW;EACX,mBAAmB;EACnB,yBAAyB,wBAAwB;EACjD,eAAe;EACf,qBAAqB,EACnB,MAAM,WACP;EACF,EAwBmC,QAAQ,CAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-start",
|
|
3
|
-
"version": "1.167.
|
|
3
|
+
"version": "1.167.38",
|
|
4
4
|
"description": "Modern and scalable routing for Vue applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,6 +68,12 @@
|
|
|
68
68
|
"default": "./dist/esm/plugin/vite.js"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
"./plugin/rsbuild": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/esm/plugin/rsbuild.d.ts",
|
|
74
|
+
"default": "./dist/esm/plugin/rsbuild.js"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
71
77
|
"./server-entry": {
|
|
72
78
|
"import": {
|
|
73
79
|
"types": "./dist/default-entry/esm/server.d.ts",
|
|
@@ -101,24 +107,34 @@
|
|
|
101
107
|
},
|
|
102
108
|
"dependencies": {
|
|
103
109
|
"pathe": "^2.0.3",
|
|
104
|
-
"@tanstack/vue-start-client": "1.166.35",
|
|
105
|
-
"@tanstack/vue-start-server": "1.166.36",
|
|
106
|
-
"@tanstack/start-plugin-core": "1.167.35",
|
|
107
|
-
"@tanstack/vue-router": "1.168.19",
|
|
108
110
|
"@tanstack/start-client-core": "1.167.17",
|
|
109
|
-
"@tanstack/start-server-core": "1.167.19"
|
|
111
|
+
"@tanstack/start-server-core": "1.167.19",
|
|
112
|
+
"@tanstack/start-plugin-core": "1.169.0",
|
|
113
|
+
"@tanstack/vue-router": "1.168.19",
|
|
114
|
+
"@tanstack/vue-start-client": "1.166.35",
|
|
115
|
+
"@tanstack/vue-start-server": "1.166.36"
|
|
110
116
|
},
|
|
111
117
|
"devDependencies": {
|
|
118
|
+
"@rsbuild/core": "^2.0.0",
|
|
112
119
|
"@tanstack/intent": "^0.0.14",
|
|
120
|
+
"@types/node": ">=20",
|
|
113
121
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
114
122
|
"vite": "*",
|
|
115
123
|
"vue": "^3.5.25",
|
|
116
|
-
"@
|
|
117
|
-
"@tanstack/router-utils": "1.161.6"
|
|
124
|
+
"@tanstack/router-utils": "1.161.7"
|
|
118
125
|
},
|
|
119
126
|
"peerDependencies": {
|
|
120
|
-
"
|
|
121
|
-
"vite": ">=7.0.0"
|
|
127
|
+
"@rsbuild/core": "^2.0.0",
|
|
128
|
+
"vite": ">=7.0.0",
|
|
129
|
+
"vue": "^3.3.0"
|
|
130
|
+
},
|
|
131
|
+
"peerDependenciesMeta": {
|
|
132
|
+
"@rsbuild/core": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"vite": {
|
|
136
|
+
"optional": true
|
|
137
|
+
}
|
|
122
138
|
},
|
|
123
139
|
"bin": {
|
|
124
140
|
"intent": "./bin/intent.js"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RSBUILD_ENVIRONMENT_NAMES,
|
|
3
|
+
tanStackStartRsbuild,
|
|
4
|
+
} from '@tanstack/start-plugin-core/rsbuild'
|
|
5
|
+
import { vueStartDefaultEntryPaths } from './shared'
|
|
6
|
+
import type {
|
|
7
|
+
TanStackStartRsbuildInputConfig,
|
|
8
|
+
TanStackStartRsbuildPluginCoreOptions,
|
|
9
|
+
} from '@tanstack/start-plugin-core/rsbuild'
|
|
10
|
+
import type { RsbuildPlugin } from '@rsbuild/core'
|
|
11
|
+
|
|
12
|
+
export function tanstackStart(
|
|
13
|
+
options?: TanStackStartRsbuildInputConfig,
|
|
14
|
+
): RsbuildPlugin {
|
|
15
|
+
const corePluginOpts: TanStackStartRsbuildPluginCoreOptions = {
|
|
16
|
+
framework: 'vue',
|
|
17
|
+
defaultEntryPaths: vueStartDefaultEntryPaths,
|
|
18
|
+
providerEnvironmentName: RSBUILD_ENVIRONMENT_NAMES.server,
|
|
19
|
+
ssrIsProvider: true,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return tanStackStartRsbuild(corePluginOpts, options)
|
|
23
|
+
}
|
package/src/plugin/vite.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
START_ENVIRONMENT_NAMES,
|
|
3
3
|
tanStackStartVite,
|
|
4
|
-
} from '@tanstack/start-plugin-core'
|
|
4
|
+
} from '@tanstack/start-plugin-core/vite'
|
|
5
5
|
import type {
|
|
6
6
|
TanStackStartViteInputConfig,
|
|
7
7
|
TanStackStartVitePluginCoreOptions,
|
|
8
|
-
} from '@tanstack/start-plugin-core'
|
|
8
|
+
} from '@tanstack/start-plugin-core/vite'
|
|
9
9
|
import { vueStartDefaultEntryPaths } from './shared'
|
|
10
10
|
import type { PluginOption } from 'vite'
|
|
11
11
|
|