@vitarx/plugin-vite 0.0.1-beta.6 → 0.0.1-beta.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.
@@ -205,10 +205,11 @@ export function filterEffectiveChildren(node) {
205
205
  });
206
206
  }
207
207
  /**
208
- * 校验 Match 组件必须在 Switch 内使用
208
+ * 校验子节点中不能直接包含 Match 组件
209
+ * Match 必须在 Switch 内使用,非 Switch 元素的子节点中不允许出现 Match
209
210
  * @param children - 子节点数组
210
211
  */
211
- export function validateMatchInSwitch(children) {
212
+ export function validateNoDirectMatchChild(children) {
212
213
  for (const child of children) {
213
214
  if (isJSXElement(child)) {
214
215
  const childName = getJSXElementName(child);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitarx/plugin-vite",
3
- "version": "0.0.1-beta.6",
3
+ "version": "0.0.1-beta.8",
4
4
  "description": "The official plugin for Vitarx support in Vite.",
5
5
  "author": "ZhuChongLin <8210856@qq.com>",
6
6
  "license": "MIT",
@@ -26,6 +26,12 @@
26
26
  "types": "./dist/index.d.ts",
27
27
  "default": "./dist/index.js"
28
28
  }
29
+ },
30
+ "./transform": {
31
+ "import": {
32
+ "types": "./dist/transform.d.ts",
33
+ "default": "./dist/transform.js"
34
+ }
29
35
  }
30
36
  },
31
37
  "peerDependencies": {
@@ -53,11 +59,13 @@
53
59
  "prettier": "^3.8.1",
54
60
  "rimraf": "^6.1.3",
55
61
  "vitest": "^4.0.18",
56
- "vite": "^8.0.2"
62
+ "vite": "^8.0.5",
63
+ "vitarx": "^4.0.0-beta.8"
57
64
  },
58
65
  "scripts": {
59
- "build": "rimraf dist && tsc",
66
+ "build": "vitest run && rimraf dist && tsc -p tsconfig.build.json",
60
67
  "test": "vitest run",
68
+ "typecheck": "tsc --noEmit",
61
69
  "release": "release-cli"
62
70
  }
63
71
  }