vite-plugin-debugger 0.1.0 → 0.2.0-beta.2
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/index.js +3 -5
- package/package.json +3 -6
package/dist/index.js
CHANGED
@@ -40,7 +40,7 @@ var transformCDN = (pkg, cdn) => {
|
|
40
40
|
if (cdn === "cdnjs") {
|
41
41
|
if (!Array.isArray(pkg)) {
|
42
42
|
if (pkg === "eruda") {
|
43
|
-
return "https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.
|
43
|
+
return "https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.1/eruda.min.js";
|
44
44
|
}
|
45
45
|
throw new Error(`[vite-plugin-debugger]: ${cdn} only support eruda without its plugins.`);
|
46
46
|
}
|
@@ -76,7 +76,6 @@ var debugInit = (debug, active) => {
|
|
76
76
|
};
|
77
77
|
|
78
78
|
// src/plugins/eruda.ts
|
79
|
-
var import_meta = {};
|
80
79
|
var transformErudaOptions = (html, opts) => {
|
81
80
|
const { debug, active } = opts;
|
82
81
|
const { options, plugins, cdn = "jsdelivr", src } = opts.eruda;
|
@@ -129,7 +128,7 @@ var transformErudaOptions = (html, opts) => {
|
|
129
128
|
tags
|
130
129
|
};
|
131
130
|
}
|
132
|
-
if (
|
131
|
+
if (process.env.NODE_ENV !== "production") {
|
133
132
|
return {
|
134
133
|
html,
|
135
134
|
tags
|
@@ -161,7 +160,6 @@ ${code}`,
|
|
161
160
|
};
|
162
161
|
|
163
162
|
// src/plugins/vConsole.ts
|
164
|
-
var import_meta2 = {};
|
165
163
|
var transformVConsoleOptions = (html, opts) => {
|
166
164
|
const { debug, active } = opts;
|
167
165
|
const { options, cdn = "jsdelivr", src } = opts.vConsole;
|
@@ -187,7 +185,7 @@ var transformVConsoleOptions = (html, opts) => {
|
|
187
185
|
tags
|
188
186
|
};
|
189
187
|
}
|
190
|
-
if (
|
188
|
+
if (process.env.NODE_ENV !== "production") {
|
191
189
|
return {
|
192
190
|
html,
|
193
191
|
tags
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite-plugin-debugger",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0-beta.2",
|
4
4
|
"description": "A vite plugin provide the debugger tools for mobile devices.",
|
5
5
|
"author": "jade-gjz",
|
6
6
|
"license": "MIT",
|
@@ -21,13 +21,10 @@
|
|
21
21
|
"files": [
|
22
22
|
"dist"
|
23
23
|
],
|
24
|
-
"devDependencies": {
|
25
|
-
"publint": "^0.1.12"
|
26
|
-
},
|
27
24
|
"peerDependencies": {
|
28
25
|
"eruda": "^3.0.0",
|
29
26
|
"vconsole": "^3.14.0",
|
30
|
-
"vite": "^3.0.0 || ^4.0.0"
|
27
|
+
"vite": "^3.0.0 || ^4.0.0 || ^5.0.0"
|
31
28
|
},
|
32
29
|
"peerDependenciesMeta": {
|
33
30
|
"eruda": {
|
@@ -42,6 +39,6 @@
|
|
42
39
|
"build": "tsup",
|
43
40
|
"prepublish": "pnpm build",
|
44
41
|
"lint": "eslint . --fix",
|
45
|
-
"release": "bumpp
|
42
|
+
"release": "bumpp"
|
46
43
|
}
|
47
44
|
}
|