@wevu/compiler 7.1.4 → 7.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.
@@ -0,0 +1,2 @@
1
+ import { n as StaticRouteValue, t as StaticPageDeclaration } from "../public-DEO6JWFi.mjs";
2
+ export { StaticPageDeclaration, StaticRouteValue };
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,16 @@
1
+ //#region src/pageDeclaration/public.d.ts
2
+ /**
3
+ * 路由元信息支持的有限静态 JSON 值。
4
+ */
5
+ type StaticRouteValue = null | boolean | number | string | StaticRouteValue[] | {
6
+ [key: string]: StaticRouteValue;
7
+ };
8
+ /**
9
+ * `definePage` 在编译期提取的页面路由声明。
10
+ */
11
+ interface StaticPageDeclaration {
12
+ name: string;
13
+ meta?: Record<string, StaticRouteValue>;
14
+ }
15
+ //#endregion
16
+ export { StaticRouteValue as n, StaticPageDeclaration as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/compiler",
3
3
  "type": "module",
4
- "version": "7.1.4",
4
+ "version": "7.2.0",
5
5
  "description": "wevu 编译器基础包,面向小程序模板的编译与转换",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -34,11 +34,25 @@
34
34
  "types": "./dist/index.d.mts",
35
35
  "default": "./dist/index.mjs"
36
36
  }
37
+ },
38
+ "./page-route": {
39
+ "types": "./dist/pageDeclaration/public.d.mts",
40
+ "import": {
41
+ "types": "./dist/pageDeclaration/public.d.mts",
42
+ "default": "./dist/pageDeclaration/public.mjs"
43
+ }
37
44
  }
38
45
  },
39
46
  "main": "./dist/index.mjs",
40
47
  "module": "./dist/index.mjs",
41
48
  "types": "./dist/index.d.mts",
49
+ "typesVersions": {
50
+ "*": {
51
+ "page-route": [
52
+ "dist/pageDeclaration/public.d.mts"
53
+ ]
54
+ }
55
+ },
42
56
  "files": [
43
57
  "dist"
44
58
  ],
@@ -51,9 +65,9 @@
51
65
  "@vue/babel-plugin-jsx": "3.0.0",
52
66
  "@vue/compiler-core": "^3.5.43",
53
67
  "@vue/compiler-dom": "^3.5.43",
54
- "@weapp-core/constants": "0.2.5",
55
- "@weapp-core/shared": "3.2.4",
56
- "@weapp-vite/ast": "7.1.4",
68
+ "@weapp-core/constants": "0.2.6",
69
+ "@weapp-core/shared": "3.2.5",
70
+ "@weapp-vite/ast": "7.2.0",
57
71
  "comment-json": "^5.0.0",
58
72
  "lru-cache": "^11.5.3",
59
73
  "magic-string": "^1.4.1",
@@ -61,7 +75,7 @@
61
75
  "pathe": "^2.0.3",
62
76
  "postcss": "^8.5.28",
63
77
  "postcss-selector-parser": "^7.1.6",
64
- "rolldown-require": "2.0.31",
78
+ "rolldown-require": "2.0.32",
65
79
  "vue": "^3.5.43"
66
80
  },
67
81
  "tsd": {