unplugin-dingtalk 1005.0.0 → 1007.0.0
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/{chunk-2YQKM4BX.js → __chrome_devtools-CIQ5zFZx.js} +11 -12
- package/dist/__chrome_devtools-CJ3sXpVj.cjs +95 -0
- package/dist/__chrome_devtools.cjs +3 -0
- package/dist/__chrome_devtools.d.cts +4 -0
- package/dist/__chrome_devtools.d.ts +3 -2
- package/dist/__chrome_devtools.js +3 -7
- package/dist/astro.cjs +15 -0
- package/dist/astro.d.cts +10 -0
- package/dist/astro.d.ts +8 -10
- package/dist/astro.js +12 -17
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/esbuild.cjs +11 -0
- package/dist/esbuild.d.cts +6 -0
- package/dist/esbuild.d.ts +6 -8
- package/dist/esbuild.js +8 -10
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +17 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +5 -14
- package/dist/inject-script.cjs +15 -0
- package/dist/inject-script.d.cts +3 -0
- package/dist/inject-script.d.ts +4 -0
- package/dist/inject-script.js +14 -0
- package/dist/main-BvTybYko.js +99 -0
- package/dist/main-DQgEHuwp.cjs +101 -0
- package/dist/nuxt.cjs +478 -0
- package/dist/nuxt.d.cts +8 -0
- package/dist/nuxt.d.ts +7 -10
- package/dist/nuxt.js +474 -24
- package/dist/rollup.cjs +11 -0
- package/dist/rollup.d.cts +6 -0
- package/dist/rollup.d.ts +6 -8
- package/dist/rollup.js +8 -10
- package/dist/rspack.cjs +55 -0
- package/dist/rspack.d.cts +6 -0
- package/dist/rspack.d.ts +6 -7
- package/dist/rspack.js +50 -68
- package/dist/src-BVX_Roo9.js +364 -0
- package/dist/src-hLDO4Q22.cjs +394 -0
- package/dist/types-D6mfGNG_.d.ts +38 -0
- package/dist/types-DodDHiEA.d.cts +38 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -38
- package/dist/types.js +1 -0
- package/dist/utils-Chlbb6jf.js +23 -0
- package/dist/utils-CmfBxo4J.cjs +41 -0
- package/dist/utils.cjs +5 -0
- package/dist/utils.d.cts +9 -0
- package/dist/utils.d.ts +6 -3
- package/dist/utils.js +3 -7
- package/dist/vite-CKIDsKJ-.cjs +24 -0
- package/dist/vite-DoBUfGyY.js +18 -0
- package/dist/vite.cjs +6 -0
- package/dist/vite.d.cts +6 -0
- package/dist/vite.d.ts +5 -7
- package/dist/vite.js +6 -10
- package/dist/webpack.cjs +53 -0
- package/dist/webpack.d.cts +6 -0
- package/dist/webpack.d.ts +6 -8
- package/dist/webpack.js +48 -62
- package/package.json +64 -21
- package/dist/chunk-5JBD5THX.js +0 -20
- package/dist/chunk-D63IDACA.js +0 -26
- package/dist/chunk-KQOHODTC.js +0 -9
- package/dist/chunk-ZLK5HLCO.js +0 -537
package/dist/vite.d.cts
ADDED
package/dist/vite.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import 'webpack-dev-server';
|
|
4
|
-
import 'node:http';
|
|
5
|
-
import 'vite-plugin-vconsole';
|
|
1
|
+
import { Options } from "./types-D6mfGNG_.js";
|
|
2
|
+
import { Plugin } from "vite";
|
|
6
3
|
|
|
4
|
+
//#region src/vite.d.ts
|
|
7
5
|
declare const _default: (options: Options) => Promise<Plugin<any>[]>;
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
package/dist/vite.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "./chunk-5JBD5THX.js";
|
|
8
|
-
export {
|
|
9
|
-
vite_default as default
|
|
10
|
-
};
|
|
1
|
+
import "./__chrome_devtools-CIQ5zFZx.js";
|
|
2
|
+
import "./src-BVX_Roo9.js";
|
|
3
|
+
import "./utils-Chlbb6jf.js";
|
|
4
|
+
import { vite_default } from "./vite-DoBUfGyY.js";
|
|
5
|
+
|
|
6
|
+
export { vite_default as default };
|
package/dist/webpack.cjs
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require___chrome_devtools = require('./__chrome_devtools-CJ3sXpVj.cjs');
|
|
3
|
+
const require_src = require('./src-hLDO4Q22.cjs');
|
|
4
|
+
require('./utils-CmfBxo4J.cjs');
|
|
5
|
+
const cookie = require_chunk.__toESM(require("cookie"));
|
|
6
|
+
const picocolors = require_chunk.__toESM(require("picocolors"));
|
|
7
|
+
const unplugin = require_chunk.__toESM(require("unplugin"));
|
|
8
|
+
|
|
9
|
+
//#region src/webpack.ts
|
|
10
|
+
var webpack_default = (options) => {
|
|
11
|
+
function debug(...args) {
|
|
12
|
+
if (options?.debug) console.log(` ${picocolors.default.yellow("DEBUG")} `, ...args);
|
|
13
|
+
}
|
|
14
|
+
const { chii } = options || {};
|
|
15
|
+
const enableChii = chii?.enable !== false;
|
|
16
|
+
const injectSetupMiddlewares = (middlewares, devServer) => {
|
|
17
|
+
if (!options?.enable) return middlewares;
|
|
18
|
+
if (options.debugCookies && options.debugCookies.length > 0) devServer.app.use((req, res, next) => {
|
|
19
|
+
const cookies = cookie.default.parse(req.headers.cookie || "");
|
|
20
|
+
for (const [name, value] of Object.entries(cookies)) if (value && options.debugCookies && options.debugCookies.length > 0 && options.debugCookies.includes(name)) {
|
|
21
|
+
const serializedCookie = cookie.default.serialize(name, value, { httpOnly: false });
|
|
22
|
+
res.setHeader("Set-Cookie", serializedCookie);
|
|
23
|
+
}
|
|
24
|
+
next();
|
|
25
|
+
});
|
|
26
|
+
if (enableChii) {
|
|
27
|
+
devServer.app.get("/__chrome_devtools", async (_req, res) => {
|
|
28
|
+
try {
|
|
29
|
+
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
|
30
|
+
res.write(require___chrome_devtools.getChromeDevtoolsHtml(require_src.resovedInfo.availablePort));
|
|
31
|
+
res.end();
|
|
32
|
+
} catch (error) {
|
|
33
|
+
debug(`${error}`);
|
|
34
|
+
res.writeHead(502);
|
|
35
|
+
res.end();
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const proxyMiddleware = require_src.createProxyMiddleware(debug);
|
|
39
|
+
devServer.app.use(proxyMiddleware(require_src.resovedInfo));
|
|
40
|
+
}
|
|
41
|
+
devServer.app.get("/open-dingtalk", (req, res) => {
|
|
42
|
+
const targetURL = require_src.resovedInfo.targetURL;
|
|
43
|
+
debug(targetURL.toString());
|
|
44
|
+
res.writeHead(302, { Location: `dingtalk://dingtalkclient/page/link?url=${encodeURIComponent(targetURL.toString())}` });
|
|
45
|
+
res.end();
|
|
46
|
+
});
|
|
47
|
+
return middlewares;
|
|
48
|
+
};
|
|
49
|
+
return [injectSetupMiddlewares, (0, unplugin.createWebpackPlugin)(require_src.unpluginFactory)(options)];
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
module.exports = webpack_default;
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import 'webpack-dev-server';
|
|
4
|
-
import 'node:http';
|
|
5
|
-
import 'vite-plugin-vconsole';
|
|
1
|
+
import { Options, SetupMiddlewares } from "./types-D6mfGNG_.js";
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/webpack.d.ts
|
|
5
|
+
declare const _default: (options: Options) => readonly [SetupMiddlewares, webpack0.WebpackPluginInstance];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
package/dist/webpack.js
CHANGED
|
@@ -1,66 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-ZLK5HLCO.js";
|
|
5
|
-
import {
|
|
6
|
-
getChromeDevtoolsHtml
|
|
7
|
-
} from "./chunk-2YQKM4BX.js";
|
|
8
|
-
import "./chunk-5JBD5THX.js";
|
|
9
|
-
|
|
10
|
-
// src/webpack.ts
|
|
11
|
-
import { createWebpackPlugin } from "unplugin";
|
|
1
|
+
import { getChromeDevtoolsHtml } from "./__chrome_devtools-CIQ5zFZx.js";
|
|
2
|
+
import { createProxyMiddleware, resovedInfo, unpluginFactory } from "./src-BVX_Roo9.js";
|
|
3
|
+
import "./utils-Chlbb6jf.js";
|
|
12
4
|
import cookie from "cookie";
|
|
13
5
|
import c from "picocolors";
|
|
6
|
+
import { createWebpackPlugin } from "unplugin";
|
|
7
|
+
|
|
8
|
+
//#region src/webpack.ts
|
|
14
9
|
var webpack_default = (options) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
debug(targetURL.toString());
|
|
55
|
-
res.writeHead(302, {
|
|
56
|
-
Location: `dingtalk://dingtalkclient/page/link?url=${encodeURIComponent(targetURL.toString())}`
|
|
57
|
-
});
|
|
58
|
-
res.end();
|
|
59
|
-
});
|
|
60
|
-
return middlewares;
|
|
61
|
-
};
|
|
62
|
-
return [injectSetupMiddlewares, createWebpackPlugin(unpluginFactory)(options)];
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
webpack_default as default
|
|
10
|
+
function debug(...args) {
|
|
11
|
+
if (options?.debug) console.log(` ${c.yellow("DEBUG")} `, ...args);
|
|
12
|
+
}
|
|
13
|
+
const { chii } = options || {};
|
|
14
|
+
const enableChii = chii?.enable !== false;
|
|
15
|
+
const injectSetupMiddlewares = (middlewares, devServer) => {
|
|
16
|
+
if (!options?.enable) return middlewares;
|
|
17
|
+
if (options.debugCookies && options.debugCookies.length > 0) devServer.app.use((req, res, next) => {
|
|
18
|
+
const cookies = cookie.parse(req.headers.cookie || "");
|
|
19
|
+
for (const [name, value] of Object.entries(cookies)) if (value && options.debugCookies && options.debugCookies.length > 0 && options.debugCookies.includes(name)) {
|
|
20
|
+
const serializedCookie = cookie.serialize(name, value, { httpOnly: false });
|
|
21
|
+
res.setHeader("Set-Cookie", serializedCookie);
|
|
22
|
+
}
|
|
23
|
+
next();
|
|
24
|
+
});
|
|
25
|
+
if (enableChii) {
|
|
26
|
+
devServer.app.get("/__chrome_devtools", async (_req, res) => {
|
|
27
|
+
try {
|
|
28
|
+
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
|
29
|
+
res.write(getChromeDevtoolsHtml(resovedInfo.availablePort));
|
|
30
|
+
res.end();
|
|
31
|
+
} catch (error) {
|
|
32
|
+
debug(`${error}`);
|
|
33
|
+
res.writeHead(502);
|
|
34
|
+
res.end();
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const proxyMiddleware = createProxyMiddleware(debug);
|
|
38
|
+
devServer.app.use(proxyMiddleware(resovedInfo));
|
|
39
|
+
}
|
|
40
|
+
devServer.app.get("/open-dingtalk", (req, res) => {
|
|
41
|
+
const targetURL = resovedInfo.targetURL;
|
|
42
|
+
debug(targetURL.toString());
|
|
43
|
+
res.writeHead(302, { Location: `dingtalk://dingtalkclient/page/link?url=${encodeURIComponent(targetURL.toString())}` });
|
|
44
|
+
res.end();
|
|
45
|
+
});
|
|
46
|
+
return middlewares;
|
|
47
|
+
};
|
|
48
|
+
return [injectSetupMiddlewares, createWebpackPlugin(unpluginFactory)(options)];
|
|
66
49
|
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { webpack_default as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-dingtalk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1007.0.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/zcf0508/unplugin-dingtalk#readme",
|
|
@@ -20,18 +20,54 @@
|
|
|
20
20
|
"transform"
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"./
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./astro": {
|
|
29
|
+
"types": "./dist/astro.d.ts",
|
|
30
|
+
"import": "./dist/astro.js",
|
|
31
|
+
"require": "./dist/astro.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./rspack": {
|
|
34
|
+
"types": "./dist/rspack.d.ts",
|
|
35
|
+
"import": "./dist/rspack.js",
|
|
36
|
+
"require": "./dist/rspack.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./vite": {
|
|
39
|
+
"types": "./dist/vite.d.ts",
|
|
40
|
+
"import": "./dist/vite.js",
|
|
41
|
+
"require": "./dist/vite.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./webpack": {
|
|
44
|
+
"types": "./dist/webpack.d.ts",
|
|
45
|
+
"import": "./dist/webpack.js",
|
|
46
|
+
"require": "./dist/webpack.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./rollup": {
|
|
49
|
+
"types": "./dist/rollup.d.ts",
|
|
50
|
+
"import": "./dist/rollup.js",
|
|
51
|
+
"require": "./dist/rollup.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./esbuild": {
|
|
54
|
+
"types": "./dist/esbuild.d.ts",
|
|
55
|
+
"import": "./dist/esbuild.js",
|
|
56
|
+
"require": "./dist/esbuild.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./nuxt": {
|
|
59
|
+
"types": "./dist/nuxt.d.ts",
|
|
60
|
+
"import": "./dist/nuxt.js",
|
|
61
|
+
"require": "./dist/nuxt.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.js",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
},
|
|
32
68
|
"./*": "./*"
|
|
33
69
|
},
|
|
34
|
-
"main": "dist/index.
|
|
70
|
+
"main": "dist/index.cjs",
|
|
35
71
|
"module": "dist/index.js",
|
|
36
72
|
"types": "dist/index.d.ts",
|
|
37
73
|
"typesVersions": {
|
|
@@ -48,11 +84,12 @@
|
|
|
48
84
|
"peerDependencies": {
|
|
49
85
|
"@nuxt/kit": "^3",
|
|
50
86
|
"@nuxt/schema": "^3",
|
|
51
|
-
"@rsbuild/core": "^0.
|
|
87
|
+
"@rsbuild/core": "^0.4.3",
|
|
88
|
+
"@rspack/core": "^0.5.4",
|
|
52
89
|
"esbuild": "*",
|
|
90
|
+
"proper-lockfile": "^4.1.2",
|
|
53
91
|
"rollup": "^3",
|
|
54
92
|
"vite": ">=3",
|
|
55
|
-
"vite-plugin-vconsole": "^2.1.1",
|
|
56
93
|
"webpack": "^4 || ^5"
|
|
57
94
|
},
|
|
58
95
|
"peerDependenciesMeta": {
|
|
@@ -85,24 +122,30 @@
|
|
|
85
122
|
"cookie": "^1.0.2",
|
|
86
123
|
"http-proxy": "^1.18.1",
|
|
87
124
|
"picocolors": "^1.0.1",
|
|
88
|
-
"unplugin": "
|
|
125
|
+
"unplugin": "2.2.0",
|
|
89
126
|
"z-chii": "1.15.5-beta.1"
|
|
90
127
|
},
|
|
91
128
|
"devDependencies": {
|
|
92
|
-
"@antfu/eslint-config": "^
|
|
129
|
+
"@antfu/eslint-config": "^6.0.0",
|
|
93
130
|
"@nuxt/kit": "^3.8.2",
|
|
94
131
|
"@nuxt/schema": "^3.8.2",
|
|
132
|
+
"@types/http-proxy": "^1.17.16",
|
|
95
133
|
"@types/node": "^20.10.3",
|
|
134
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
96
135
|
"bumpp": "^9.2.0",
|
|
97
136
|
"chalk": "^5.3.0",
|
|
98
|
-
"eslint": "^
|
|
99
|
-
"eslint-plugin-security": "^3.0.
|
|
137
|
+
"eslint": "^9.38.0",
|
|
138
|
+
"eslint-plugin-security": "^3.0.1",
|
|
100
139
|
"fast-glob": "^3.3.2",
|
|
101
140
|
"get-port-please": "^3.1.2",
|
|
141
|
+
"h3": "^1.15.4",
|
|
102
142
|
"nodemon": "^3.0.2",
|
|
143
|
+
"proper-lockfile": "^4.1.2",
|
|
103
144
|
"rimraf": "^5.0.5",
|
|
145
|
+
"rolldown": "1.0.0-beta.34",
|
|
104
146
|
"rollup": "^4.6.1",
|
|
105
|
-
"
|
|
147
|
+
"tsdown": "0.14.2",
|
|
148
|
+
"typescript": "~5.7.3",
|
|
106
149
|
"vite": "^5.0.4",
|
|
107
150
|
"vite-plugin-vconsole": "^2.1.1",
|
|
108
151
|
"vitest": "^1.6.0",
|
|
@@ -110,10 +153,10 @@
|
|
|
110
153
|
"webpack-dev-server": "^5.0.4"
|
|
111
154
|
},
|
|
112
155
|
"scripts": {
|
|
113
|
-
"build": "
|
|
114
|
-
"dev": "tsup --watch src",
|
|
156
|
+
"build": "tsdown",
|
|
115
157
|
"lint": "eslint .",
|
|
116
|
-
"play": "npm -C playground run dev",
|
|
158
|
+
"play": "npm -C playground/vite run dev",
|
|
159
|
+
"play:nuxt": "npm -C playground/nuxt run dev",
|
|
117
160
|
"release": "bumpp",
|
|
118
161
|
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
119
162
|
"test": "vitest"
|
package/dist/chunk-5JBD5THX.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
__spreadValues
|
|
20
|
-
};
|
package/dist/chunk-D63IDACA.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interopDefault
|
|
3
|
-
} from "./chunk-KQOHODTC.js";
|
|
4
|
-
import {
|
|
5
|
-
unpluginFactory
|
|
6
|
-
} from "./chunk-ZLK5HLCO.js";
|
|
7
|
-
|
|
8
|
-
// src/vite.ts
|
|
9
|
-
import { createVitePlugin } from "unplugin";
|
|
10
|
-
var vite_default = async (options) => {
|
|
11
|
-
var _a;
|
|
12
|
-
const plugins = [createVitePlugin(unpluginFactory)(options)];
|
|
13
|
-
if ((options == null ? void 0 : options.enable) && ((_a = options == null ? void 0 : options.vconsole) == null ? void 0 : _a.enabled)) {
|
|
14
|
-
try {
|
|
15
|
-
const viteVConsilePlugin = await interopDefault(import("vite-plugin-vconsole"));
|
|
16
|
-
plugins.push(viteVConsilePlugin(options == null ? void 0 : options.vconsole));
|
|
17
|
-
} catch (e) {
|
|
18
|
-
console.error("vite-plugin-vconsole not found");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return plugins;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
vite_default
|
|
26
|
-
};
|