@vixt/uni 0.9.0 → 0.10.1
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/client/entry.d.ts +2 -4
- package/dist/client/entry.js +1 -3
- package/dist/client/plugins/pinia.d.ts +2 -2
- package/dist/client/plugins/pinia.js +1 -3
- package/dist/client/plugins/router.d.ts +2 -2
- package/dist/client/plugins/router.js +1 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -11
- package/package.json +6 -6
package/dist/client/entry.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "virtual:vixt:css";
|
|
2
|
-
import "virtual:uno.css";
|
|
3
1
|
import * as Pinia from "pinia";
|
|
4
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue from "vue";
|
|
5
3
|
|
|
6
4
|
//#region src/client/entry.d.ts
|
|
7
5
|
declare function createApp(): {
|
|
8
|
-
app: vue.App<Element>;
|
|
6
|
+
app: _$vue.App<Element>;
|
|
9
7
|
Pinia: typeof Pinia;
|
|
10
8
|
};
|
|
11
9
|
//#endregion
|
package/dist/client/entry.js
CHANGED
|
@@ -6,7 +6,6 @@ import appConfig from "virtual:vixt:app-config";
|
|
|
6
6
|
import plugins from "virtual:vixt:plugins";
|
|
7
7
|
import { createSSRApp } from "vue";
|
|
8
8
|
import RootComponent from "@/App.vue";
|
|
9
|
-
|
|
10
9
|
//#region src/client/entry.ts
|
|
11
10
|
function createApp() {
|
|
12
11
|
const app = createSSRApp(RootComponent);
|
|
@@ -19,6 +18,5 @@ function createApp() {
|
|
|
19
18
|
Pinia
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
export { createApp as default };
|
|
22
|
+
export { createApp as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as _vixt_core_client0 from "@vixt/core/client";
|
|
1
|
+
import * as _$_vixt_core_client0 from "@vixt/core/client";
|
|
2
2
|
|
|
3
3
|
//#region src/client/plugins/pinia.d.ts
|
|
4
|
-
declare const _default: _vixt_core_client0.VixtPlugin;
|
|
4
|
+
declare const _default: _$_vixt_core_client0.VixtPlugin;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineVixtPlugin } from "@vixt/core/client";
|
|
2
2
|
import { createPinia } from "pinia";
|
|
3
3
|
import { createPersistedState } from "pinia-plugin-persistedstate";
|
|
4
|
-
|
|
5
4
|
//#region src/client/plugins/pinia.ts
|
|
6
5
|
var pinia_default = defineVixtPlugin({
|
|
7
6
|
name: "vixt:pinia",
|
|
@@ -19,6 +18,5 @@ var pinia_default = defineVixtPlugin({
|
|
|
19
18
|
vixt.pinia = pinia;
|
|
20
19
|
}
|
|
21
20
|
});
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
export { pinia_default as default };
|
|
22
|
+
export { pinia_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as _vixt_core_client0 from "@vixt/core/client";
|
|
1
|
+
import * as _$_vixt_core_client0 from "@vixt/core/client";
|
|
2
2
|
|
|
3
3
|
//#region src/client/plugins/router.d.ts
|
|
4
|
-
declare const _default: _vixt_core_client0.VixtPlugin;
|
|
4
|
+
declare const _default: _$_vixt_core_client0.VixtPlugin;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineVixtPlugin } from "@vixt/core/client";
|
|
2
2
|
import { pages } from "virtual:uni-pages";
|
|
3
|
-
|
|
4
3
|
//#region src/client/plugins/router.ts
|
|
5
4
|
var router_default = defineVixtPlugin({
|
|
6
5
|
name: "vixt:router",
|
|
@@ -8,6 +7,5 @@ var router_default = defineVixtPlugin({
|
|
|
8
7
|
vixt.routes = pages;
|
|
9
8
|
}
|
|
10
9
|
});
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { router_default as default };
|
|
11
|
+
export { router_default as default };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _vixt_core0 from "@vixt/core";
|
|
2
|
-
import * as vite from "vite";
|
|
1
|
+
import * as _$_vixt_core0 from "@vixt/core";
|
|
2
|
+
import * as _$vite from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
declare const _default: (options?: _vixt_core0.VixtOptions | undefined) => vite.PluginOption;
|
|
5
|
+
declare const _default: (options?: _$_vixt_core0.VixtOptions | undefined) => _$vite.PluginOption;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,6 @@ import { readFileSync } from "node:fs";
|
|
|
14
14
|
import process from "node:process";
|
|
15
15
|
import { uniuseAutoImports } from "@uni-helper/uni-use";
|
|
16
16
|
import { resolveModule } from "local-pkg";
|
|
17
|
-
|
|
18
17
|
//#region src/modules/uni-patch.ts
|
|
19
18
|
/** 增加小程序中vueuse的运行所需 */
|
|
20
19
|
function transformMpRuntime(code, id) {
|
|
@@ -129,7 +128,6 @@ const uniPatch = defineVitePlugin(() => {
|
|
|
129
128
|
}
|
|
130
129
|
];
|
|
131
130
|
});
|
|
132
|
-
|
|
133
131
|
//#endregion
|
|
134
132
|
//#region src/modules/uni-use.ts
|
|
135
133
|
let _cache;
|
|
@@ -163,12 +161,8 @@ function uniVueUseResolver() {
|
|
|
163
161
|
}
|
|
164
162
|
return _cache || {};
|
|
165
163
|
}
|
|
166
|
-
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/modules/preset-uni.ts
|
|
169
|
-
const name$1 = "vixt:preset-uni";
|
|
170
164
|
var preset_uni_default = defineVixtModule({
|
|
171
|
-
meta: { name:
|
|
165
|
+
meta: { name: "vixt:preset-uni" },
|
|
172
166
|
setup(_, vixt) {
|
|
173
167
|
const { components = [], composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs([...vixt._layers].reverse());
|
|
174
168
|
const { buildTypesDir } = vixt.options;
|
|
@@ -213,7 +207,6 @@ var preset_uni_default = defineVixtModule({
|
|
|
213
207
|
];
|
|
214
208
|
}
|
|
215
209
|
});
|
|
216
|
-
|
|
217
210
|
//#endregion
|
|
218
211
|
//#region src/modules/uni-modules.ts
|
|
219
212
|
function copyUniModules(options, vixt) {
|
|
@@ -259,7 +252,6 @@ var uni_modules_default = defineVixtModule({
|
|
|
259
252
|
};
|
|
260
253
|
}
|
|
261
254
|
});
|
|
262
|
-
|
|
263
255
|
//#endregion
|
|
264
256
|
//#region src/index.ts
|
|
265
257
|
const plugins = ["@vixt/uni/client/plugins/pinia", "@vixt/uni/client/plugins/router"];
|
|
@@ -284,6 +276,5 @@ var src_default = createVixtPlugin({ defaults: {
|
|
|
284
276
|
} },
|
|
285
277
|
vite: { optimizeDeps: { exclude: plugins } }
|
|
286
278
|
} });
|
|
287
|
-
|
|
288
279
|
//#endregion
|
|
289
|
-
export { src_default as default };
|
|
280
|
+
export { src_default as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/uni",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@dcloudio/types": "^3.4.28",
|
|
29
|
-
"@uni-helper/uni-app-types": "^1.0.0-alpha.
|
|
29
|
+
"@uni-helper/uni-app-types": "^1.0.0-alpha.8",
|
|
30
30
|
"@uni-helper/uni-use": "^0.19.17",
|
|
31
31
|
"@uni-helper/unocss-preset-uni": "^0.2.11",
|
|
32
|
-
"@uni-helper/vite-plugin-uni-components": "
|
|
32
|
+
"@uni-helper/vite-plugin-uni-components": "0.2.6",
|
|
33
33
|
"@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
|
|
34
|
-
"@uni-helper/vite-plugin-uni-pages": "^0.3.
|
|
34
|
+
"@uni-helper/vite-plugin-uni-pages": "^0.3.24",
|
|
35
35
|
"unocss-applet": "^0.12.2",
|
|
36
|
-
"@vixt/core": "0.
|
|
37
|
-
"@vixt/vue": "0.
|
|
36
|
+
"@vixt/core": "0.10.1",
|
|
37
|
+
"@vixt/vue": "0.10.1"
|
|
38
38
|
}
|
|
39
39
|
}
|