@uni-helper/vite-plugin-uni-pages 0.2.14 → 0.2.17

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.mjs CHANGED
@@ -32,12 +32,12 @@ function getDeclaration(ctx) {
32
32
  // @ts-nocheck
33
33
  // Generated by vite-plugin-uni-pages
34
34
 
35
- export interface NavigateToOptions {
35
+ interface NavigateToOptions {
36
36
  url: ${allPagesPath.join(" |\n ")};
37
37
  }
38
38
  interface RedirectToOptions extends NavigateToOptions {}
39
39
 
40
- export interface SwitchTabOptions {
40
+ interface SwitchTabOptions {
41
41
  ${tabsPagesPath.length ? `url: ${tabsPagesPath.join(" | ")}` : ""}
42
42
  }
43
43
 
@@ -77,10 +77,10 @@ async function parseSFC(code) {
77
77
  }).descriptor || parse({
78
78
  source: code
79
79
  });
80
- } catch {
81
- throw new Error(
82
- `[vite-plugin-uni-pages] Vue3's "@vue/compiler-sfc" is required.`
83
- );
80
+ } catch (error) {
81
+ throw new Error(`[vite-plugin-uni-pages] Vue3's "@vue/compiler-sfc" is required.
82
+ Original error:
83
+ ${error}`);
84
84
  }
85
85
  }
86
86
  function parseCustomBlock(block, filePath, options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uni-helper/vite-plugin-uni-pages",
3
3
  "type": "module",
4
- "version": "0.2.14",
4
+ "version": "0.2.17",
5
5
  "description": "File system based routing for uni-app applications using Vite",
6
6
  "author": "KeJun",
7
7
  "license": "MIT",
@@ -37,20 +37,20 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@uni-helper/uni-env": "^0.1.1",
40
- "@vue/compiler-sfc": "^3.4.5",
41
- "chokidar": "^3.5.3",
40
+ "@vue/compiler-sfc": "^3.4.21",
41
+ "chokidar": "^3.6.0",
42
42
  "debug": "^4.3.4",
43
43
  "fast-glob": "^3.3.2",
44
44
  "json5": "^2.2.3",
45
45
  "lodash-unified": "^1.0.3",
46
- "magic-string": "^0.30.5",
46
+ "magic-string": "^0.30.8",
47
47
  "unconfig": "^0.3.11",
48
- "yaml": "^2.3.4"
48
+ "yaml": "^2.4.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@antfu/utils": "^0.7.7",
52
52
  "@types/debug": "^4.1.12",
53
- "@types/node": "^20.10.6"
53
+ "@types/node": "^20.11.24"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "unbuild",