valaxy 0.25.5 → 0.25.6

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.
@@ -4,7 +4,7 @@ import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
6
  // package.json
7
- var version = "0.25.5";
7
+ var version = "0.25.6";
8
8
 
9
9
  // node/modules/fuse.ts
10
10
  import path4 from "path";
@@ -373,6 +373,9 @@ var defaultValaxyConfig = {
373
373
  // cssCodeSplit: false,
374
374
  }
375
375
  },
376
+ vue: {
377
+ browserTemplateCompilation: true
378
+ },
376
379
  devtools: true
377
380
  };
378
381
  function defineValaxyConfig(config) {
@@ -1448,7 +1451,7 @@ async function getAlias(options) {
1448
1451
  { find: `valaxy-theme-${options.theme}/`, replacement: `${toAtFS(resolve6(options.themeRoot))}/` },
1449
1452
  { find: `valaxy-theme-${options.theme}`, replacement: `${toAtFS(resolve6(options.themeRoot))}/client/index.ts` }
1450
1453
  ];
1451
- if (options.config.siteConfig.encrypt.enable) {
1454
+ if (options.config.vue?.browserTemplateCompilation) {
1452
1455
  alias.push(
1453
1456
  { find: /^vue$/, replacement: await resolveImportPath("vue/dist/vue.esm-bundler.js", true) }
1454
1457
  );
@@ -3,7 +3,7 @@ import {
3
3
  registerDevCommand,
4
4
  run,
5
5
  startValaxyDev
6
- } from "../../chunk-D6OORM36.js";
6
+ } from "../../chunk-KREZGAGZ.js";
7
7
  export {
8
8
  cli,
9
9
  registerDevCommand,
@@ -276,7 +276,24 @@ interface ValaxyExtendConfig {
276
276
  * @see https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/README.md
277
277
  */
278
278
  vue?: Parameters<typeof Vue>[0] & {
279
+ /**
280
+ * @valaxy
281
+ */
279
282
  isCustomElement?: ((tag: string) => boolean)[];
283
+ /**
284
+ * @valaxy
285
+ * @see https://cn.vuejs.org/guide/scaling-up/tooling#note-on-in-browser-template-compilation
286
+ * enable
287
+ *
288
+ * for runtime compile vue, encrypt and decrypt
289
+ * for excerpt_type: html (runtime render)
290
+ *
291
+ * @default true
292
+ *
293
+ * browserTemplateCompilation
294
+ * @description 支持浏览器内的模板编译
295
+ */
296
+ browserTemplateCompilation?: boolean;
280
297
  };
281
298
  /**
282
299
  * @see https://github.com/unplugin/unplugin-vue-components
@@ -50,7 +50,7 @@ import {
50
50
  startValaxyDev,
51
51
  toAtFS,
52
52
  transformObject
53
- } from "../chunk-D6OORM36.js";
53
+ } from "../chunk-KREZGAGZ.js";
54
54
  export {
55
55
  $t,
56
56
  ALL_ROUTE,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.25.5",
4
+ "version": "0.25.6",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -100,7 +100,7 @@
100
100
  "markdown-it-table-of-contents": "^0.9.0",
101
101
  "markdown-it-task-lists": "^2.1.1",
102
102
  "medium-zoom": "^1.1.0",
103
- "mermaid": "^11.8.1",
103
+ "mermaid": "^11.9.0",
104
104
  "mlly": "^1.7.4",
105
105
  "nprogress": "^0.2.0",
106
106
  "open": "10.1.0",
@@ -128,11 +128,11 @@
128
128
  "vite-ssg-sitemap": "^0.9.0",
129
129
  "vitepress-plugin-group-icons": "^1.6.1",
130
130
  "vue": "^3.5.17",
131
- "vue-i18n": "^11.1.9",
131
+ "vue-i18n": "^11.1.10",
132
132
  "vue-router": "^4.5.1",
133
133
  "yargs": "^18.0.0",
134
- "@valaxyjs/devtools": "0.25.5",
135
- "@valaxyjs/utils": "0.25.5"
134
+ "@valaxyjs/devtools": "0.25.6",
135
+ "@valaxyjs/utils": "0.25.6"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@mdit-vue/plugin-component": "^2.1.4",