vite-plugin-debugger 0.3.1 → 0.4.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-X6FL4XDU.js → chunk-HPV4I5CJ.js} +1 -1
- package/dist/{chunk-EPGFZDIC.js → chunk-TKJE57X7.js} +1 -1
- package/dist/{chunk-UKUUEXI7.js → chunk-UKMVH5MM.js} +108 -38
- package/dist/eruda.js +2 -2
- package/dist/index.js +3 -3
- package/dist/precompiled/eruda/dynamic-import.js +1 -1
- package/dist/precompiled/vconsole/dynamic-import.js +1 -1
- package/dist/vconsole.js +2 -2
- package/package.json +4 -4
@@ -1,12 +1,12 @@
|
|
1
1
|
// ../../node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
|
2
|
-
import fs2 from "
|
3
|
-
import { createRequire as createRequire2 } from "
|
4
|
-
import path2, { dirname as dirname3, join as join2, win32 } from "
|
5
|
-
import process2 from "
|
6
|
-
import fsPromises from "
|
7
|
-
import { fileURLToPath as fileURLToPath2 } from "
|
2
|
+
import fs2 from "fs";
|
3
|
+
import { createRequire as createRequire2 } from "module";
|
4
|
+
import path2, { dirname as dirname3, join as join2, win32 } from "path";
|
5
|
+
import process2 from "process";
|
6
|
+
import fsPromises from "fs/promises";
|
7
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
8
8
|
|
9
|
-
// ../../node_modules/.pnpm/acorn@8.
|
9
|
+
// ../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs
|
10
10
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
11
11
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
12
12
|
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
@@ -749,6 +749,44 @@ pp$8.isAsyncFunction = function() {
|
|
749
749
|
var next = this.pos + skip[0].length, after;
|
750
750
|
return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 55295 && after < 56320));
|
751
751
|
};
|
752
|
+
pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
|
753
|
+
if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using")) {
|
754
|
+
return false;
|
755
|
+
}
|
756
|
+
skipWhiteSpace.lastIndex = this.pos;
|
757
|
+
var skip = skipWhiteSpace.exec(this.input);
|
758
|
+
var next = this.pos + skip[0].length;
|
759
|
+
if (lineBreak.test(this.input.slice(this.pos, next))) {
|
760
|
+
return false;
|
761
|
+
}
|
762
|
+
if (isAwaitUsing) {
|
763
|
+
var awaitEndPos = next + 5, after;
|
764
|
+
if (this.input.slice(next, awaitEndPos) !== "using" || awaitEndPos === this.input.length || isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) || after > 55295 && after < 56320) {
|
765
|
+
return false;
|
766
|
+
}
|
767
|
+
skipWhiteSpace.lastIndex = awaitEndPos;
|
768
|
+
var skipAfterUsing = skipWhiteSpace.exec(this.input);
|
769
|
+
if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) {
|
770
|
+
return false;
|
771
|
+
}
|
772
|
+
}
|
773
|
+
if (isFor) {
|
774
|
+
var ofEndPos = next + 2, after$1;
|
775
|
+
if (this.input.slice(next, ofEndPos) === "of") {
|
776
|
+
if (ofEndPos === this.input.length || !isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 55295 && after$1 < 56320)) {
|
777
|
+
return false;
|
778
|
+
}
|
779
|
+
}
|
780
|
+
}
|
781
|
+
var ch = this.input.charCodeAt(next);
|
782
|
+
return isIdentifierStart(ch, true) || ch === 92;
|
783
|
+
};
|
784
|
+
pp$8.isAwaitUsing = function(isFor) {
|
785
|
+
return this.isUsingKeyword(true, isFor);
|
786
|
+
};
|
787
|
+
pp$8.isUsing = function(isFor) {
|
788
|
+
return this.isUsingKeyword(false, isFor);
|
789
|
+
};
|
752
790
|
pp$8.parseStatement = function(context, topLevel, exports) {
|
753
791
|
var starttype = this.type, node = this.startNode(), kind;
|
754
792
|
if (this.isLet(context)) {
|
@@ -832,6 +870,22 @@ pp$8.parseStatement = function(context, topLevel, exports) {
|
|
832
870
|
this.next();
|
833
871
|
return this.parseFunctionStatement(node, true, !context);
|
834
872
|
}
|
873
|
+
var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
|
874
|
+
if (usingKind) {
|
875
|
+
if (topLevel && this.options.sourceType === "script") {
|
876
|
+
this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`");
|
877
|
+
}
|
878
|
+
if (usingKind === "await using") {
|
879
|
+
if (!this.canAwait) {
|
880
|
+
this.raise(this.start, "Await using cannot appear outside of async function");
|
881
|
+
}
|
882
|
+
this.next();
|
883
|
+
}
|
884
|
+
this.next();
|
885
|
+
this.parseVar(node, false, usingKind);
|
886
|
+
this.semicolon();
|
887
|
+
return this.finishNode(node, "VariableDeclaration");
|
888
|
+
}
|
835
889
|
var maybeName = this.value, expr = this.parseExpression();
|
836
890
|
if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon)) {
|
837
891
|
return this.parseLabeledStatement(node, maybeName, expr, context);
|
@@ -905,24 +959,20 @@ pp$8.parseForStatement = function(node) {
|
|
905
959
|
this.next();
|
906
960
|
this.parseVar(init$1, true, kind);
|
907
961
|
this.finishNode(init$1, "VariableDeclaration");
|
908
|
-
|
909
|
-
if (this.options.ecmaVersion >= 9) {
|
910
|
-
if (this.type === types$1._in) {
|
911
|
-
if (awaitAt > -1) {
|
912
|
-
this.unexpected(awaitAt);
|
913
|
-
}
|
914
|
-
} else {
|
915
|
-
node.await = awaitAt > -1;
|
916
|
-
}
|
917
|
-
}
|
918
|
-
return this.parseForIn(node, init$1);
|
919
|
-
}
|
920
|
-
if (awaitAt > -1) {
|
921
|
-
this.unexpected(awaitAt);
|
922
|
-
}
|
923
|
-
return this.parseFor(node, init$1);
|
962
|
+
return this.parseForAfterInit(node, init$1, awaitAt);
|
924
963
|
}
|
925
964
|
var startsWithLet = this.isContextual("let"), isForOf = false;
|
965
|
+
var usingKind = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
|
966
|
+
if (usingKind) {
|
967
|
+
var init$2 = this.startNode();
|
968
|
+
this.next();
|
969
|
+
if (usingKind === "await using") {
|
970
|
+
this.next();
|
971
|
+
}
|
972
|
+
this.parseVar(init$2, true, usingKind);
|
973
|
+
this.finishNode(init$2, "VariableDeclaration");
|
974
|
+
return this.parseForAfterInit(node, init$2, awaitAt);
|
975
|
+
}
|
926
976
|
var containsEsc = this.containsEsc;
|
927
977
|
var refDestructuringErrors = new DestructuringErrors();
|
928
978
|
var initPos = this.start;
|
@@ -954,6 +1004,24 @@ pp$8.parseForStatement = function(node) {
|
|
954
1004
|
}
|
955
1005
|
return this.parseFor(node, init);
|
956
1006
|
};
|
1007
|
+
pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
1008
|
+
if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1) {
|
1009
|
+
if (this.options.ecmaVersion >= 9) {
|
1010
|
+
if (this.type === types$1._in) {
|
1011
|
+
if (awaitAt > -1) {
|
1012
|
+
this.unexpected(awaitAt);
|
1013
|
+
}
|
1014
|
+
} else {
|
1015
|
+
node.await = awaitAt > -1;
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
return this.parseForIn(node, init);
|
1019
|
+
}
|
1020
|
+
if (awaitAt > -1) {
|
1021
|
+
this.unexpected(awaitAt);
|
1022
|
+
}
|
1023
|
+
return this.parseFor(node, init);
|
1024
|
+
};
|
957
1025
|
pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
|
958
1026
|
this.next();
|
959
1027
|
return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync);
|
@@ -1179,6 +1247,8 @@ pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1179
1247
|
decl.init = this.parseMaybeAssign(isFor);
|
1180
1248
|
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
1181
1249
|
this.unexpected();
|
1250
|
+
} else if (!allowMissingInitializer && (kind === "using" || kind === "await using") && this.options.ecmaVersion >= 17 && this.type !== types$1._in && !this.isContextual("of")) {
|
1251
|
+
this.raise(this.lastTokEnd, "Missing initializer in " + kind + " declaration");
|
1182
1252
|
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
1183
1253
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
1184
1254
|
} else {
|
@@ -1192,7 +1262,7 @@ pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1192
1262
|
return node;
|
1193
1263
|
};
|
1194
1264
|
pp$8.parseVarId = function(decl, kind) {
|
1195
|
-
decl.id = this.parseBindingAtom();
|
1265
|
+
decl.id = kind === "using" || kind === "await using" ? this.parseIdent() : this.parseBindingAtom();
|
1196
1266
|
this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false);
|
1197
1267
|
};
|
1198
1268
|
var FUNC_STATEMENT = 1;
|
@@ -2662,7 +2732,7 @@ pp$5.parseLiteral = function(value) {
|
|
2662
2732
|
node.value = value;
|
2663
2733
|
node.raw = this.input.slice(this.start, this.end);
|
2664
2734
|
if (node.raw.charCodeAt(node.raw.length - 1) === 110) {
|
2665
|
-
node.bigint = node.raw.slice(0, -1).replace(/_/g, "");
|
2735
|
+
node.bigint = node.value != null ? node.value.toString() : node.raw.slice(0, -1).replace(/_/g, "");
|
2666
2736
|
}
|
2667
2737
|
this.next();
|
2668
2738
|
return this.finishNode(node, "Literal");
|
@@ -5522,7 +5592,7 @@ pp.readWord = function() {
|
|
5522
5592
|
}
|
5523
5593
|
return this.finishToken(type, word);
|
5524
5594
|
};
|
5525
|
-
var version = "8.
|
5595
|
+
var version = "8.15.0";
|
5526
5596
|
Parser.acorn = {
|
5527
5597
|
Parser,
|
5528
5598
|
version,
|
@@ -5546,8 +5616,8 @@ Parser.acorn = {
|
|
5546
5616
|
};
|
5547
5617
|
|
5548
5618
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
5549
|
-
import { builtinModules, createRequire } from "
|
5550
|
-
import fs, { realpathSync, statSync, promises } from "
|
5619
|
+
import { builtinModules, createRequire } from "module";
|
5620
|
+
import fs, { realpathSync, statSync, promises } from "fs";
|
5551
5621
|
|
5552
5622
|
// ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs
|
5553
5623
|
var r = String.fromCharCode;
|
@@ -5603,12 +5673,12 @@ var isAbsolute = function(p) {
|
|
5603
5673
|
};
|
5604
5674
|
|
5605
5675
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
5606
|
-
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "
|
5607
|
-
import assert from "
|
5608
|
-
import process$1 from "
|
5609
|
-
import path, { dirname as dirname2 } from "
|
5610
|
-
import v8 from "
|
5611
|
-
import { format as format2, inspect } from "
|
5676
|
+
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "url";
|
5677
|
+
import assert from "assert";
|
5678
|
+
import process$1 from "process";
|
5679
|
+
import path, { dirname as dirname2 } from "path";
|
5680
|
+
import v8 from "v8";
|
5681
|
+
import { format as format2, inspect } from "util";
|
5612
5682
|
var BUILTIN_MODULES = new Set(builtinModules);
|
5613
5683
|
function normalizeSlash(path3) {
|
5614
5684
|
return path3.replace(/\\/g, "/");
|
@@ -7192,13 +7262,13 @@ var isPackageListed = quansync2(function* (name, cwd) {
|
|
7192
7262
|
var isPackageListedSync = isPackageListed.sync;
|
7193
7263
|
|
7194
7264
|
// src/helpers/index.ts
|
7195
|
-
import { readFileSync } from "
|
7196
|
-
import { fileURLToPath as fileURLToPath3 } from "
|
7265
|
+
import { readFileSync } from "fs";
|
7266
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
7197
7267
|
var transformCDN = async (pkg, cdn) => {
|
7198
|
-
if (["eruda", "vConsole"].includes(pkg)) {
|
7268
|
+
if (!["eruda", "vConsole"].includes(pkg)) {
|
7199
7269
|
throw new Error(`The package "${pkg}" is not supported for CDN transformation.`);
|
7200
7270
|
}
|
7201
|
-
if (["jsdelivr", "unpkg", "cdnjs", "staticfile"].includes(cdn)) {
|
7271
|
+
if (!["jsdelivr", "unpkg", "cdnjs", "staticfile"].includes(cdn)) {
|
7202
7272
|
throw new Error(`The CDN "${cdn}" is not supported for "${pkg}".`);
|
7203
7273
|
}
|
7204
7274
|
if (cdn === "jsdelivr") {
|
package/dist/eruda.js
CHANGED
package/dist/index.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import {
|
2
2
|
vDebugger
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-HPV4I5CJ.js";
|
4
4
|
import {
|
5
5
|
vDebugger as vDebugger2
|
6
|
-
} from "./chunk-
|
7
|
-
import "./chunk-
|
6
|
+
} from "./chunk-TKJE57X7.js";
|
7
|
+
import "./chunk-UKMVH5MM.js";
|
8
8
|
export {
|
9
9
|
vDebugger as eruda,
|
10
10
|
vDebugger2 as vConsole
|
@@ -1 +1 @@
|
|
1
|
-
_show&&import("eruda").then(
|
1
|
+
_show&&import("eruda").then(function(t){var i;t.default.init(options||{})});
|
@@ -1 +1 @@
|
|
1
|
-
_show&&import("vconsole").then(
|
1
|
+
_show&&import("vconsole").then(function(o){var n,t=new(0,o.default)(options||{})});
|
package/dist/vconsole.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite-plugin-debugger",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.4.0",
|
5
5
|
"description": "A vite plugin provide the debugger tools for mobile devices.",
|
6
6
|
"author": "jade-gjz",
|
7
7
|
"license": "MIT",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"peerDependencies": {
|
41
41
|
"eruda": "^3.0.0",
|
42
42
|
"vconsole": "^3.14.0",
|
43
|
-
"vite": "^6.0.0"
|
43
|
+
"vite": "^6.0.0 || ^7.0.0"
|
44
44
|
},
|
45
45
|
"peerDependenciesMeta": {
|
46
46
|
"eruda": {
|
@@ -53,8 +53,8 @@
|
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/node": "^22.14.1",
|
55
55
|
"local-pkg": "^1.1.1",
|
56
|
-
"terser": "^5.
|
57
|
-
"tsup": "^8.
|
56
|
+
"terser": "^5.43.1",
|
57
|
+
"tsup": "^8.5.0"
|
58
58
|
},
|
59
59
|
"scripts": {
|
60
60
|
"dev": "tsup --watch",
|