@vixt/vue 0.9.0 → 0.10.1
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/client/entry.d.ts +2 -4
- package/dist/client/entry.js +1 -3
- package/dist/client/plugins/pinia.d.ts +2 -2
- package/dist/client/plugins/pinia.js +1 -3
- package/dist/client/plugins/router.d.ts +2 -2
- package/dist/client/plugins/router.js +1 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +240 -205
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { builtinModules, createRequire } from "node:module";
|
|
2
2
|
import { VixtClientAutoImports, createVixtPlugin, defineVixtModule, resolveLayersDirs } from "@vixt/core";
|
|
3
3
|
import fs, { realpathSync, statSync } from "node:fs";
|
|
4
|
-
import {
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import assert from "node:assert";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import path from "node:path";
|
|
@@ -17,7 +17,6 @@ import Layouts from "vite-plugin-vue-layouts";
|
|
|
17
17
|
import { VueRouterAutoImports } from "vue-router/unplugin";
|
|
18
18
|
import VueRouter from "vue-router/vite";
|
|
19
19
|
import { parse } from "@vue/compiler-sfc";
|
|
20
|
-
|
|
21
20
|
//#region \0rolldown/runtime.js
|
|
22
21
|
var __create = Object.create;
|
|
23
22
|
var __defProp = Object.defineProperty;
|
|
@@ -27,16 +26,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
27
26
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
28
27
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
29
28
|
var __copyProps = (to, from, except, desc) => {
|
|
30
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
30
|
+
key = keys[i];
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
32
|
+
get: ((k) => from[k]).bind(null, key),
|
|
33
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
34
|
+
});
|
|
40
35
|
}
|
|
41
36
|
return to;
|
|
42
37
|
};
|
|
@@ -45,7 +40,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
40
|
enumerable: true
|
|
46
41
|
}) : target, mod));
|
|
47
42
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
48
|
-
|
|
49
43
|
//#endregion
|
|
50
44
|
//#region ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
51
45
|
var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -69,7 +63,6 @@ var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
69
63
|
}, "name", { value: fn.name });
|
|
70
64
|
};
|
|
71
65
|
}));
|
|
72
|
-
|
|
73
66
|
//#endregion
|
|
74
67
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
75
68
|
var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -322,7 +315,6 @@ var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
322
315
|
}
|
|
323
316
|
}
|
|
324
317
|
}));
|
|
325
|
-
|
|
326
318
|
//#endregion
|
|
327
319
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
328
320
|
var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -412,7 +404,6 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
412
404
|
}
|
|
413
405
|
}
|
|
414
406
|
}));
|
|
415
|
-
|
|
416
407
|
//#endregion
|
|
417
408
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
418
409
|
var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -430,7 +421,6 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
430
421
|
return copy;
|
|
431
422
|
}
|
|
432
423
|
}));
|
|
433
|
-
|
|
434
424
|
//#endregion
|
|
435
425
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
436
426
|
var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -787,9 +777,8 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
787
777
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
788
778
|
}
|
|
789
779
|
}));
|
|
790
|
-
|
|
791
780
|
//#endregion
|
|
792
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
781
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js
|
|
793
782
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
794
783
|
const u = require_universalify().fromCallback;
|
|
795
784
|
const fs = require_graceful_fs();
|
|
@@ -896,9 +885,8 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
896
885
|
if (typeof fs.realpath.native === "function") exports.realpath.native = u(fs.realpath.native);
|
|
897
886
|
else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
|
|
898
887
|
}));
|
|
899
|
-
|
|
900
888
|
//#endregion
|
|
901
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
889
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js
|
|
902
890
|
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
903
891
|
const path$12 = __require("path");
|
|
904
892
|
module.exports.checkPath = function checkPath(pth) {
|
|
@@ -911,9 +899,8 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
911
899
|
}
|
|
912
900
|
};
|
|
913
901
|
}));
|
|
914
|
-
|
|
915
902
|
//#endregion
|
|
916
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
903
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js
|
|
917
904
|
var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
918
905
|
const fs = require_fs();
|
|
919
906
|
const { checkPath } = require_utils$1();
|
|
@@ -940,9 +927,8 @@ var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
940
927
|
});
|
|
941
928
|
};
|
|
942
929
|
}));
|
|
943
|
-
|
|
944
930
|
//#endregion
|
|
945
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
931
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js
|
|
946
932
|
var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
947
933
|
const u = require_universalify().fromPromise;
|
|
948
934
|
const { makeDir: _makeDir, makeDirSync } = require_make_dir();
|
|
@@ -956,9 +942,8 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
956
942
|
ensureDirSync: makeDirSync
|
|
957
943
|
};
|
|
958
944
|
}));
|
|
959
|
-
|
|
960
945
|
//#endregion
|
|
961
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
946
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js
|
|
962
947
|
var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
963
948
|
const u = require_universalify().fromPromise;
|
|
964
949
|
const fs = require_fs();
|
|
@@ -970,9 +955,8 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
970
955
|
pathExistsSync: fs.existsSync
|
|
971
956
|
};
|
|
972
957
|
}));
|
|
973
|
-
|
|
974
958
|
//#endregion
|
|
975
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
959
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js
|
|
976
960
|
var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
977
961
|
const fs = require_fs();
|
|
978
962
|
const u = require_universalify().fromPromise;
|
|
@@ -1000,9 +984,8 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1000
984
|
utimesMillisSync
|
|
1001
985
|
};
|
|
1002
986
|
}));
|
|
1003
|
-
|
|
1004
987
|
//#endregion
|
|
1005
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
988
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js
|
|
1006
989
|
var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1007
990
|
const fs = require_fs();
|
|
1008
991
|
const path$11 = __require("path");
|
|
@@ -1127,9 +1110,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1127
1110
|
areIdentical
|
|
1128
1111
|
};
|
|
1129
1112
|
}));
|
|
1130
|
-
|
|
1131
1113
|
//#endregion
|
|
1132
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1114
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js
|
|
1133
1115
|
var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1134
1116
|
async function asyncIteratorConcurrentProcess(iterator, fn) {
|
|
1135
1117
|
const promises = [];
|
|
@@ -1140,9 +1122,8 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1140
1122
|
}
|
|
1141
1123
|
module.exports = { asyncIteratorConcurrentProcess };
|
|
1142
1124
|
}));
|
|
1143
|
-
|
|
1144
1125
|
//#endregion
|
|
1145
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1126
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js
|
|
1146
1127
|
var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1147
1128
|
const fs = require_fs();
|
|
1148
1129
|
const path$10 = __require("path");
|
|
@@ -1232,9 +1213,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1232
1213
|
}
|
|
1233
1214
|
module.exports = copy;
|
|
1234
1215
|
}));
|
|
1235
|
-
|
|
1236
1216
|
//#endregion
|
|
1237
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1217
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js
|
|
1238
1218
|
var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1239
1219
|
const fs = require_graceful_fs();
|
|
1240
1220
|
const path$9 = __require("path");
|
|
@@ -1346,9 +1326,8 @@ var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1346
1326
|
}
|
|
1347
1327
|
module.exports = copySync;
|
|
1348
1328
|
}));
|
|
1349
|
-
|
|
1350
1329
|
//#endregion
|
|
1351
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1330
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js
|
|
1352
1331
|
var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1353
1332
|
const u = require_universalify().fromPromise;
|
|
1354
1333
|
module.exports = {
|
|
@@ -1356,9 +1335,8 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1356
1335
|
copySync: require_copy_sync()
|
|
1357
1336
|
};
|
|
1358
1337
|
}));
|
|
1359
|
-
|
|
1360
1338
|
//#endregion
|
|
1361
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1339
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js
|
|
1362
1340
|
var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1363
1341
|
const fs = require_graceful_fs();
|
|
1364
1342
|
const u = require_universalify().fromCallback;
|
|
@@ -1379,9 +1357,8 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1379
1357
|
removeSync
|
|
1380
1358
|
};
|
|
1381
1359
|
}));
|
|
1382
|
-
|
|
1383
1360
|
//#endregion
|
|
1384
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1361
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js
|
|
1385
1362
|
var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1386
1363
|
const u = require_universalify().fromPromise;
|
|
1387
1364
|
const fs = require_fs();
|
|
@@ -1416,9 +1393,8 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1416
1393
|
emptydir: emptyDir
|
|
1417
1394
|
};
|
|
1418
1395
|
}));
|
|
1419
|
-
|
|
1420
1396
|
//#endregion
|
|
1421
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1397
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js
|
|
1422
1398
|
var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1423
1399
|
const u = require_universalify().fromPromise;
|
|
1424
1400
|
const path$7 = __require("path");
|
|
@@ -1464,9 +1440,8 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1464
1440
|
createFileSync
|
|
1465
1441
|
};
|
|
1466
1442
|
}));
|
|
1467
|
-
|
|
1468
1443
|
//#endregion
|
|
1469
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1444
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js
|
|
1470
1445
|
var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1471
1446
|
const u = require_universalify().fromPromise;
|
|
1472
1447
|
const path$6 = __require("path");
|
|
@@ -1513,9 +1488,8 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1513
1488
|
createLinkSync
|
|
1514
1489
|
};
|
|
1515
1490
|
}));
|
|
1516
|
-
|
|
1517
1491
|
//#endregion
|
|
1518
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1492
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
1519
1493
|
var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1520
1494
|
const path$5 = __require("path");
|
|
1521
1495
|
const fs = require_fs();
|
|
@@ -1597,9 +1571,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1597
1571
|
symlinkPathsSync
|
|
1598
1572
|
};
|
|
1599
1573
|
}));
|
|
1600
|
-
|
|
1601
1574
|
//#endregion
|
|
1602
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1575
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
1603
1576
|
var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1604
1577
|
const fs = require_fs();
|
|
1605
1578
|
const u = require_universalify().fromPromise;
|
|
@@ -1628,9 +1601,8 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1628
1601
|
symlinkTypeSync
|
|
1629
1602
|
};
|
|
1630
1603
|
}));
|
|
1631
|
-
|
|
1632
1604
|
//#endregion
|
|
1633
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1605
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js
|
|
1634
1606
|
var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1635
1607
|
const u = require_universalify().fromPromise;
|
|
1636
1608
|
const path$4 = __require("path");
|
|
@@ -1646,7 +1618,18 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1646
1618
|
stats = await fs.lstat(dstpath);
|
|
1647
1619
|
} catch {}
|
|
1648
1620
|
if (stats && stats.isSymbolicLink()) {
|
|
1649
|
-
|
|
1621
|
+
let srcStat;
|
|
1622
|
+
if (path$4.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath);
|
|
1623
|
+
else {
|
|
1624
|
+
const dstdir = path$4.dirname(dstpath);
|
|
1625
|
+
const relativeToDst = path$4.join(dstdir, srcpath);
|
|
1626
|
+
try {
|
|
1627
|
+
srcStat = await fs.stat(relativeToDst);
|
|
1628
|
+
} catch {
|
|
1629
|
+
srcStat = await fs.stat(srcpath);
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
const dstStat = await fs.stat(dstpath);
|
|
1650
1633
|
if (areIdentical(srcStat, dstStat)) return;
|
|
1651
1634
|
}
|
|
1652
1635
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
@@ -1662,7 +1645,19 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1662
1645
|
stats = fs.lstatSync(dstpath);
|
|
1663
1646
|
} catch {}
|
|
1664
1647
|
if (stats && stats.isSymbolicLink()) {
|
|
1665
|
-
|
|
1648
|
+
let srcStat;
|
|
1649
|
+
if (path$4.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath);
|
|
1650
|
+
else {
|
|
1651
|
+
const dstdir = path$4.dirname(dstpath);
|
|
1652
|
+
const relativeToDst = path$4.join(dstdir, srcpath);
|
|
1653
|
+
try {
|
|
1654
|
+
srcStat = fs.statSync(relativeToDst);
|
|
1655
|
+
} catch {
|
|
1656
|
+
srcStat = fs.statSync(srcpath);
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
const dstStat = fs.statSync(dstpath);
|
|
1660
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
1666
1661
|
}
|
|
1667
1662
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1668
1663
|
srcpath = relative.toDst;
|
|
@@ -1677,9 +1672,8 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1677
1672
|
createSymlinkSync
|
|
1678
1673
|
};
|
|
1679
1674
|
}));
|
|
1680
|
-
|
|
1681
1675
|
//#endregion
|
|
1682
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1676
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js
|
|
1683
1677
|
var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1684
1678
|
const { createFile, createFileSync } = require_file();
|
|
1685
1679
|
const { createLink, createLinkSync } = require_link();
|
|
@@ -1699,7 +1693,6 @@ var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1699
1693
|
ensureSymlinkSync: createSymlinkSync
|
|
1700
1694
|
};
|
|
1701
1695
|
}));
|
|
1702
|
-
|
|
1703
1696
|
//#endregion
|
|
1704
1697
|
//#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
|
|
1705
1698
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1716,7 +1709,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1716
1709
|
stripBom
|
|
1717
1710
|
};
|
|
1718
1711
|
}));
|
|
1719
|
-
|
|
1720
1712
|
//#endregion
|
|
1721
1713
|
//#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
|
|
1722
1714
|
var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1779,9 +1771,8 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1779
1771
|
writeFileSync
|
|
1780
1772
|
};
|
|
1781
1773
|
}));
|
|
1782
|
-
|
|
1783
1774
|
//#endregion
|
|
1784
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1775
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js
|
|
1785
1776
|
var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1786
1777
|
const jsonFile = require_jsonfile$1();
|
|
1787
1778
|
module.exports = {
|
|
@@ -1791,9 +1782,8 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1791
1782
|
writeJsonSync: jsonFile.writeFileSync
|
|
1792
1783
|
};
|
|
1793
1784
|
}));
|
|
1794
|
-
|
|
1795
1785
|
//#endregion
|
|
1796
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1786
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js
|
|
1797
1787
|
var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1798
1788
|
const u = require_universalify().fromPromise;
|
|
1799
1789
|
const fs = require_fs();
|
|
@@ -1815,9 +1805,8 @@ var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1815
1805
|
outputFileSync
|
|
1816
1806
|
};
|
|
1817
1807
|
}));
|
|
1818
|
-
|
|
1819
1808
|
//#endregion
|
|
1820
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1809
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js
|
|
1821
1810
|
var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1822
1811
|
const { stringify } = require_utils();
|
|
1823
1812
|
const { outputFile } = require_output_file();
|
|
@@ -1826,9 +1815,8 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1826
1815
|
}
|
|
1827
1816
|
module.exports = outputJson;
|
|
1828
1817
|
}));
|
|
1829
|
-
|
|
1830
1818
|
//#endregion
|
|
1831
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1819
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js
|
|
1832
1820
|
var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1833
1821
|
const { stringify } = require_utils();
|
|
1834
1822
|
const { outputFileSync } = require_output_file();
|
|
@@ -1837,9 +1825,8 @@ var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1837
1825
|
}
|
|
1838
1826
|
module.exports = outputJsonSync;
|
|
1839
1827
|
}));
|
|
1840
|
-
|
|
1841
1828
|
//#endregion
|
|
1842
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1829
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js
|
|
1843
1830
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1844
1831
|
const u = require_universalify().fromPromise;
|
|
1845
1832
|
const jsonFile = require_jsonfile();
|
|
@@ -1853,9 +1840,8 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1853
1840
|
jsonFile.readJSONSync = jsonFile.readJsonSync;
|
|
1854
1841
|
module.exports = jsonFile;
|
|
1855
1842
|
}));
|
|
1856
|
-
|
|
1857
1843
|
//#endregion
|
|
1858
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1844
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js
|
|
1859
1845
|
var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1860
1846
|
const fs = require_fs();
|
|
1861
1847
|
const path$2 = __require("path");
|
|
@@ -1894,9 +1880,8 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1894
1880
|
}
|
|
1895
1881
|
module.exports = move;
|
|
1896
1882
|
}));
|
|
1897
|
-
|
|
1898
1883
|
//#endregion
|
|
1899
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1884
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js
|
|
1900
1885
|
var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1901
1886
|
const fs = require_graceful_fs();
|
|
1902
1887
|
const path$1 = __require("path");
|
|
@@ -1943,9 +1928,8 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1943
1928
|
}
|
|
1944
1929
|
module.exports = moveSync;
|
|
1945
1930
|
}));
|
|
1946
|
-
|
|
1947
1931
|
//#endregion
|
|
1948
|
-
//#region ../../node_modules/.pnpm/fs-extra@11.3.
|
|
1932
|
+
//#region ../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js
|
|
1949
1933
|
var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1950
1934
|
const u = require_universalify().fromPromise;
|
|
1951
1935
|
module.exports = {
|
|
@@ -1953,10 +1937,9 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1953
1937
|
moveSync: require_move_sync()
|
|
1954
1938
|
};
|
|
1955
1939
|
}));
|
|
1956
|
-
|
|
1957
1940
|
//#endregion
|
|
1958
|
-
//#region ../../node_modules/.pnpm/
|
|
1959
|
-
var
|
|
1941
|
+
//#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
|
|
1942
|
+
var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1960
1943
|
module.exports = {
|
|
1961
1944
|
...require_fs(),
|
|
1962
1945
|
...require_copy(),
|
|
@@ -1969,11 +1952,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1969
1952
|
...require_path_exists(),
|
|
1970
1953
|
...require_remove()
|
|
1971
1954
|
};
|
|
1972
|
-
}));
|
|
1973
|
-
|
|
1974
|
-
//#endregion
|
|
1975
|
-
//#region ../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs
|
|
1976
|
-
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
1955
|
+
})))(), 1);
|
|
1977
1956
|
var astralIdentifierCodes = [
|
|
1978
1957
|
509,
|
|
1979
1958
|
0,
|
|
@@ -2005,8 +1984,8 @@ var astralIdentifierCodes = [
|
|
|
2005
1984
|
4,
|
|
2006
1985
|
318,
|
|
2007
1986
|
1,
|
|
2008
|
-
|
|
2009
|
-
|
|
1987
|
+
78,
|
|
1988
|
+
5,
|
|
2010
1989
|
71,
|
|
2011
1990
|
10,
|
|
2012
1991
|
50,
|
|
@@ -2151,7 +2130,9 @@ var astralIdentifierCodes = [
|
|
|
2151
2130
|
10,
|
|
2152
2131
|
47,
|
|
2153
2132
|
15,
|
|
2154
|
-
|
|
2133
|
+
199,
|
|
2134
|
+
7,
|
|
2135
|
+
137,
|
|
2155
2136
|
9,
|
|
2156
2137
|
54,
|
|
2157
2138
|
7,
|
|
@@ -2183,7 +2164,9 @@ var astralIdentifierCodes = [
|
|
|
2183
2164
|
4,
|
|
2184
2165
|
9,
|
|
2185
2166
|
9,
|
|
2186
|
-
|
|
2167
|
+
55,
|
|
2168
|
+
9,
|
|
2169
|
+
266,
|
|
2187
2170
|
3,
|
|
2188
2171
|
10,
|
|
2189
2172
|
1,
|
|
@@ -2283,7 +2266,15 @@ var astralIdentifierCodes = [
|
|
|
2283
2266
|
1,
|
|
2284
2267
|
2,
|
|
2285
2268
|
9,
|
|
2286
|
-
|
|
2269
|
+
233,
|
|
2270
|
+
0,
|
|
2271
|
+
3,
|
|
2272
|
+
0,
|
|
2273
|
+
8,
|
|
2274
|
+
1,
|
|
2275
|
+
6,
|
|
2276
|
+
0,
|
|
2277
|
+
475,
|
|
2287
2278
|
6,
|
|
2288
2279
|
110,
|
|
2289
2280
|
6,
|
|
@@ -2393,7 +2384,9 @@ var astralIdentifierStartCodes = [
|
|
|
2393
2384
|
21,
|
|
2394
2385
|
11,
|
|
2395
2386
|
25,
|
|
2396
|
-
|
|
2387
|
+
7,
|
|
2388
|
+
25,
|
|
2389
|
+
39,
|
|
2397
2390
|
55,
|
|
2398
2391
|
7,
|
|
2399
2392
|
1,
|
|
@@ -2438,8 +2431,8 @@ var astralIdentifierStartCodes = [
|
|
|
2438
2431
|
7,
|
|
2439
2432
|
1,
|
|
2440
2433
|
17,
|
|
2441
|
-
|
|
2442
|
-
|
|
2434
|
+
5,
|
|
2435
|
+
57,
|
|
2443
2436
|
28,
|
|
2444
2437
|
11,
|
|
2445
2438
|
0,
|
|
@@ -2623,7 +2616,9 @@ var astralIdentifierStartCodes = [
|
|
|
2623
2616
|
31,
|
|
2624
2617
|
15,
|
|
2625
2618
|
0,
|
|
2626
|
-
|
|
2619
|
+
24,
|
|
2620
|
+
43,
|
|
2621
|
+
261,
|
|
2627
2622
|
18,
|
|
2628
2623
|
16,
|
|
2629
2624
|
0,
|
|
@@ -2671,7 +2666,11 @@ var astralIdentifierStartCodes = [
|
|
|
2671
2666
|
44,
|
|
2672
2667
|
212,
|
|
2673
2668
|
63,
|
|
2674
|
-
|
|
2669
|
+
33,
|
|
2670
|
+
24,
|
|
2671
|
+
3,
|
|
2672
|
+
24,
|
|
2673
|
+
45,
|
|
2675
2674
|
74,
|
|
2676
2675
|
6,
|
|
2677
2676
|
0,
|
|
@@ -2681,13 +2680,15 @@ var astralIdentifierStartCodes = [
|
|
|
2681
2680
|
1,
|
|
2682
2681
|
2,
|
|
2683
2682
|
0,
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2683
|
+
15,
|
|
2684
|
+
4,
|
|
2685
|
+
10,
|
|
2686
|
+
7381,
|
|
2688
2687
|
42,
|
|
2689
|
-
|
|
2690
|
-
|
|
2688
|
+
31,
|
|
2689
|
+
98,
|
|
2690
|
+
114,
|
|
2691
|
+
8702,
|
|
2691
2692
|
3,
|
|
2692
2693
|
2,
|
|
2693
2694
|
6,
|
|
@@ -2795,7 +2796,19 @@ var astralIdentifierStartCodes = [
|
|
|
2795
2796
|
29,
|
|
2796
2797
|
3,
|
|
2797
2798
|
0,
|
|
2798
|
-
|
|
2799
|
+
208,
|
|
2800
|
+
30,
|
|
2801
|
+
2,
|
|
2802
|
+
2,
|
|
2803
|
+
2,
|
|
2804
|
+
1,
|
|
2805
|
+
2,
|
|
2806
|
+
6,
|
|
2807
|
+
3,
|
|
2808
|
+
4,
|
|
2809
|
+
10,
|
|
2810
|
+
1,
|
|
2811
|
+
225,
|
|
2799
2812
|
6,
|
|
2800
2813
|
2,
|
|
2801
2814
|
3,
|
|
@@ -2878,12 +2891,10 @@ var astralIdentifierStartCodes = [
|
|
|
2878
2891
|
4421,
|
|
2879
2892
|
42719,
|
|
2880
2893
|
33,
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2894
|
+
4381,
|
|
2895
|
+
3,
|
|
2896
|
+
5773,
|
|
2884
2897
|
3,
|
|
2885
|
-
5761,
|
|
2886
|
-
15,
|
|
2887
2898
|
7472,
|
|
2888
2899
|
16,
|
|
2889
2900
|
621,
|
|
@@ -2892,10 +2903,10 @@ var astralIdentifierStartCodes = [
|
|
|
2892
2903
|
1507,
|
|
2893
2904
|
4938,
|
|
2894
2905
|
6,
|
|
2895
|
-
|
|
2906
|
+
8489
|
|
2896
2907
|
];
|
|
2897
|
-
var nonASCIIidentifierChars = "
|
|
2898
|
-
var nonASCIIidentifierStartChars = "
|
|
2908
|
+
var nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
2909
|
+
var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
2899
2910
|
var reservedWords = {
|
|
2900
2911
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
2901
2912
|
5: "class enum extends super const export import",
|
|
@@ -3198,6 +3209,7 @@ function getOptions(opts) {
|
|
|
3198
3209
|
};
|
|
3199
3210
|
}
|
|
3200
3211
|
if (isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);
|
|
3212
|
+
if (options.sourceType === "commonjs" && options.allowAwaitOutsideFunction) throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
|
|
3201
3213
|
return options;
|
|
3202
3214
|
}
|
|
3203
3215
|
function pushComment(options, array) {
|
|
@@ -3213,7 +3225,7 @@ function pushComment(options, array) {
|
|
|
3213
3225
|
array.push(comment);
|
|
3214
3226
|
};
|
|
3215
3227
|
}
|
|
3216
|
-
var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
3228
|
+
var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_SWITCH = 1024, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
3217
3229
|
function functionFlags(async, generator) {
|
|
3218
3230
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
3219
3231
|
}
|
|
@@ -3258,7 +3270,7 @@ var Parser = function Parser(options, input, startPos) {
|
|
|
3258
3270
|
this.undefinedExports = Object.create(null);
|
|
3259
3271
|
if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") this.skipLineComment(2);
|
|
3260
3272
|
this.scopeStack = [];
|
|
3261
|
-
this.enterScope(SCOPE_TOP);
|
|
3273
|
+
this.enterScope(this.options.sourceType === "commonjs" ? SCOPE_FUNCTION : SCOPE_TOP);
|
|
3262
3274
|
this.regexpState = null;
|
|
3263
3275
|
this.privateNameStack = [];
|
|
3264
3276
|
};
|
|
@@ -3267,10 +3279,12 @@ var prototypeAccessors = {
|
|
|
3267
3279
|
inGenerator: { configurable: true },
|
|
3268
3280
|
inAsync: { configurable: true },
|
|
3269
3281
|
canAwait: { configurable: true },
|
|
3282
|
+
allowReturn: { configurable: true },
|
|
3270
3283
|
allowSuper: { configurable: true },
|
|
3271
3284
|
allowDirectSuper: { configurable: true },
|
|
3272
3285
|
treatFunctionsAsVar: { configurable: true },
|
|
3273
3286
|
allowNewDotTarget: { configurable: true },
|
|
3287
|
+
allowUsing: { configurable: true },
|
|
3274
3288
|
inClassStaticBlock: { configurable: true }
|
|
3275
3289
|
};
|
|
3276
3290
|
Parser.prototype.parse = function parse() {
|
|
@@ -3295,6 +3309,11 @@ prototypeAccessors.canAwait.get = function() {
|
|
|
3295
3309
|
}
|
|
3296
3310
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
3297
3311
|
};
|
|
3312
|
+
prototypeAccessors.allowReturn.get = function() {
|
|
3313
|
+
if (this.inFunction) return true;
|
|
3314
|
+
if (this.options.allowReturnOutsideFunction && this.currentVarScope().flags & SCOPE_TOP) return true;
|
|
3315
|
+
return false;
|
|
3316
|
+
};
|
|
3298
3317
|
prototypeAccessors.allowSuper.get = function() {
|
|
3299
3318
|
return (this.currentThisScope().flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
|
|
3300
3319
|
};
|
|
@@ -3311,6 +3330,12 @@ prototypeAccessors.allowNewDotTarget.get = function() {
|
|
|
3311
3330
|
}
|
|
3312
3331
|
return false;
|
|
3313
3332
|
};
|
|
3333
|
+
prototypeAccessors.allowUsing.get = function() {
|
|
3334
|
+
var flags = this.currentScope().flags;
|
|
3335
|
+
if (flags & SCOPE_SWITCH) return false;
|
|
3336
|
+
if (!this.inModule && flags & SCOPE_TOP) return false;
|
|
3337
|
+
return true;
|
|
3338
|
+
};
|
|
3314
3339
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
3315
3340
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
3316
3341
|
};
|
|
@@ -3435,7 +3460,7 @@ pp$8.parseTopLevel = function(node) {
|
|
|
3435
3460
|
}
|
|
3436
3461
|
this.adaptDirectivePrologue(node.body);
|
|
3437
3462
|
this.next();
|
|
3438
|
-
node.sourceType = this.options.sourceType;
|
|
3463
|
+
node.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType;
|
|
3439
3464
|
return this.finishNode(node, "Program");
|
|
3440
3465
|
};
|
|
3441
3466
|
var loopLabel = { kind: "loop" }, switchLabel = { kind: "switch" };
|
|
@@ -3443,15 +3468,17 @@ pp$8.isLet = function(context) {
|
|
|
3443
3468
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
|
|
3444
3469
|
skipWhiteSpace.lastIndex = this.pos;
|
|
3445
3470
|
var skip = skipWhiteSpace.exec(this.input);
|
|
3446
|
-
var next = this.pos + skip[0].length, nextCh = this.
|
|
3471
|
+
var next = this.pos + skip[0].length, nextCh = this.fullCharCodeAt(next);
|
|
3447
3472
|
if (nextCh === 91 || nextCh === 92) return true;
|
|
3448
3473
|
if (context) return false;
|
|
3449
|
-
if (nextCh === 123
|
|
3450
|
-
if (isIdentifierStart(nextCh
|
|
3451
|
-
var
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3474
|
+
if (nextCh === 123) return true;
|
|
3475
|
+
if (isIdentifierStart(nextCh)) {
|
|
3476
|
+
var start = next;
|
|
3477
|
+
do
|
|
3478
|
+
next += nextCh <= 65535 ? 1 : 2;
|
|
3479
|
+
while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)));
|
|
3480
|
+
if (nextCh === 92) return true;
|
|
3481
|
+
var ident = this.input.slice(start, next);
|
|
3455
3482
|
if (!keywordRelationalOperator.test(ident)) return true;
|
|
3456
3483
|
}
|
|
3457
3484
|
return false;
|
|
@@ -3461,7 +3488,7 @@ pp$8.isAsyncFunction = function() {
|
|
|
3461
3488
|
skipWhiteSpace.lastIndex = this.pos;
|
|
3462
3489
|
var skip = skipWhiteSpace.exec(this.input);
|
|
3463
3490
|
var next = this.pos + skip[0].length, after;
|
|
3464
|
-
return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.
|
|
3491
|
+
return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92));
|
|
3465
3492
|
};
|
|
3466
3493
|
pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
|
|
3467
3494
|
if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using")) return false;
|
|
@@ -3470,20 +3497,23 @@ pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
|
|
|
3470
3497
|
var next = this.pos + skip[0].length;
|
|
3471
3498
|
if (lineBreak.test(this.input.slice(this.pos, next))) return false;
|
|
3472
3499
|
if (isAwaitUsing) {
|
|
3473
|
-
var
|
|
3474
|
-
if (this.input.slice(next,
|
|
3475
|
-
skipWhiteSpace.lastIndex =
|
|
3500
|
+
var usingEndPos = next + 5, after;
|
|
3501
|
+
if (this.input.slice(next, usingEndPos) !== "using" || usingEndPos === this.input.length || isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) || after === 92) return false;
|
|
3502
|
+
skipWhiteSpace.lastIndex = usingEndPos;
|
|
3476
3503
|
var skipAfterUsing = skipWhiteSpace.exec(this.input);
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3504
|
+
next = usingEndPos + skipAfterUsing[0].length;
|
|
3505
|
+
if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) return false;
|
|
3506
|
+
}
|
|
3507
|
+
var ch = this.fullCharCodeAt(next);
|
|
3508
|
+
if (!isIdentifierStart(ch) && ch !== 92) return false;
|
|
3509
|
+
var idStart = next;
|
|
3510
|
+
do
|
|
3511
|
+
next += ch <= 65535 ? 1 : 2;
|
|
3512
|
+
while (isIdentifierChar(ch = this.fullCharCodeAt(next)));
|
|
3513
|
+
if (ch === 92) return true;
|
|
3514
|
+
var id = this.input.slice(idStart, next);
|
|
3515
|
+
if (keywordRelationalOperator.test(id) || isFor && id === "of") return false;
|
|
3516
|
+
return true;
|
|
3487
3517
|
};
|
|
3488
3518
|
pp$8.isAwaitUsing = function(isFor) {
|
|
3489
3519
|
return this.isUsingKeyword(true, isFor);
|
|
@@ -3544,7 +3574,7 @@ pp$8.parseStatement = function(context, topLevel, exports) {
|
|
|
3544
3574
|
}
|
|
3545
3575
|
var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
|
|
3546
3576
|
if (usingKind) {
|
|
3547
|
-
if (
|
|
3577
|
+
if (!this.allowUsing) this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");
|
|
3548
3578
|
if (usingKind === "await using") {
|
|
3549
3579
|
if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
|
|
3550
3580
|
this.next();
|
|
@@ -3618,7 +3648,10 @@ pp$8.parseForStatement = function(node) {
|
|
|
3618
3648
|
if (usingKind) {
|
|
3619
3649
|
var init$2 = this.startNode();
|
|
3620
3650
|
this.next();
|
|
3621
|
-
if (usingKind === "await using")
|
|
3651
|
+
if (usingKind === "await using") {
|
|
3652
|
+
if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
|
|
3653
|
+
this.next();
|
|
3654
|
+
}
|
|
3622
3655
|
this.parseVar(init$2, true, usingKind);
|
|
3623
3656
|
this.finishNode(init$2, "VariableDeclaration");
|
|
3624
3657
|
return this.parseForAfterInit(node, init$2, awaitAt);
|
|
@@ -3665,7 +3698,7 @@ pp$8.parseIfStatement = function(node) {
|
|
|
3665
3698
|
return this.finishNode(node, "IfStatement");
|
|
3666
3699
|
};
|
|
3667
3700
|
pp$8.parseReturnStatement = function(node) {
|
|
3668
|
-
if (!this.
|
|
3701
|
+
if (!this.allowReturn) this.raise(this.start, "'return' outside of function");
|
|
3669
3702
|
this.next();
|
|
3670
3703
|
if (this.eat(types$1.semi) || this.insertSemicolon()) node.argument = null;
|
|
3671
3704
|
else {
|
|
@@ -3680,7 +3713,7 @@ pp$8.parseSwitchStatement = function(node) {
|
|
|
3680
3713
|
node.cases = [];
|
|
3681
3714
|
this.expect(types$1.braceL);
|
|
3682
3715
|
this.labels.push(switchLabel);
|
|
3683
|
-
this.enterScope(
|
|
3716
|
+
this.enterScope(SCOPE_SWITCH);
|
|
3684
3717
|
var cur;
|
|
3685
3718
|
for (var sawDefault = false; this.type !== types$1.braceR;) if (this.type === types$1._case || this.type === types$1._default) {
|
|
3686
3719
|
var isCase = this.type === types$1._case;
|
|
@@ -5421,7 +5454,7 @@ pp$2.copyNode = function(node) {
|
|
|
5421
5454
|
for (var prop in node) newNode[prop] = node[prop];
|
|
5422
5455
|
return newNode;
|
|
5423
5456
|
};
|
|
5424
|
-
var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
|
|
5457
|
+
var scriptValuesAddedInUnicode = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz";
|
|
5425
5458
|
var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
|
|
5426
5459
|
var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
5427
5460
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
@@ -6427,12 +6460,15 @@ pp.readToken = function(code) {
|
|
|
6427
6460
|
if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92) return this.readWord();
|
|
6428
6461
|
return this.getTokenFromCode(code);
|
|
6429
6462
|
};
|
|
6430
|
-
pp.
|
|
6431
|
-
var code = this.input.charCodeAt(
|
|
6463
|
+
pp.fullCharCodeAt = function(pos) {
|
|
6464
|
+
var code = this.input.charCodeAt(pos);
|
|
6432
6465
|
if (code <= 55295 || code >= 56320) return code;
|
|
6433
|
-
var next = this.input.charCodeAt(
|
|
6466
|
+
var next = this.input.charCodeAt(pos + 1);
|
|
6434
6467
|
return next <= 56319 || next >= 57344 ? code : (code << 10) + next - 56613888;
|
|
6435
6468
|
};
|
|
6469
|
+
pp.fullCharCodeAtPos = function() {
|
|
6470
|
+
return this.fullCharCodeAt(this.pos);
|
|
6471
|
+
};
|
|
6436
6472
|
pp.skipBlockComment = function() {
|
|
6437
6473
|
var startLoc = this.options.onComment && this.curPosition();
|
|
6438
6474
|
var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
|
|
@@ -6976,10 +7012,9 @@ pp.readWord = function() {
|
|
|
6976
7012
|
if (this.keywords.test(word)) type = keywords[word];
|
|
6977
7013
|
return this.finishToken(type, word);
|
|
6978
7014
|
};
|
|
6979
|
-
var version = "8.15.0";
|
|
6980
7015
|
Parser.acorn = {
|
|
6981
7016
|
Parser,
|
|
6982
|
-
version,
|
|
7017
|
+
version: "8.16.0",
|
|
6983
7018
|
defaultOptions,
|
|
6984
7019
|
Position,
|
|
6985
7020
|
SourceLocation,
|
|
@@ -6998,10 +7033,7 @@ Parser.acorn = {
|
|
|
6998
7033
|
lineBreakG,
|
|
6999
7034
|
nonASCIIwhitespace
|
|
7000
7035
|
};
|
|
7001
|
-
|
|
7002
|
-
//#endregion
|
|
7003
|
-
//#region ../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs
|
|
7004
|
-
const r = String.fromCharCode;
|
|
7036
|
+
String.fromCharCode;
|
|
7005
7037
|
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
7006
7038
|
const JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
7007
7039
|
function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
@@ -7033,8 +7065,6 @@ function joinURL(base, ...input) {
|
|
|
7033
7065
|
} else url = segment;
|
|
7034
7066
|
return url;
|
|
7035
7067
|
}
|
|
7036
|
-
const protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
7037
|
-
|
|
7038
7068
|
//#endregion
|
|
7039
7069
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
7040
7070
|
let _lazyMatch = () => {
|
|
@@ -7283,7 +7313,6 @@ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
|
7283
7313
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
7284
7314
|
const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
7285
7315
|
const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
|
|
7286
|
-
const sep = "/";
|
|
7287
7316
|
const normalize = function(path) {
|
|
7288
7317
|
if (path.length === 0) return ".";
|
|
7289
7318
|
path = normalizeWindowsPath(path);
|
|
@@ -7462,10 +7491,9 @@ const _path = {
|
|
|
7462
7491
|
parse: parse$1,
|
|
7463
7492
|
relative,
|
|
7464
7493
|
resolve,
|
|
7465
|
-
sep,
|
|
7494
|
+
sep: "/",
|
|
7466
7495
|
toNamespacedPath
|
|
7467
7496
|
};
|
|
7468
|
-
|
|
7469
7497
|
//#endregion
|
|
7470
7498
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
7471
7499
|
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
@@ -7483,9 +7511,8 @@ const mix = (del = delimiter) => {
|
|
|
7483
7511
|
};
|
|
7484
7512
|
const posix = /* @__PURE__ */ mix(":");
|
|
7485
7513
|
const win32 = /* @__PURE__ */ mix(";");
|
|
7486
|
-
|
|
7487
7514
|
//#endregion
|
|
7488
|
-
//#region ../../node_modules/.pnpm/mlly@1.8.
|
|
7515
|
+
//#region ../../node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist/index.mjs
|
|
7489
7516
|
const BUILTIN_MODULES = new Set(builtinModules);
|
|
7490
7517
|
function normalizeSlash(path) {
|
|
7491
7518
|
return path.replace(/\\/g, "/");
|
|
@@ -7541,7 +7568,7 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
7541
7568
|
* @param {unknown} actual
|
|
7542
7569
|
*/
|
|
7543
7570
|
(name, expected, actual) => {
|
|
7544
|
-
assert(typeof name === "string", "'name' must be a string");
|
|
7571
|
+
assert.ok(typeof name === "string", "'name' must be a string");
|
|
7545
7572
|
if (!Array.isArray(expected)) expected = [expected];
|
|
7546
7573
|
let message = "The ";
|
|
7547
7574
|
if (name.endsWith(" argument")) message += `${name} `;
|
|
@@ -7557,10 +7584,10 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
7557
7584
|
/** @type {Array<string>} */
|
|
7558
7585
|
const other = [];
|
|
7559
7586
|
for (const value of expected) {
|
|
7560
|
-
assert(typeof value === "string", "All expected entries have to be of type string");
|
|
7587
|
+
assert.ok(typeof value === "string", "All expected entries have to be of type string");
|
|
7561
7588
|
if (kTypes.has(value)) types.push(value.toLowerCase());
|
|
7562
7589
|
else if (classRegExp.exec(value) === null) {
|
|
7563
|
-
assert(value !== "object", "The value \"object\" should be written as \"Object\"");
|
|
7590
|
+
assert.ok(value !== "object", "The value \"object\" should be written as \"Object\"");
|
|
7564
7591
|
other.push(value);
|
|
7565
7592
|
} else instances.push(value);
|
|
7566
7593
|
}
|
|
@@ -7625,7 +7652,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
7625
7652
|
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
7626
7653
|
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
7627
7654
|
if (key === ".") {
|
|
7628
|
-
assert(isImport === false);
|
|
7655
|
+
assert.ok(isImport === false);
|
|
7629
7656
|
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
|
|
7630
7657
|
}
|
|
7631
7658
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
|
|
@@ -7792,15 +7819,15 @@ const captureLargerStackTrace = hideStackFrames(
|
|
|
7792
7819
|
*/
|
|
7793
7820
|
function getMessage(key, parameters, self) {
|
|
7794
7821
|
const message = messages.get(key);
|
|
7795
|
-
assert(message !== void 0, "expected `message` to be found");
|
|
7822
|
+
assert.ok(message !== void 0, "expected `message` to be found");
|
|
7796
7823
|
if (typeof message === "function") {
|
|
7797
|
-
assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
7824
|
+
assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
7798
7825
|
return Reflect.apply(message, self, parameters);
|
|
7799
7826
|
}
|
|
7800
7827
|
const regex = /%[dfijoOs]/g;
|
|
7801
7828
|
let expectedLength = 0;
|
|
7802
7829
|
while (regex.exec(message) !== null) expectedLength++;
|
|
7803
|
-
assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
7830
|
+
assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
7804
7831
|
if (parameters.length === 0) return message;
|
|
7805
7832
|
parameters.unshift(message);
|
|
7806
7833
|
return Reflect.apply(format, null, parameters);
|
|
@@ -8001,6 +8028,21 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
8001
8028
|
if (!hasOwnProperty.call(protocolHandlers, protocol)) return null;
|
|
8002
8029
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
8003
8030
|
}
|
|
8031
|
+
const DEFAULT_CONDITIONS = Object.freeze(["node", "import"]);
|
|
8032
|
+
const DEFAULT_CONDITIONS_SET$1 = new Set(DEFAULT_CONDITIONS);
|
|
8033
|
+
/**
|
|
8034
|
+
* Returns the default conditions for ES module loading, as a Set.
|
|
8035
|
+
*/
|
|
8036
|
+
function getDefaultConditionsSet() {
|
|
8037
|
+
return DEFAULT_CONDITIONS_SET$1;
|
|
8038
|
+
}
|
|
8039
|
+
/**
|
|
8040
|
+
* @param {Array<string>} [conditions]
|
|
8041
|
+
* @returns {Set<string>}
|
|
8042
|
+
*/
|
|
8043
|
+
function getConditionsSet(conditions) {
|
|
8044
|
+
return getDefaultConditionsSet();
|
|
8045
|
+
}
|
|
8004
8046
|
const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
8005
8047
|
const { ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes;
|
|
8006
8048
|
const own = {}.hasOwnProperty;
|
|
@@ -8039,7 +8081,7 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
8039
8081
|
if (process$1.noDeprecation) return;
|
|
8040
8082
|
if (defaultGetFormatWithoutErrors(url, { parentURL: base.href }) !== "module") return;
|
|
8041
8083
|
const urlPath = fileURLToPath(url.href);
|
|
8042
|
-
const packagePath = fileURLToPath(new URL
|
|
8084
|
+
const packagePath = fileURLToPath(new URL(".", packageJsonUrl));
|
|
8043
8085
|
const basePath = fileURLToPath(base);
|
|
8044
8086
|
if (!main) process$1.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
|
|
8045
8087
|
else if (path.resolve(packagePath, main) !== urlPath) process$1.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
|
|
@@ -8079,7 +8121,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
8079
8121
|
/** @type {URL | undefined} */
|
|
8080
8122
|
let guess;
|
|
8081
8123
|
if (packageConfig.main !== void 0) {
|
|
8082
|
-
guess = new URL
|
|
8124
|
+
guess = new URL(packageConfig.main, packageJsonUrl);
|
|
8083
8125
|
if (fileExists(guess)) return guess;
|
|
8084
8126
|
const tries = [
|
|
8085
8127
|
`./${packageConfig.main}.js`,
|
|
@@ -8091,7 +8133,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
8091
8133
|
];
|
|
8092
8134
|
let i = -1;
|
|
8093
8135
|
while (++i < tries.length) {
|
|
8094
|
-
guess = new URL
|
|
8136
|
+
guess = new URL(tries[i], packageJsonUrl);
|
|
8095
8137
|
if (fileExists(guess)) break;
|
|
8096
8138
|
guess = void 0;
|
|
8097
8139
|
}
|
|
@@ -8107,7 +8149,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
8107
8149
|
];
|
|
8108
8150
|
let i = -1;
|
|
8109
8151
|
while (++i < tries.length) {
|
|
8110
|
-
guess = new URL
|
|
8152
|
+
guess = new URL(tries[i], packageJsonUrl);
|
|
8111
8153
|
if (fileExists(guess)) break;
|
|
8112
8154
|
guess = void 0;
|
|
8113
8155
|
}
|
|
@@ -8115,7 +8157,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
8115
8157
|
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
|
|
8116
8158
|
return guess;
|
|
8117
8159
|
}
|
|
8118
|
-
throw new ERR_MODULE_NOT_FOUND(fileURLToPath(new URL
|
|
8160
|
+
throw new ERR_MODULE_NOT_FOUND(fileURLToPath(new URL(".", packageJsonUrl)), fileURLToPath(base));
|
|
8119
8161
|
}
|
|
8120
8162
|
/**
|
|
8121
8163
|
* @param {URL} resolved
|
|
@@ -8162,7 +8204,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
8162
8204
|
* @returns {Error}
|
|
8163
8205
|
*/
|
|
8164
8206
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
8165
|
-
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && fileURLToPath(new URL
|
|
8207
|
+
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && fileURLToPath(new URL(".", packageJsonUrl)), fileURLToPath(base));
|
|
8166
8208
|
}
|
|
8167
8209
|
/**
|
|
8168
8210
|
* @param {string} subpath
|
|
@@ -8171,7 +8213,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
8171
8213
|
* @returns {Error}
|
|
8172
8214
|
*/
|
|
8173
8215
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
8174
|
-
return new ERR_PACKAGE_PATH_NOT_EXPORTED(fileURLToPath(new URL
|
|
8216
|
+
return new ERR_PACKAGE_PATH_NOT_EXPORTED(fileURLToPath(new URL(".", packageJsonUrl)), subpath, base && fileURLToPath(base));
|
|
8175
8217
|
}
|
|
8176
8218
|
/**
|
|
8177
8219
|
* @param {string} request
|
|
@@ -8194,7 +8236,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
8194
8236
|
*/
|
|
8195
8237
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
8196
8238
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
8197
|
-
return new ERR_INVALID_PACKAGE_TARGET(fileURLToPath(new URL
|
|
8239
|
+
return new ERR_INVALID_PACKAGE_TARGET(fileURLToPath(new URL(".", packageJsonUrl)), subpath, target, internal, base && fileURLToPath(base));
|
|
8198
8240
|
}
|
|
8199
8241
|
/**
|
|
8200
8242
|
* @param {string} target
|
|
@@ -8214,7 +8256,7 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
8214
8256
|
if (internal && !target.startsWith("../") && !target.startsWith("/")) {
|
|
8215
8257
|
let isURL = false;
|
|
8216
8258
|
try {
|
|
8217
|
-
new URL
|
|
8259
|
+
new URL(target);
|
|
8218
8260
|
isURL = true;
|
|
8219
8261
|
} catch {}
|
|
8220
8262
|
if (!isURL) return packageResolve(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath, packageJsonUrl, conditions);
|
|
@@ -8227,9 +8269,9 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
8227
8269
|
emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
|
|
8228
8270
|
}
|
|
8229
8271
|
} else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
8230
|
-
const resolved = new URL
|
|
8272
|
+
const resolved = new URL(target, packageJsonUrl);
|
|
8231
8273
|
const resolvedPath = resolved.pathname;
|
|
8232
|
-
const packagePath = new URL
|
|
8274
|
+
const packagePath = new URL(".", packageJsonUrl).pathname;
|
|
8233
8275
|
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
8234
8276
|
if (subpath === "") return resolved;
|
|
8235
8277
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
@@ -8238,8 +8280,8 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
8238
8280
|
if (!isPathMap) emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, false);
|
|
8239
8281
|
} else throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
|
|
8240
8282
|
}
|
|
8241
|
-
if (pattern) return new URL
|
|
8242
|
-
return new URL
|
|
8283
|
+
if (pattern) return new URL(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath));
|
|
8284
|
+
return new URL(subpath, resolved);
|
|
8243
8285
|
}
|
|
8244
8286
|
/**
|
|
8245
8287
|
* @param {string} key
|
|
@@ -8321,10 +8363,10 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
8321
8363
|
* @param {URL} base
|
|
8322
8364
|
* @returns {boolean}
|
|
8323
8365
|
*/
|
|
8324
|
-
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
8325
|
-
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
8326
|
-
if (typeof exports !== "object" || exports === null) return false;
|
|
8327
|
-
const keys = Object.getOwnPropertyNames(exports);
|
|
8366
|
+
function isConditionalExportsMainSugar(exports$1, packageJsonUrl, base) {
|
|
8367
|
+
if (typeof exports$1 === "string" || Array.isArray(exports$1)) return true;
|
|
8368
|
+
if (typeof exports$1 !== "object" || exports$1 === null) return false;
|
|
8369
|
+
const keys = Object.getOwnPropertyNames(exports$1);
|
|
8328
8370
|
let isConditionalSugar = false;
|
|
8329
8371
|
let i = 0;
|
|
8330
8372
|
let keyIndex = -1;
|
|
@@ -8357,17 +8399,17 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
8357
8399
|
* @returns {URL}
|
|
8358
8400
|
*/
|
|
8359
8401
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
8360
|
-
let exports = packageConfig.exports;
|
|
8361
|
-
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) exports = { ".": exports };
|
|
8362
|
-
if (own.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
8363
|
-
const target = exports[packageSubpath];
|
|
8402
|
+
let exports$1 = packageConfig.exports;
|
|
8403
|
+
if (isConditionalExportsMainSugar(exports$1, packageJsonUrl, base)) exports$1 = { ".": exports$1 };
|
|
8404
|
+
if (own.call(exports$1, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
8405
|
+
const target = exports$1[packageSubpath];
|
|
8364
8406
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
8365
8407
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
8366
8408
|
return resolveResult;
|
|
8367
8409
|
}
|
|
8368
8410
|
let bestMatch = "";
|
|
8369
8411
|
let bestMatchSubpath = "";
|
|
8370
|
-
const keys = Object.getOwnPropertyNames(exports);
|
|
8412
|
+
const keys = Object.getOwnPropertyNames(exports$1);
|
|
8371
8413
|
let i = -1;
|
|
8372
8414
|
while (++i < keys.length) {
|
|
8373
8415
|
const key = keys[i];
|
|
@@ -8382,7 +8424,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
8382
8424
|
}
|
|
8383
8425
|
}
|
|
8384
8426
|
if (bestMatch) {
|
|
8385
|
-
const target = exports[bestMatch];
|
|
8427
|
+
const target = exports$1[bestMatch];
|
|
8386
8428
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
8387
8429
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
8388
8430
|
return resolveResult;
|
|
@@ -8477,7 +8519,7 @@ function parsePackageName(specifier, base) {
|
|
|
8477
8519
|
* @returns {URL}
|
|
8478
8520
|
*/
|
|
8479
8521
|
function packageResolve(specifier, base, conditions) {
|
|
8480
|
-
if (builtinModules.includes(specifier)) return new URL
|
|
8522
|
+
if (builtinModules.includes(specifier)) return new URL("node:" + specifier);
|
|
8481
8523
|
const { packageName, packageSubpath, isScoped } = parsePackageName(specifier, base);
|
|
8482
8524
|
const packageConfig = getPackageScopeConfig(base);
|
|
8483
8525
|
/* c8 ignore next 16 */
|
|
@@ -8485,7 +8527,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
8485
8527
|
const packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);
|
|
8486
8528
|
if (packageConfig.name === packageName && packageConfig.exports !== void 0 && packageConfig.exports !== null) return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions);
|
|
8487
8529
|
}
|
|
8488
|
-
let packageJsonUrl = new URL
|
|
8530
|
+
let packageJsonUrl = new URL("./node_modules/" + packageName + "/package.json", base);
|
|
8489
8531
|
let packageJsonPath = fileURLToPath(packageJsonUrl);
|
|
8490
8532
|
/** @type {string} */
|
|
8491
8533
|
let lastPath;
|
|
@@ -8493,7 +8535,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
8493
8535
|
const stat = tryStatSync(packageJsonPath.slice(0, -13));
|
|
8494
8536
|
if (!stat || !stat.isDirectory()) {
|
|
8495
8537
|
lastPath = packageJsonPath;
|
|
8496
|
-
packageJsonUrl = new URL
|
|
8538
|
+
packageJsonUrl = new URL((isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json", packageJsonUrl);
|
|
8497
8539
|
packageJsonPath = fileURLToPath(packageJsonUrl);
|
|
8498
8540
|
continue;
|
|
8499
8541
|
}
|
|
@@ -8503,7 +8545,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
8503
8545
|
});
|
|
8504
8546
|
if (packageConfig.exports !== void 0 && packageConfig.exports !== null) return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions);
|
|
8505
8547
|
if (packageSubpath === ".") return legacyMainResolve(packageJsonUrl, packageConfig, base);
|
|
8506
|
-
return new URL
|
|
8548
|
+
return new URL(packageSubpath, packageJsonUrl);
|
|
8507
8549
|
} while (packageJsonPath.length !== lastPath.length);
|
|
8508
8550
|
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), false);
|
|
8509
8551
|
}
|
|
@@ -8543,12 +8585,13 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
|
8543
8585
|
* A URL object to the found thing.
|
|
8544
8586
|
*/
|
|
8545
8587
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
8588
|
+
if (conditions === void 0) conditions = getConditionsSet();
|
|
8546
8589
|
const protocol = base.protocol;
|
|
8547
8590
|
const isRemote = protocol === "data:" || protocol === "http:" || protocol === "https:";
|
|
8548
8591
|
/** @type {URL | undefined} */
|
|
8549
8592
|
let resolved;
|
|
8550
8593
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) try {
|
|
8551
|
-
resolved = new URL
|
|
8594
|
+
resolved = new URL(specifier, base);
|
|
8552
8595
|
} catch (error_) {
|
|
8553
8596
|
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
8554
8597
|
error.cause = error_;
|
|
@@ -8556,7 +8599,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
8556
8599
|
}
|
|
8557
8600
|
else if (protocol === "file:" && specifier[0] === "#") resolved = packageImportsResolve(specifier, base, conditions);
|
|
8558
8601
|
else try {
|
|
8559
|
-
resolved = new URL
|
|
8602
|
+
resolved = new URL(specifier);
|
|
8560
8603
|
} catch (error_) {
|
|
8561
8604
|
if (isRemote && !builtinModules.includes(specifier)) {
|
|
8562
8605
|
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
@@ -8565,7 +8608,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
8565
8608
|
}
|
|
8566
8609
|
resolved = packageResolve(specifier, base, conditions);
|
|
8567
8610
|
}
|
|
8568
|
-
assert(resolved !== void 0, "expected to be defined");
|
|
8611
|
+
assert.ok(resolved !== void 0, "expected to be defined");
|
|
8569
8612
|
if (resolved.protocol !== "file:") return resolved;
|
|
8570
8613
|
return finalizeResolution(resolved, base);
|
|
8571
8614
|
}
|
|
@@ -8644,9 +8687,8 @@ function resolveSync(id, options) {
|
|
|
8644
8687
|
function resolvePathSync(id, options) {
|
|
8645
8688
|
return fileURLToPath$1(resolveSync(id, options));
|
|
8646
8689
|
}
|
|
8647
|
-
|
|
8648
8690
|
//#endregion
|
|
8649
|
-
//#region ../../node_modules/.pnpm/defu@6.1.
|
|
8691
|
+
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
8650
8692
|
function isPlainObject(value) {
|
|
8651
8693
|
if (value === null || typeof value !== "object") return false;
|
|
8652
8694
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -8657,8 +8699,8 @@ function isPlainObject(value) {
|
|
|
8657
8699
|
}
|
|
8658
8700
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
8659
8701
|
if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
|
|
8660
|
-
const object =
|
|
8661
|
-
for (const key
|
|
8702
|
+
const object = { ...defaults };
|
|
8703
|
+
for (const key of Object.keys(baseObject)) {
|
|
8662
8704
|
if (key === "__proto__" || key === "constructor") continue;
|
|
8663
8705
|
const value = baseObject[key];
|
|
8664
8706
|
if (value === null || value === void 0) continue;
|
|
@@ -8673,24 +8715,20 @@ function createDefu(merger) {
|
|
|
8673
8715
|
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
|
|
8674
8716
|
}
|
|
8675
8717
|
const defu = createDefu();
|
|
8676
|
-
|
|
8718
|
+
createDefu((object, key, currentValue) => {
|
|
8677
8719
|
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
8678
8720
|
object[key] = currentValue(object[key]);
|
|
8679
8721
|
return true;
|
|
8680
8722
|
}
|
|
8681
8723
|
});
|
|
8682
|
-
|
|
8724
|
+
createDefu((object, key, currentValue) => {
|
|
8683
8725
|
if (Array.isArray(object[key]) && typeof currentValue === "function") {
|
|
8684
8726
|
object[key] = currentValue(object[key]);
|
|
8685
8727
|
return true;
|
|
8686
8728
|
}
|
|
8687
8729
|
});
|
|
8688
|
-
|
|
8689
|
-
//#endregion
|
|
8690
|
-
//#region src/modules/preset-vue.ts
|
|
8691
|
-
const name$1 = "vixt:preset-vue";
|
|
8692
8730
|
var preset_vue_default = defineVixtModule({
|
|
8693
|
-
meta: { name:
|
|
8731
|
+
meta: { name: "vixt:preset-vue" },
|
|
8694
8732
|
setup(_, vixt) {
|
|
8695
8733
|
const { components = [], composables = [], constants = [], utils = [], stores = [], pages = [], layouts = [] } = resolveLayersDirs([...vixt._layers].reverse());
|
|
8696
8734
|
const { buildTypesDir } = vixt.options;
|
|
@@ -8756,7 +8794,6 @@ var preset_vue_default = defineVixtModule({
|
|
|
8756
8794
|
];
|
|
8757
8795
|
}
|
|
8758
8796
|
});
|
|
8759
|
-
|
|
8760
8797
|
//#endregion
|
|
8761
8798
|
//#region src/modules/virtual-root-component.ts
|
|
8762
8799
|
function resolveRootComponent(vixt) {
|
|
@@ -8802,7 +8839,6 @@ var virtual_root_component_default = defineVixtModule({
|
|
|
8802
8839
|
};
|
|
8803
8840
|
}
|
|
8804
8841
|
});
|
|
8805
|
-
|
|
8806
8842
|
//#endregion
|
|
8807
8843
|
//#region src/index.ts
|
|
8808
8844
|
const plugins = ["@vixt/vue/client/plugins/pinia", "@vixt/vue/client/plugins/router"];
|
|
@@ -8827,6 +8863,5 @@ var src_default = createVixtPlugin({ defaults: {
|
|
|
8827
8863
|
} },
|
|
8828
8864
|
vite: { optimizeDeps: { exclude: plugins } }
|
|
8829
8865
|
} });
|
|
8830
|
-
|
|
8831
8866
|
//#endregion
|
|
8832
|
-
export { src_default as default };
|
|
8867
|
+
export { src_default as default };
|