@keyblade/vite-plugin-vue-pro 1.0.6 → 1.0.8

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/es/index.d.ts CHANGED
@@ -3,6 +3,12 @@ import { Options as VueOptions } from '@vitejs/plugin-vue';
3
3
  import { VitePluginVueDevToolsOptions } from 'vite-plugin-vue-devtools';
4
4
  import { visualizer } from 'rollup-plugin-visualizer';
5
5
  export default function framework(options?: {
6
+ /** 是否禁用 */
7
+ disable?: {
8
+ vue?: boolean;
9
+ vueDevTools?: boolean;
10
+ visualizer?: boolean;
11
+ };
6
12
  /** vue 配置 */
7
13
  vue?: VueOptions;
8
14
  /** vue开发者工具 配置 */
package/es/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var l = (r, v, u) => new Promise((c, f) => {
2
- var t = (e) => {
1
+ var c = (r, u, e) => new Promise((l, a) => {
2
+ var t = (f) => {
3
3
  try {
4
- a(u.next(e));
5
- } catch (m) {
6
- f(m);
4
+ m(e.next(f));
5
+ } catch (v) {
6
+ a(v);
7
7
  }
8
- }, i = (e) => {
8
+ }, h = (f) => {
9
9
  try {
10
- a(u.throw(e));
11
- } catch (m) {
12
- f(m);
10
+ m(e.throw(f));
11
+ } catch (v) {
12
+ a(v);
13
13
  }
14
- }, a = (e) => e.done ? c(e.value) : Promise.resolve(e.value).then(t, i);
15
- a((u = u.apply(r, v)).next());
14
+ }, m = (f) => f.done ? l(f.value) : Promise.resolve(f.value).then(t, h);
15
+ m((e = e.apply(r, u)).next());
16
16
  });
17
- import y from "@vitejs/plugin-vue";
18
- import d from "vite-plugin-vue-devtools";
19
- import { monitorUsage as b } from "@foundbyte/security-monitor-usage";
20
- import { visualizer as g } from "rollup-plugin-visualizer";
21
- function k() {
17
+ import i from "@vitejs/plugin-vue";
18
+ import y from "vite-plugin-vue-devtools";
19
+ import { monitorUsage as g } from "@foundbyte/security-monitor-usage";
20
+ import { visualizer as z } from "rollup-plugin-visualizer";
21
+ function D() {
22
22
  return {
23
23
  /** 名称 */
24
24
  name: "keyblade-pro-security-monitor",
@@ -26,19 +26,15 @@ function k() {
26
26
  enforce: "post",
27
27
  /** 启动时执行 */
28
28
  buildStart() {
29
- return l(this, null, function* () {
30
- yield b("未知");
29
+ return c(this, null, function* () {
30
+ yield g("未知");
31
31
  });
32
32
  }
33
33
  };
34
34
  }
35
35
  function M(r) {
36
- return [
37
- y(r == null ? void 0 : r.vue),
38
- d(r == null ? void 0 : r.vueDevTools),
39
- g(r == null ? void 0 : r.visualizer),
40
- k()
41
- ];
36
+ const { disable: u } = r || {}, e = [];
37
+ return u != null && u.vue || e.push(i(r == null ? void 0 : r.vue)), u != null && u.vueDevTools || e.push(y(r == null ? void 0 : r.vueDevTools)), u != null && u.visualizer || e.push(z(r == null ? void 0 : r.visualizer)), e.push(D()), e;
42
38
  }
43
39
  export {
44
40
  M as default
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keyblade/vite-plugin-vue-pro",
3
3
  "description": "KeyBlade Vite Plugin Vue Pro",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "1.0.6",
5
+ "version": "1.0.8",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",