@vixt/react 0.6.8 → 0.7.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.
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
- package/src/modules/preset-react.ts +3 -1
package/dist/index.mjs
CHANGED
|
@@ -8744,7 +8744,7 @@ function extendRoute(route) {
|
|
|
8744
8744
|
const name$2 = "vixt:preset-react";
|
|
8745
8745
|
var preset_react_default = defineVixtModule({
|
|
8746
8746
|
meta: { name: name$2 },
|
|
8747
|
-
|
|
8747
|
+
setup(_, vixt) {
|
|
8748
8748
|
const { components = [], constants: constants$1 = [], hooks = [], layouts = [], pages = [], stores = [], utils = [] } = resolveLayersDirs([...vixt._layers].reverse());
|
|
8749
8749
|
const { buildTypesDir } = vixt.options;
|
|
8750
8750
|
const defaultOptions$1 = {
|
|
@@ -8773,7 +8773,9 @@ var preset_react_default = defineVixtModule({
|
|
|
8773
8773
|
hooks,
|
|
8774
8774
|
stores,
|
|
8775
8775
|
utils
|
|
8776
|
-
].flat()
|
|
8776
|
+
].flat(),
|
|
8777
|
+
exclude: [],
|
|
8778
|
+
include: []
|
|
8777
8779
|
},
|
|
8778
8780
|
unocss: {}
|
|
8779
8781
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"react": "^19.2.3",
|
|
31
31
|
"react-dom": "^19.2.3",
|
|
32
|
-
"react-router": "^7.
|
|
32
|
+
"react-router": "^7.12.0",
|
|
33
33
|
"unocss": "^66.5.12",
|
|
34
34
|
"unplugin-auto-import": "^20.3.0",
|
|
35
35
|
"unplugin-vue-components": "28.0.0",
|
|
36
36
|
"vite-plugin-pages": "^0.33.2",
|
|
37
37
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
38
38
|
"yaml": "^2.8.2",
|
|
39
|
-
"@vixt/core": "0.
|
|
39
|
+
"@vixt/core": "0.7.0"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -14,7 +14,7 @@ import { extendRoute } from './route-block'
|
|
|
14
14
|
const name = 'vixt:preset-react'
|
|
15
15
|
export default defineVixtModule<VixtOptions>({
|
|
16
16
|
meta: { name },
|
|
17
|
-
|
|
17
|
+
setup(_, vixt) {
|
|
18
18
|
const { components = [], constants = [], hooks = [], layouts = [], pages = [], stores = [], utils = [] } = resolveLayersDirs([...vixt._layers].reverse())
|
|
19
19
|
const { buildTypesDir } = vixt.options
|
|
20
20
|
|
|
@@ -34,6 +34,8 @@ export default defineVixtModule<VixtOptions>({
|
|
|
34
34
|
imports: ['react', 'react-router', 'ahooks', componentsResolver({ dirs: components }), VixtClientAutoImports],
|
|
35
35
|
dts: `${buildTypesDir}/auto-imports.d.ts`,
|
|
36
36
|
dirs: [constants, hooks, stores, utils].flat(),
|
|
37
|
+
exclude: [],
|
|
38
|
+
include: [],
|
|
37
39
|
},
|
|
38
40
|
unocss: {},
|
|
39
41
|
}
|