@vixt/react 0.6.5 → 0.6.7
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 +1 -1
- package/dist/client/entry.js +2 -2
- package/package.json +2 -2
- package/src/client/entry.ts +2 -2
package/dist/client/entry.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import "virtual:uno.css";
|
|
|
3
3
|
import * as react_dom_client0 from "react-dom/client";
|
|
4
4
|
|
|
5
5
|
//#region src/client/entry.d.ts
|
|
6
|
-
declare function entry():
|
|
6
|
+
declare function entry(): react_dom_client0.Root;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { entry as default };
|
package/dist/client/entry.js
CHANGED
|
@@ -8,14 +8,14 @@ import plugins from "virtual:vixt:plugins";
|
|
|
8
8
|
import RootComponent from "virtual:vixt:root-component.tsx";
|
|
9
9
|
|
|
10
10
|
//#region src/client/entry.ts
|
|
11
|
-
|
|
11
|
+
function entry() {
|
|
12
12
|
const app = createRoot(document.getElementById(appConfig.rootId || "app"));
|
|
13
13
|
const vixt = createVixtApp({
|
|
14
14
|
app,
|
|
15
15
|
appConfig
|
|
16
16
|
});
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
applyPlugins(vixt, plugins);
|
|
19
19
|
} catch (err) {
|
|
20
20
|
console.error(err);
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.7",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -36,6 +36,6 @@
|
|
|
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.6.
|
|
39
|
+
"@vixt/core": "0.6.7"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/src/client/entry.ts
CHANGED
|
@@ -10,12 +10,12 @@ import plugins from 'virtual:vixt:plugins'
|
|
|
10
10
|
// @ts-expect-error virtual file
|
|
11
11
|
import RootComponent from 'virtual:vixt:root-component.tsx'
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
function entry() {
|
|
14
14
|
const app = createRoot(document.getElementById(appConfig.rootId || 'app')!)
|
|
15
15
|
const vixt = createVixtApp({ app, appConfig })
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
applyPlugins(vixt, plugins)
|
|
19
19
|
}
|
|
20
20
|
catch (err) {
|
|
21
21
|
console.error(err)
|