@markless/router 0.1.1 → 0.2.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/debug-channel-C7v9u5SM.js +250 -0
- package/dist/index.js +4 -2
- package/dist/typescript-plugin.cjs +227 -0
- package/dist/typescript-plugin.js +92 -2
- package/dist/vite/runtime/create-route-discovery.js +1 -1
- package/dist/vite/runtime/create-server-entry.d.ts +2 -0
- package/dist/vite/runtime/create-server-entry.js +91 -21
- package/dist/vite.js +311 -28
- package/package.json +20 -6
- package/src/vite/entries/server-entry.ts +3 -0
- /package/dist/{request-files-DTkeaKxU.js → request-files-C-0LLSsx.js} +0 -0
- /package/dist/{route-manifest-OTaWQ_TC.js → route-manifest-DPgGIyrS.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markless/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Markless router: client-side navigation with SSR streaming and build-time preload maps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,19 @@
|
|
|
8
8
|
"url": "git+https://github.com/markless-dev/markless.git",
|
|
9
9
|
"directory": "packages/router"
|
|
10
10
|
},
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
11
|
"files": [
|
|
15
12
|
"dist",
|
|
16
13
|
"src/vite/entries"
|
|
17
14
|
],
|
|
18
15
|
"type": "module",
|
|
19
16
|
"sideEffects": false,
|
|
17
|
+
"typesVersions": {
|
|
18
|
+
"*": {
|
|
19
|
+
"typescript-plugin": [
|
|
20
|
+
"dist/typescript-plugin.cjs"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
20
24
|
"exports": {
|
|
21
25
|
".": {
|
|
22
26
|
"types": "./dist/index.d.ts",
|
|
@@ -44,9 +48,14 @@
|
|
|
44
48
|
},
|
|
45
49
|
"./typescript-plugin": {
|
|
46
50
|
"types": "./dist/typescript-plugin.d.ts",
|
|
51
|
+
"require": "./dist/typescript-plugin.cjs",
|
|
47
52
|
"default": "./dist/typescript-plugin.js"
|
|
48
53
|
}
|
|
49
54
|
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"provenance": true
|
|
58
|
+
},
|
|
50
59
|
"dependencies": {
|
|
51
60
|
"@tsrx/core": "^0.1.32",
|
|
52
61
|
"@virtualstate/navigation": "1.0.1-alpha.212",
|
|
@@ -55,8 +64,11 @@
|
|
|
55
64
|
"pathe": "^2.0.3",
|
|
56
65
|
"satteri": "0.6.3",
|
|
57
66
|
"ufo": "^1.6.4",
|
|
58
|
-
"@markless/bundler": "0.
|
|
59
|
-
"@markless/web": "0.
|
|
67
|
+
"@markless/bundler": "0.2.0",
|
|
68
|
+
"@markless/web": "0.2.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@markless/analyzer": "0.2.0"
|
|
60
72
|
},
|
|
61
73
|
"peerDependencies": {
|
|
62
74
|
"vite": "8.0.16"
|
|
@@ -67,6 +79,8 @@
|
|
|
67
79
|
}
|
|
68
80
|
},
|
|
69
81
|
"scripts": {
|
|
82
|
+
"build:cjs": "vp pack src/typescript-plugin/index.ts --no-config --format cjs --platform node --out-dir dist --clean=false --no-dts --no-report && node -e \"require('node:fs').renameSync('dist/index.cjs','dist/typescript-plugin.cjs')\"",
|
|
83
|
+
"build:vsix": "vp pack src/typescript-plugin/index.ts --no-config --format cjs --platform node --out-dir ../vscode-plugin/dist/vsix-build/router --clean --no-dts --no-report --deps.alwaysBundle '/.*/' --deps.never-bundle typescript",
|
|
70
84
|
"test:boxes": "witness run"
|
|
71
85
|
}
|
|
72
86
|
}
|
|
@@ -4,15 +4,18 @@ import { navigationEntryPath } from 'virtual:markless-router/navigation-entry-pa
|
|
|
4
4
|
import {
|
|
5
5
|
routeModulePreloads,
|
|
6
6
|
routeSsrModulePreloads,
|
|
7
|
+
routeStylesheets,
|
|
7
8
|
} from 'virtual:markless-router/route-preloads';
|
|
8
9
|
import { pageModuleLoaders, routeFileIds } from 'virtual:markless-router/routes';
|
|
9
10
|
|
|
10
11
|
const documentModuleLoaders = import.meta.glob(['/document.tsrx']);
|
|
11
12
|
const entry = createServerEntry({
|
|
13
|
+
dev: import.meta.env.DEV,
|
|
12
14
|
resumeEntryPath,
|
|
13
15
|
navigationEntryPath,
|
|
14
16
|
routeModulePreloads,
|
|
15
17
|
routeSsrModulePreloads,
|
|
18
|
+
routeStylesheets,
|
|
16
19
|
documentModuleLoader: documentModuleLoaders['/document.tsrx'],
|
|
17
20
|
pageModuleLoaders,
|
|
18
21
|
routeFileIds,
|
|
File without changes
|
|
File without changes
|