@vixt/vue 0.8.0 → 0.9.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.
@@ -1,8 +1,8 @@
1
1
  import "virtual:vixt:css";
2
2
  import "virtual:uno.css";
3
- import * as vue0 from "vue";
3
+ import * as vue from "vue";
4
4
 
5
5
  //#region src/client/entry.d.ts
6
- declare function entry(): vue0.App<Element>;
6
+ declare function entry(): vue.App<Element>;
7
7
  //#endregion
8
8
  export { entry as default };
@@ -22,7 +22,6 @@ function entry() {
22
22
  return app;
23
23
  }
24
24
  entry();
25
- var entry_default = entry;
26
25
 
27
26
  //#endregion
28
- export { entry_default as default };
27
+ export { entry as default };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _vixt_core0 from "@vixt/core";
2
- import * as vite0 from "vite";
2
+ import * as vite from "vite";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare const _default: (options?: _vixt_core0.VixtOptions | undefined) => vite0.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
@@ -12,13 +12,13 @@ import VueJsx from "@vitejs/plugin-vue-jsx";
12
12
  import UnoCSS from "unocss/vite";
13
13
  import AutoImport from "unplugin-auto-import/vite";
14
14
  import Components from "unplugin-vue-components/vite";
15
- import { VueRouterAutoImports } from "unplugin-vue-router";
16
- import VueRouter from "unplugin-vue-router/vite";
17
15
  import VueDevTools from "vite-plugin-vue-devtools";
18
16
  import Layouts from "vite-plugin-vue-layouts";
17
+ import { VueRouterAutoImports } from "vue-router/unplugin";
18
+ import VueRouter from "vue-router/vite";
19
19
  import { parse } from "@vue/compiler-sfc";
20
20
 
21
- //#region rolldown:runtime
21
+ //#region \0rolldown/runtime.js
22
22
  var __create = Object.create;
23
23
  var __defProp = Object.defineProperty;
24
24
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -8817,11 +8817,14 @@ var src_default = createVixtPlugin({ defaults: {
8817
8817
  content: "width=device-width, initial-scale=1.0"
8818
8818
  }] }
8819
8819
  },
8820
- typescript: { tsConfig: { compilerOptions: { types: [
8821
- "@vixt/vue/types",
8822
- "vite-plugin-vue-layouts/client",
8823
- "unplugin-vue-router/client"
8824
- ] } } },
8820
+ typescript: { tsConfig: {
8821
+ compilerOptions: { types: [
8822
+ "@vixt/vue/types",
8823
+ "vue-router/auto",
8824
+ "vite-plugin-vue-layouts/client"
8825
+ ] },
8826
+ vueCompilerOptions: { plugins: ["vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks"] }
8827
+ } },
8825
8828
  vite: { optimizeDeps: { exclude: plugins } }
8826
8829
  } });
8827
8830
 
@@ -4,15 +4,15 @@ import type { ExtractPluginOptions } from '@vixt/core'
4
4
  import type UnoCSS from 'unocss/vite'
5
5
  import type AutoImport from 'unplugin-auto-import/vite'
6
6
  import type Components from 'unplugin-vue-components/vite'
7
- import type VueRouter from 'unplugin-vue-router/vite'
8
7
  import type VueDevTools from 'vite-plugin-vue-devtools'
9
8
  import type Layouts from 'vite-plugin-vue-layouts'
9
+ import type VueRouter from 'vue-router/vite'
10
10
 
11
11
  declare module '@vixt/core' {
12
12
  interface VixtOptions {
13
13
  vue?: ExtractPluginOptions<typeof Vue>
14
14
  vueJsx?: ExtractPluginOptions<typeof VueJsx>
15
- /** https://github.com/posva/unplugin-vue-router */
15
+ /** https://router.vuejs.org/file-based-routing/ */
16
16
  router?: ExtractPluginOptions<typeof VueRouter>
17
17
  /** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
18
18
  layouts?: ExtractPluginOptions<typeof Layouts>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/vue",
3
3
  "type": "module",
4
- "version": "0.8.0",
4
+ "version": "0.9.0",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -24,20 +24,19 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@vitejs/plugin-vue": "^6.0.3",
28
- "@vitejs/plugin-vue-jsx": "^5.1.3",
27
+ "@vitejs/plugin-vue": "^6.0.4",
28
+ "@vitejs/plugin-vue-jsx": "^5.1.4",
29
29
  "@vueuse/core": "^13.9.0",
30
30
  "pinia": "^3.0.4",
31
31
  "pinia-plugin-persistedstate": "^4.7.1",
32
32
  "unocss": "^66.6.0",
33
33
  "unplugin-auto-import": "^21.0.0",
34
34
  "unplugin-vue-components": "28.0.0",
35
- "unplugin-vue-router": "^0.19.2",
36
- "vite-plugin-vue-devtools": "^8.0.5",
35
+ "vite-plugin-vue-devtools": "^8.0.6",
37
36
  "vite-plugin-vue-layouts": "^0.11.0",
38
- "vue": "^3.5.27",
39
- "vue-router": "^4.6.4",
40
- "vue-tsc": "^3.2.4",
41
- "@vixt/core": "0.8.0"
37
+ "vue": "^3.5.29",
38
+ "vue-router": "^5.0.3",
39
+ "vue-tsc": "^3.2.5",
40
+ "@vixt/core": "0.9.0"
42
41
  }
43
42
  }