@vixt/vitepress 0.6.1 → 0.6.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -6
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -17,9 +17,6 @@ var config_patch_default = defineVitePlugin(() => {
17
17
  config(config) {
18
18
  const siteBase = config.vitepress?.userConfig?.base;
19
19
  if (siteBase) return { base: siteBase };
20
- },
21
- configResolved(config) {
22
- for (const plugin of config.plugins) if (plugin.name === "vixt:app") delete plugin.transformIndexHtml;
23
20
  }
24
21
  };
25
22
  });
@@ -85,15 +82,18 @@ var preset_vitepress_default = defineVixtModule({
85
82
 
86
83
  //#endregion
87
84
  //#region src/index.ts
85
+ const plugins = ["@vixt/vitepress/client/plugins/pinia"];
88
86
  var src_default = createVixtPlugin({ defaults: {
89
87
  srcDir: path.resolve(cwd(), ".vitepress/theme"),
90
88
  modules: [preset_vitepress_default],
91
- plugins: ["@vixt/vitepress/client/plugins/pinia"],
89
+ plugins,
92
90
  app: {
93
91
  entryFile: "index.ts",
94
- entryCode: fs.readFileSync(resolvePathSync("@vixt/vitepress/client/entry"), "utf-8")
92
+ entryCode: fs.readFileSync(resolvePathSync("@vixt/vitepress/client/entry"), "utf-8"),
93
+ transformIndexHtml: false
95
94
  },
96
- typescript: { tsConfig: { compilerOptions: { types: ["@vixt/vitepress/types"] } } }
95
+ typescript: { tsConfig: { compilerOptions: { types: ["@vixt/vitepress/types"] } } },
96
+ vite: { optimizeDeps: { exclude: plugins } }
97
97
  } });
98
98
 
99
99
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/vitepress",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.3",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "vitepress": "^1.6.4",
27
- "@vixt/core": "0.6.1",
28
- "@vixt/vue": "0.6.1"
27
+ "@vixt/core": "0.6.3",
28
+ "@vixt/vue": "0.6.3"
29
29
  }
30
30
  }