vitrify 0.6.7 → 0.6.8
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/index.js
CHANGED
|
@@ -380,6 +380,10 @@ export const baseConfig = async ({ ssr, appDir, publicDir, base = '/', command =
|
|
|
380
380
|
{
|
|
381
381
|
find: new RegExp('^vue$'),
|
|
382
382
|
replacement: 'vue/dist/vue.runtime.esm-bundler.js'
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
find: new RegExp('^vue-router$'),
|
|
386
|
+
replacement: 'vue-router/dist/vue-router.esm-bundler.js'
|
|
383
387
|
}
|
|
384
388
|
// { find: 'vue', replacement: packageUrls['vue'].pathname },
|
|
385
389
|
// { find: 'vue-router', replacement: packageUrls['vue-router'].pathname },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const routesToPaths: (routes?:
|
|
1
|
+
import type { RouteRecord } from 'vue-router';
|
|
2
|
+
export declare const routesToPaths: (routes?: RouteRecord[]) => string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitrify",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Stefan van Herwijnen",
|
|
6
6
|
"description": "Pre-configured Vite CLI for your framework",
|
|
@@ -87,18 +87,18 @@
|
|
|
87
87
|
"@types/node": "^18.0.1",
|
|
88
88
|
"@types/ws": "^8.5.3",
|
|
89
89
|
"@vue/runtime-core": "^3.2.37",
|
|
90
|
-
"quasar": "^2.7.
|
|
90
|
+
"quasar": "^2.7.5",
|
|
91
91
|
"rollup": "^2.75.7",
|
|
92
92
|
"typescript": "^4.7.4",
|
|
93
93
|
"vue": "^3.2.37",
|
|
94
|
-
"vue-router": "^4.0
|
|
94
|
+
"vue-router": "^4.1.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"@fastify/static": "^6.4.0",
|
|
98
98
|
"fastify": "^4.2.0",
|
|
99
|
-
"quasar": "^2.7.
|
|
99
|
+
"quasar": "^2.7.5",
|
|
100
100
|
"vue": "^3.2.37",
|
|
101
|
-
"vue-router": "^4.0
|
|
101
|
+
"vue-router": "^4.1.0"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// https://github.com/antfu/vite-ssg/blob/462722203dade87365a519d847fcd881ee16a7f4/src/node/utils.ts#L13
|
|
2
|
-
import type {
|
|
2
|
+
import type { RouteRecord } from 'vue-router'
|
|
3
3
|
|
|
4
|
-
export const routesToPaths = (routes?:
|
|
4
|
+
export const routesToPaths = (routes?: RouteRecord[]) => {
|
|
5
5
|
if (!routes) return ['/']
|
|
6
6
|
|
|
7
7
|
const paths: Set<string> = new Set()
|
|
8
8
|
|
|
9
|
-
const getPaths = (routes:
|
|
9
|
+
const getPaths = (routes: RouteRecord[], prefix = '') => {
|
|
10
10
|
// remove trailing slash
|
|
11
11
|
prefix = prefix.replace(/\/$/g, '')
|
|
12
12
|
for (const route of routes) {
|
package/src/node/index.ts
CHANGED
|
@@ -462,6 +462,10 @@ export const baseConfig = async ({
|
|
|
462
462
|
{
|
|
463
463
|
find: new RegExp('^vue$'),
|
|
464
464
|
replacement: 'vue/dist/vue.runtime.esm-bundler.js'
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
find: new RegExp('^vue-router$'),
|
|
468
|
+
replacement: 'vue-router/dist/vue-router.esm-bundler.js'
|
|
465
469
|
}
|
|
466
470
|
// { find: 'vue', replacement: packageUrls['vue'].pathname },
|
|
467
471
|
// { find: 'vue-router', replacement: packageUrls['vue-router'].pathname },
|