@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.cjs +6 -6
- package/dist/index.d.cts +2493 -220
- package/dist/index.d.mts +2493 -220
- package/dist/index.d.ts +2493 -220
- package/dist/index.mjs +6 -6
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -47,12 +47,12 @@ function getDeclaration(ctx) {
|
|
|
47
47
|
// @ts-nocheck
|
|
48
48
|
// Generated by vite-plugin-uni-pages
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
interface NavigateToOptions {
|
|
51
51
|
url: ${allPagesPath.join(" |\n ")};
|
|
52
52
|
}
|
|
53
53
|
interface RedirectToOptions extends NavigateToOptions {}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
interface SwitchTabOptions {
|
|
56
56
|
${tabsPagesPath.length ? `url: ${tabsPagesPath.join(" | ")}` : ""}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -92,10 +92,10 @@ async function parseSFC(code) {
|
|
|
92
92
|
}).descriptor || compilerSfc.parse({
|
|
93
93
|
source: code
|
|
94
94
|
});
|
|
95
|
-
} catch {
|
|
96
|
-
throw new Error(
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
} catch (error) {
|
|
96
|
+
throw new Error(`[vite-plugin-uni-pages] Vue3's "@vue/compiler-sfc" is required.
|
|
97
|
+
Original error:
|
|
98
|
+
${error}`);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function parseCustomBlock(block, filePath, options) {
|