vite-plugin-debugger 0.0.2 → 0.0.5

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/README.md CHANGED
@@ -37,9 +37,9 @@ export default defineConfig(({ command, mode }) => ({
37
37
  plugins: [
38
38
  vDebugger({
39
39
  debug: mode !== 'production',
40
- // cdn: 'jsdelivr', // 'jsdelivr' | 'unpkg' | 'cdnjs'
41
- // src: 'custom CDN URL',
42
40
  eruda: {
41
+ // cdn: 'jsdelivr', // 'jsdelivr' | 'unpkg' | 'cdnjs'
42
+ // src: 'custom CDN URL',
43
43
  options: {
44
44
  tool: ['console', 'elements'],
45
45
  useShadowDom: true,
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ var transformErudaOptions = (html, opts) => {
71
71
  });
72
72
  let erudaScript = `eruda.init(${JSON.stringify(options)});
73
73
  `;
74
- if (plugins.length > 0) {
74
+ if (plugins && plugins.length > 0) {
75
75
  if (cdn === "jsdelivr") {
76
76
  tags.push({
77
77
  tag: "script",
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "vite-plugin-debugger",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "A vite plugin provide the debugger tools for mobile devices.",
5
5
  "author": "jade-gjz",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/jaderd-jh/vite-plugin-debugger.git"
10
+ },
7
11
  "keywords": [
8
12
  "vite",
9
13
  "debugger",
@@ -18,8 +22,8 @@
18
22
  "dist"
19
23
  ],
20
24
  "peerDependencies": {
21
- "eruda": "^2.0.0",
22
- "vconsole": "^3.0.0",
25
+ "eruda": "^2.4.0",
26
+ "vconsole": "^3.14.0",
23
27
  "vite": "^2.0.0"
24
28
  },
25
29
  "peerDependenciesMeta": {