@revojs/vue 0.2.8 → 0.2.10
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/index.js +2 -2
- package/dist/module/index.js +7 -1
- package/package.json +2 -1
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVueApp } from "../index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createClientScope } from "@revojs/client";
|
|
3
3
|
//#region src/client/index.ts
|
|
4
|
-
await createVueApp(await
|
|
4
|
+
await createVueApp(await createClientScope()).then((app) => app.mount("#app"));
|
|
5
5
|
//#endregion
|
|
6
6
|
export {};
|
package/dist/module/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import client from "@revojs/client/module";
|
|
2
2
|
import server from "@revojs/server/module";
|
|
3
3
|
import vueCompiler from "@vitejs/plugin-vue";
|
|
4
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
4
5
|
import { addTypes, defineModule, useModule } from "revojs/module";
|
|
6
|
+
import { mergeObjects } from "revojs/shared";
|
|
5
7
|
//#region src/module/index.ts
|
|
6
8
|
var module_default = defineModule({
|
|
7
9
|
name: "vue",
|
|
@@ -53,7 +55,11 @@ var module_default = defineModule({
|
|
|
53
55
|
}] }
|
|
54
56
|
} },
|
|
55
57
|
vite: {
|
|
56
|
-
plugins: [vueCompiler(config.vue.compilerOption
|
|
58
|
+
plugins: [vueCompiler(mergeObjects(config.vue.compilerOption, { script: { fs: {
|
|
59
|
+
fileExists: existsSync,
|
|
60
|
+
readFile: (file) => readFileSync(file, "utf8"),
|
|
61
|
+
realpath: realpathSync
|
|
62
|
+
} } }))],
|
|
57
63
|
optimizeDeps: { exclude: ["vue"] }
|
|
58
64
|
}
|
|
59
65
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revojs/vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "vite build",
|
|
31
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
31
32
|
"watch": "vite build --watch"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|