@valbuild/tanstack-build 0.136.3 → 0.136.10
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/CHANGELOG.md +9 -0
- package/dist/{slicedToArray-d71360f4.esm.js → regeneratorValues-3acdc3fe.esm.js} +19 -1
- package/dist/{slicedToArray-12869836.cjs.dev.js → regeneratorValues-637c3146.cjs.prod.js} +19 -0
- package/dist/{slicedToArray-149a2518.cjs.prod.js → regeneratorValues-78fb2365.cjs.dev.js} +19 -0
- package/dist/valbuild-tanstack-build.cjs.dev.js +658 -132
- package/dist/valbuild-tanstack-build.cjs.prod.js +658 -132
- package/dist/valbuild-tanstack-build.esm.js +552 -26
- package/node/dist/valbuild-tanstack-build-node.cjs.dev.js +75 -93
- package/node/dist/valbuild-tanstack-build-node.cjs.prod.js +75 -93
- package/node/dist/valbuild-tanstack-build-node.esm.js +1 -19
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var regeneratorValues = require('../../dist/regeneratorValues-637c3146.cjs.prod.js');
|
|
6
6
|
var rolldown = require('rolldown');
|
|
7
7
|
var node_crypto = require('node:crypto');
|
|
8
8
|
var node_module = require('node:module');
|
|
@@ -30,24 +30,6 @@ function _interopNamespace(e) {
|
|
|
30
30
|
return Object.freeze(n);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function _regeneratorValues(e) {
|
|
34
|
-
if (null != e) {
|
|
35
|
-
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
36
|
-
r = 0;
|
|
37
|
-
if (t) return t.call(e);
|
|
38
|
-
if ("function" == typeof e.next) return e;
|
|
39
|
-
if (!isNaN(e.length)) return {
|
|
40
|
-
next: function () {
|
|
41
|
-
return e && r >= e.length && (e = void 0), {
|
|
42
|
-
value: e && e[r++],
|
|
43
|
-
done: !e
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
49
|
-
}
|
|
50
|
-
|
|
51
33
|
// A CJS-to-ESM bridge for Node builtins, so a CommonJS dependency can be
|
|
52
34
|
// layered at all.
|
|
53
35
|
//
|
|
@@ -161,13 +143,13 @@ function buildShims() {
|
|
|
161
143
|
}
|
|
162
144
|
/** Every shim, hand-written and generated, by builtin name. */
|
|
163
145
|
function _buildShims() {
|
|
164
|
-
_buildShims =
|
|
146
|
+
_buildShims = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee() {
|
|
165
147
|
var all, _iterator, _step, name, real, names, isCrypto, _t;
|
|
166
|
-
return
|
|
148
|
+
return regeneratorValues._regenerator().w(function (_context) {
|
|
167
149
|
while (1) switch (_context.p = _context.n) {
|
|
168
150
|
case 0:
|
|
169
|
-
all =
|
|
170
|
-
_iterator =
|
|
151
|
+
all = regeneratorValues._objectSpread2({}, NODE_SHIMS);
|
|
152
|
+
_iterator = regeneratorValues._createForOfIteratorHelper(REEXPORT);
|
|
171
153
|
_context.p = 1;
|
|
172
154
|
_iterator.s();
|
|
173
155
|
case 2:
|
|
@@ -199,7 +181,7 @@ function _buildShims() {
|
|
|
199
181
|
// function: `globalThis.crypto.subtle` is an object, and calling `.bind` on
|
|
200
182
|
// it is a startup crash of its own.
|
|
201
183
|
isCrypto = name === "crypto";
|
|
202
|
-
all[name] = ["import * as ns from 'node:".concat(name, "'"), "const mod = ns.default ?? ns", isCrypto ? "const web = globalThis.crypto\nconst pick = (key) => {\n const own = mod[key] ?? ns[key]\n if (own !== undefined) return own\n const fromWeb = web?.[key]\n return typeof fromWeb === 'function' ? fromWeb.bind(web) : fromWeb\n}" : "const pick = (key) => mod[key] ?? ns[key]", isCrypto ? "export default new Proxy(mod, { get: (t, p) => t[p] ?? pick(p) })" : "export default mod"].concat(
|
|
184
|
+
all[name] = ["import * as ns from 'node:".concat(name, "'"), "const mod = ns.default ?? ns", isCrypto ? "const web = globalThis.crypto\nconst pick = (key) => {\n const own = mod[key] ?? ns[key]\n if (own !== undefined) return own\n const fromWeb = web?.[key]\n return typeof fromWeb === 'function' ? fromWeb.bind(web) : fromWeb\n}" : "const pick = (key) => mod[key] ?? ns[key]", isCrypto ? "export default new Proxy(mod, { get: (t, p) => t[p] ?? pick(p) })" : "export default mod"].concat(regeneratorValues._toConsumableArray(names.map(function (exported) {
|
|
203
185
|
return "export const ".concat(exported, " = pick(").concat(JSON.stringify(exported), ")");
|
|
204
186
|
}))).join("\n") + "\n";
|
|
205
187
|
case 4:
|
|
@@ -247,9 +229,9 @@ function nodeShims(_x) {
|
|
|
247
229
|
return _nodeShims.apply(this, arguments);
|
|
248
230
|
}
|
|
249
231
|
function _nodeShims() {
|
|
250
|
-
_nodeShims =
|
|
232
|
+
_nodeShims = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee2(enabled) {
|
|
251
233
|
var sources;
|
|
252
|
-
return
|
|
234
|
+
return regeneratorValues._regenerator().w(function (_context2) {
|
|
253
235
|
while (1) switch (_context2.n) {
|
|
254
236
|
case 0:
|
|
255
237
|
_context2.n = 1;
|
|
@@ -412,11 +394,11 @@ var cssRev = function cssRev(css) {
|
|
|
412
394
|
var entries = Object.entries(css).sort();
|
|
413
395
|
if (entries.length === 0) return "";
|
|
414
396
|
var digest = node_crypto.createHash("sha256");
|
|
415
|
-
var _iterator =
|
|
397
|
+
var _iterator = regeneratorValues._createForOfIteratorHelper(entries),
|
|
416
398
|
_step;
|
|
417
399
|
try {
|
|
418
400
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
419
|
-
var _step$value =
|
|
401
|
+
var _step$value = regeneratorValues._slicedToArray(_step.value, 2),
|
|
420
402
|
specifier = _step$value[0],
|
|
421
403
|
text = _step$value[1];
|
|
422
404
|
digest.update(specifier);
|
|
@@ -467,9 +449,9 @@ function buildTargets(_x, _x2, _x3, _x4, _x5) {
|
|
|
467
449
|
* saying so instead of failing the layer build with a bare specifier.
|
|
468
450
|
*/
|
|
469
451
|
function _buildTargets() {
|
|
470
|
-
_buildTargets =
|
|
452
|
+
_buildTargets = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee2(names, input, outRoot, quiet, platform) {
|
|
471
453
|
var out, digest, _iterator6, _step6, target, forTarget, dir, shims, _iterator7, _step7, file, code, _t, _t2, _t3;
|
|
472
|
-
return
|
|
454
|
+
return regeneratorValues._regenerator().w(function (_context2) {
|
|
473
455
|
while (1) switch (_context2.p = _context2.n) {
|
|
474
456
|
case 0:
|
|
475
457
|
out = {
|
|
@@ -477,7 +459,7 @@ function _buildTargets() {
|
|
|
477
459
|
browser: {}
|
|
478
460
|
};
|
|
479
461
|
digest = node_crypto.createHash("sha256");
|
|
480
|
-
_iterator6 =
|
|
462
|
+
_iterator6 = regeneratorValues._createForOfIteratorHelper(targetsFor(platform));
|
|
481
463
|
_context2.p = 1;
|
|
482
464
|
_iterator6.s();
|
|
483
465
|
case 2:
|
|
@@ -533,7 +515,7 @@ function _buildTargets() {
|
|
|
533
515
|
// runtime.
|
|
534
516
|
shims],
|
|
535
517
|
transform: {
|
|
536
|
-
define:
|
|
518
|
+
define: regeneratorValues._objectSpread2({
|
|
537
519
|
"process.env.NODE_ENV": JSON.stringify("production")
|
|
538
520
|
}, target.name === "worker" ? {
|
|
539
521
|
__filename: JSON.stringify("/worker.js"),
|
|
@@ -567,7 +549,7 @@ function _buildTargets() {
|
|
|
567
549
|
"process.env.VAL_ENV": JSON.stringify("app")
|
|
568
550
|
} : {})
|
|
569
551
|
},
|
|
570
|
-
resolve:
|
|
552
|
+
resolve: regeneratorValues._objectSpread2({
|
|
571
553
|
conditionNames: target.conditions
|
|
572
554
|
}, "mainFields" in target ? {
|
|
573
555
|
mainFields: target.mainFields
|
|
@@ -611,7 +593,7 @@ function _buildTargets() {
|
|
|
611
593
|
}
|
|
612
594
|
});
|
|
613
595
|
case 6:
|
|
614
|
-
_t =
|
|
596
|
+
_t = regeneratorValues._createForOfIteratorHelper;
|
|
615
597
|
_context2.n = 7;
|
|
616
598
|
return promises.readdir(dir);
|
|
617
599
|
case 7:
|
|
@@ -665,7 +647,7 @@ function _buildTargets() {
|
|
|
665
647
|
_iterator6.f();
|
|
666
648
|
return _context2.f(19);
|
|
667
649
|
case 20:
|
|
668
|
-
return _context2.a(2,
|
|
650
|
+
return _context2.a(2, regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, out), {}, {
|
|
669
651
|
rev: digest.digest("hex").slice(0, 16)
|
|
670
652
|
}));
|
|
671
653
|
}
|
|
@@ -870,8 +852,8 @@ var nameOf = function nameOf(node) {
|
|
|
870
852
|
node.value : null;
|
|
871
853
|
};
|
|
872
854
|
var parseModule = /*#__PURE__*/function () {
|
|
873
|
-
var _ref =
|
|
874
|
-
return
|
|
855
|
+
var _ref = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(code, file) {
|
|
856
|
+
return regeneratorValues._regenerator().w(function (_context) {
|
|
875
857
|
while (1) switch (_context.n) {
|
|
876
858
|
case 0:
|
|
877
859
|
_context.n = 1;
|
|
@@ -893,9 +875,9 @@ function auditableImports(_x8, _x9) {
|
|
|
893
875
|
return _auditableImports.apply(this, arguments);
|
|
894
876
|
}
|
|
895
877
|
function _auditableImports() {
|
|
896
|
-
_auditableImports =
|
|
878
|
+
_auditableImports = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee3(code, file) {
|
|
897
879
|
var ast, imports, _iterator8, _step8, _statement$source, _statement$specifiers, statement, source, names, _iterator9, _step9, specifier, name, _name, _t4;
|
|
898
|
-
return
|
|
880
|
+
return regeneratorValues._regenerator().w(function (_context3) {
|
|
899
881
|
while (1) switch (_context3.p = _context3.n) {
|
|
900
882
|
case 0:
|
|
901
883
|
_context3.n = 1;
|
|
@@ -903,7 +885,7 @@ function _auditableImports() {
|
|
|
903
885
|
case 1:
|
|
904
886
|
ast = _context3.v;
|
|
905
887
|
imports = [];
|
|
906
|
-
_iterator8 =
|
|
888
|
+
_iterator8 = regeneratorValues._createForOfIteratorHelper(ast.body);
|
|
907
889
|
_context3.p = 2;
|
|
908
890
|
_iterator8.s();
|
|
909
891
|
case 3:
|
|
@@ -926,7 +908,7 @@ function _auditableImports() {
|
|
|
926
908
|
return _context3.a(3, 6);
|
|
927
909
|
case 5:
|
|
928
910
|
names = [];
|
|
929
|
-
_iterator9 =
|
|
911
|
+
_iterator9 = regeneratorValues._createForOfIteratorHelper((_statement$specifiers = statement.specifiers) !== null && _statement$specifiers !== void 0 ? _statement$specifiers : []);
|
|
930
912
|
try {
|
|
931
913
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
932
914
|
specifier = _step9.value;
|
|
@@ -984,8 +966,8 @@ function auditableSpecifiers(_x0, _x1) {
|
|
|
984
966
|
* would fail every import into that chunk.
|
|
985
967
|
*/
|
|
986
968
|
function _auditableSpecifiers() {
|
|
987
|
-
_auditableSpecifiers =
|
|
988
|
-
return
|
|
969
|
+
_auditableSpecifiers = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee4(code, file) {
|
|
970
|
+
return regeneratorValues._regenerator().w(function (_context4) {
|
|
989
971
|
while (1) switch (_context4.n) {
|
|
990
972
|
case 0:
|
|
991
973
|
_context4.n = 1;
|
|
@@ -1003,9 +985,9 @@ function baseChunkExports(_x10, _x11, _x12) {
|
|
|
1003
985
|
return _baseChunkExports.apply(this, arguments);
|
|
1004
986
|
}
|
|
1005
987
|
function _baseChunkExports() {
|
|
1006
|
-
_baseChunkExports =
|
|
988
|
+
_baseChunkExports = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee5(target, specifier, platform) {
|
|
1007
989
|
var dist, file, code, ast, exported, _iterator0, _step0, _declaration$id, _statement$specifiers2, _declaration$declarat, statement, _iterator1, _step1, specifierNode, name, declaration, _iterator10, _step10, _declarator$id, declarator, _t6;
|
|
1008
|
-
return
|
|
990
|
+
return regeneratorValues._regenerator().w(function (_context5) {
|
|
1009
991
|
while (1) switch (_context5.p = _context5.n) {
|
|
1010
992
|
case 0:
|
|
1011
993
|
dist = platform.baseLayerDir;
|
|
@@ -1033,7 +1015,7 @@ function _baseChunkExports() {
|
|
|
1033
1015
|
case 6:
|
|
1034
1016
|
ast = _context5.v;
|
|
1035
1017
|
exported = new Set();
|
|
1036
|
-
_iterator0 =
|
|
1018
|
+
_iterator0 = regeneratorValues._createForOfIteratorHelper(ast.body);
|
|
1037
1019
|
_context5.p = 7;
|
|
1038
1020
|
_iterator0.s();
|
|
1039
1021
|
case 8:
|
|
@@ -1061,7 +1043,7 @@ function _baseChunkExports() {
|
|
|
1061
1043
|
}
|
|
1062
1044
|
return _context5.a(3, 12);
|
|
1063
1045
|
case 11:
|
|
1064
|
-
_iterator1 =
|
|
1046
|
+
_iterator1 = regeneratorValues._createForOfIteratorHelper((_statement$specifiers2 = statement.specifiers) !== null && _statement$specifiers2 !== void 0 ? _statement$specifiers2 : []);
|
|
1065
1047
|
try {
|
|
1066
1048
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
1067
1049
|
specifierNode = _step1.value;
|
|
@@ -1077,7 +1059,7 @@ function _baseChunkExports() {
|
|
|
1077
1059
|
}
|
|
1078
1060
|
declaration = statement.declaration;
|
|
1079
1061
|
if (declaration !== null && declaration !== void 0 && (_declaration$id = declaration.id) !== null && _declaration$id !== void 0 && _declaration$id.name) exported.add(declaration.id.name);
|
|
1080
|
-
_iterator10 =
|
|
1062
|
+
_iterator10 = regeneratorValues._createForOfIteratorHelper((_declaration$declarat = declaration === null || declaration === void 0 ? void 0 : declaration.declarations) !== null && _declaration$declarat !== void 0 ? _declaration$declarat : []);
|
|
1081
1063
|
try {
|
|
1082
1064
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
1083
1065
|
declarator = _step10.value;
|
|
@@ -1141,12 +1123,12 @@ function auditImports(_x13, _x14, _x15, _x16) {
|
|
|
1141
1123
|
* endpoint answers 500 forever.
|
|
1142
1124
|
*/
|
|
1143
1125
|
function _auditImports() {
|
|
1144
|
-
_auditImports =
|
|
1126
|
+
_auditImports = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee6(target, file, code, platform) {
|
|
1145
1127
|
var _iterator11, _step11, _step11$value, specifier, names, intoBase, intoSelf, builtin, _t7, _t8;
|
|
1146
|
-
return
|
|
1128
|
+
return regeneratorValues._regenerator().w(function (_context6) {
|
|
1147
1129
|
while (1) switch (_context6.p = _context6.n) {
|
|
1148
1130
|
case 0:
|
|
1149
|
-
_t7 =
|
|
1131
|
+
_t7 = regeneratorValues._createForOfIteratorHelper;
|
|
1150
1132
|
_context6.n = 1;
|
|
1151
1133
|
return auditableImports(code, file);
|
|
1152
1134
|
case 1:
|
|
@@ -1201,9 +1183,9 @@ function auditBaseExports(_x17, _x18, _x19, _x20, _x21) {
|
|
|
1201
1183
|
}
|
|
1202
1184
|
/** Bare specifiers that point at a stylesheet rather than a module. */
|
|
1203
1185
|
function _auditBaseExports() {
|
|
1204
|
-
_auditBaseExports =
|
|
1186
|
+
_auditBaseExports = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee7(target, file, specifier, names, platform) {
|
|
1205
1187
|
var exported, missing;
|
|
1206
|
-
return
|
|
1188
|
+
return regeneratorValues._regenerator().w(function (_context7) {
|
|
1207
1189
|
while (1) switch (_context7.n) {
|
|
1208
1190
|
case 0:
|
|
1209
1191
|
_context7.n = 1;
|
|
@@ -1238,11 +1220,11 @@ function _auditBaseExports() {
|
|
|
1238
1220
|
function cssSpecifiersOf(files) {
|
|
1239
1221
|
var found = new Set();
|
|
1240
1222
|
for (var _i = 0, _Object$entries = Object.entries(files); _i < _Object$entries.length; _i++) {
|
|
1241
|
-
var _Object$entries$_i =
|
|
1223
|
+
var _Object$entries$_i = regeneratorValues._slicedToArray(_Object$entries[_i], 2),
|
|
1242
1224
|
path = _Object$entries$_i[0],
|
|
1243
1225
|
code = _Object$entries$_i[1];
|
|
1244
1226
|
if (!/\.(tsx?|jsx?|mjs|cjs)$/.test(path)) continue;
|
|
1245
|
-
var _iterator2 =
|
|
1227
|
+
var _iterator2 = regeneratorValues._createForOfIteratorHelper(code.matchAll(/(?:from|import)\s*["']([^"'.][^"']*\.css)["']/g)),
|
|
1246
1228
|
_step2;
|
|
1247
1229
|
try {
|
|
1248
1230
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -1255,7 +1237,7 @@ function cssSpecifiersOf(files) {
|
|
|
1255
1237
|
_iterator2.f();
|
|
1256
1238
|
}
|
|
1257
1239
|
}
|
|
1258
|
-
return
|
|
1240
|
+
return regeneratorValues._toConsumableArray(found);
|
|
1259
1241
|
}
|
|
1260
1242
|
|
|
1261
1243
|
/** The package a bare specifier belongs to. `@scope/pkg/sub` -> `@scope/pkg`. */
|
|
@@ -1273,11 +1255,11 @@ function importedSpecifiers(files) {
|
|
|
1273
1255
|
// actually decides, and it reports anything this missed.
|
|
1274
1256
|
var IMPORT = /(?:from|import)\s*["']([^"'.][^"']*)["']|import\s*\(\s*["']([^"'.][^"']*)["']/g;
|
|
1275
1257
|
for (var _i2 = 0, _Object$entries2 = Object.entries(files); _i2 < _Object$entries2.length; _i2++) {
|
|
1276
|
-
var _Object$entries2$_i =
|
|
1258
|
+
var _Object$entries2$_i = regeneratorValues._slicedToArray(_Object$entries2[_i2], 2),
|
|
1277
1259
|
path = _Object$entries2$_i[0],
|
|
1278
1260
|
code = _Object$entries2$_i[1];
|
|
1279
1261
|
if (!/\.(tsx?|jsx?|mjs|cjs)$/.test(path)) continue;
|
|
1280
|
-
var _iterator3 =
|
|
1262
|
+
var _iterator3 = regeneratorValues._createForOfIteratorHelper(code.matchAll(IMPORT)),
|
|
1281
1263
|
_step3;
|
|
1282
1264
|
try {
|
|
1283
1265
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -1321,7 +1303,7 @@ function layerDepsOf(manifest) {
|
|
|
1321
1303
|
// collectDependencyCss; building them as code entries fails, because a
|
|
1322
1304
|
// package like that may have no JS entry point at all.
|
|
1323
1305
|
var cssOnly = new Set();
|
|
1324
|
-
var _iterator4 =
|
|
1306
|
+
var _iterator4 = regeneratorValues._createForOfIteratorHelper(importedSpecifiers(files)),
|
|
1325
1307
|
_step4;
|
|
1326
1308
|
try {
|
|
1327
1309
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -1342,13 +1324,13 @@ function layerDepsOf(manifest) {
|
|
|
1342
1324
|
} finally {
|
|
1343
1325
|
_iterator4.f();
|
|
1344
1326
|
}
|
|
1345
|
-
var _iterator5 =
|
|
1327
|
+
var _iterator5 = regeneratorValues._createForOfIteratorHelper(declared),
|
|
1346
1328
|
_step5;
|
|
1347
1329
|
try {
|
|
1348
1330
|
var _loop = function _loop() {
|
|
1349
1331
|
var name = _step5.value;
|
|
1350
1332
|
if (cssOnly.has(name)) return 1; // continue
|
|
1351
|
-
if (!
|
|
1333
|
+
if (!regeneratorValues._toConsumableArray(specifiers).some(function (specifier) {
|
|
1352
1334
|
return packageOf(specifier) === name;
|
|
1353
1335
|
})) specifiers.add(name);
|
|
1354
1336
|
};
|
|
@@ -1360,7 +1342,7 @@ function layerDepsOf(manifest) {
|
|
|
1360
1342
|
} finally {
|
|
1361
1343
|
_iterator5.f();
|
|
1362
1344
|
}
|
|
1363
|
-
return
|
|
1345
|
+
return regeneratorValues._toConsumableArray(specifiers).sort();
|
|
1364
1346
|
}
|
|
1365
1347
|
|
|
1366
1348
|
/**
|
|
@@ -1393,9 +1375,9 @@ function collectDependencyCss(_x22, _x23) {
|
|
|
1393
1375
|
return _collectDependencyCss.apply(this, arguments);
|
|
1394
1376
|
}
|
|
1395
1377
|
function _collectDependencyCss() {
|
|
1396
|
-
_collectDependencyCss =
|
|
1378
|
+
_collectDependencyCss = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee8(dir, specifiers) {
|
|
1397
1379
|
var require, css, _iterator12, _step12, specifier, _t0;
|
|
1398
|
-
return
|
|
1380
|
+
return regeneratorValues._regenerator().w(function (_context8) {
|
|
1399
1381
|
while (1) switch (_context8.p = _context8.n) {
|
|
1400
1382
|
case 0:
|
|
1401
1383
|
if (!(specifiers.length === 0)) {
|
|
@@ -1406,7 +1388,7 @@ function _collectDependencyCss() {
|
|
|
1406
1388
|
case 1:
|
|
1407
1389
|
require = node_module.createRequire(node_path.join(node_path.resolve(dir), "package.json"));
|
|
1408
1390
|
css = {};
|
|
1409
|
-
_iterator12 =
|
|
1391
|
+
_iterator12 = regeneratorValues._createForOfIteratorHelper(specifiers);
|
|
1410
1392
|
_context8.p = 2;
|
|
1411
1393
|
_iterator12.s();
|
|
1412
1394
|
case 3:
|
|
@@ -1450,9 +1432,9 @@ function buildVendorLayer(_x24, _x25, _x26, _x27) {
|
|
|
1450
1432
|
return _buildVendorLayer.apply(this, arguments);
|
|
1451
1433
|
}
|
|
1452
1434
|
function _buildVendorLayer() {
|
|
1453
|
-
_buildVendorLayer =
|
|
1435
|
+
_buildVendorLayer = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee9(dir, deps, css, platform) {
|
|
1454
1436
|
var modules, _iterator13, _step13, _loop2, stubs, input, _i3, _Object$entries3, _Object$entries3$_i, specifier, name, file, skipped, workerOnly, workerOnlyReasons, specifierOf, usable, built, _i4, _Object$values, _name2, worked, reasons, _iterator14, _step14, target, _message, _reasons$, _i5, _Object$entries4, _Object$entries4$_i, _specifier, _name3, _t1, _t10, _t11;
|
|
1455
|
-
return
|
|
1437
|
+
return regeneratorValues._regenerator().w(function (_context0) {
|
|
1456
1438
|
while (1) switch (_context0.p = _context0.n) {
|
|
1457
1439
|
case 0:
|
|
1458
1440
|
if (!(deps.length === 0 && Object.keys(css).length === 0)) {
|
|
@@ -1477,17 +1459,17 @@ function _buildVendorLayer() {
|
|
|
1477
1459
|
});
|
|
1478
1460
|
case 2:
|
|
1479
1461
|
modules = {};
|
|
1480
|
-
_iterator13 =
|
|
1462
|
+
_iterator13 = regeneratorValues._createForOfIteratorHelper(deps);
|
|
1481
1463
|
_context0.p = 3;
|
|
1482
|
-
_loop2 = /*#__PURE__*/
|
|
1464
|
+
_loop2 = /*#__PURE__*/regeneratorValues._regenerator().m(function _loop2() {
|
|
1483
1465
|
var specifier, name, clash;
|
|
1484
|
-
return
|
|
1466
|
+
return regeneratorValues._regenerator().w(function (_context9) {
|
|
1485
1467
|
while (1) switch (_context9.n) {
|
|
1486
1468
|
case 0:
|
|
1487
1469
|
specifier = _step13.value;
|
|
1488
1470
|
name = chunkNameFor(specifier);
|
|
1489
1471
|
clash = Object.entries(modules).find(function (_ref4) {
|
|
1490
|
-
var _ref5 =
|
|
1472
|
+
var _ref5 = regeneratorValues._slicedToArray(_ref4, 2),
|
|
1491
1473
|
existing = _ref5[1];
|
|
1492
1474
|
return existing === name;
|
|
1493
1475
|
});
|
|
@@ -1509,7 +1491,7 @@ function _buildVendorLayer() {
|
|
|
1509
1491
|
_context0.n = 6;
|
|
1510
1492
|
break;
|
|
1511
1493
|
}
|
|
1512
|
-
return _context0.d(_regeneratorValues(_loop2()), 5);
|
|
1494
|
+
return _context0.d(regeneratorValues._regeneratorValues(_loop2()), 5);
|
|
1513
1495
|
case 5:
|
|
1514
1496
|
_context0.n = 4;
|
|
1515
1497
|
break;
|
|
@@ -1559,7 +1541,7 @@ function _buildVendorLayer() {
|
|
|
1559
1541
|
_context0.n = 15;
|
|
1560
1542
|
break;
|
|
1561
1543
|
}
|
|
1562
|
-
_Object$entries3$_i =
|
|
1544
|
+
_Object$entries3$_i = regeneratorValues._slicedToArray(_Object$entries3[_i3], 2), specifier = _Object$entries3$_i[0], name = _Object$entries3$_i[1];
|
|
1563
1545
|
file = node_path.join(stubs, "".concat(name, ".js"));
|
|
1564
1546
|
_context0.n = 13;
|
|
1565
1547
|
return promises.writeFile(file, stubSource(specifier));
|
|
@@ -1581,7 +1563,7 @@ function _buildVendorLayer() {
|
|
|
1581
1563
|
workerOnlyReasons = {};
|
|
1582
1564
|
specifierOf = function specifierOf(chunk) {
|
|
1583
1565
|
return Object.entries(modules).find(function (_ref2) {
|
|
1584
|
-
var _ref3 =
|
|
1566
|
+
var _ref3 = regeneratorValues._slicedToArray(_ref2, 2),
|
|
1585
1567
|
name = _ref3[1];
|
|
1586
1568
|
return name === chunk;
|
|
1587
1569
|
})[0];
|
|
@@ -1615,7 +1597,7 @@ function _buildVendorLayer() {
|
|
|
1615
1597
|
// the builder, naming it.
|
|
1616
1598
|
worked = {};
|
|
1617
1599
|
reasons = [];
|
|
1618
|
-
_iterator14 =
|
|
1600
|
+
_iterator14 = regeneratorValues._createForOfIteratorHelper(targetsFor(platform));
|
|
1619
1601
|
_context0.p = 18;
|
|
1620
1602
|
_iterator14.s();
|
|
1621
1603
|
case 19:
|
|
@@ -1676,7 +1658,7 @@ function _buildVendorLayer() {
|
|
|
1676
1658
|
break;
|
|
1677
1659
|
case 29:
|
|
1678
1660
|
for (_i5 = 0, _Object$entries4 = Object.entries(modules); _i5 < _Object$entries4.length; _i5++) {
|
|
1679
|
-
_Object$entries4$_i =
|
|
1661
|
+
_Object$entries4$_i = regeneratorValues._slicedToArray(_Object$entries4[_i5], 2), _specifier = _Object$entries4$_i[0], _name3 = _Object$entries4$_i[1];
|
|
1680
1662
|
if (!usable.includes(_name3)) delete modules[_specifier];
|
|
1681
1663
|
}
|
|
1682
1664
|
// Everything failed: a layer with no entries is the same as no layer, and
|
|
@@ -1767,10 +1749,10 @@ function cssModuleLoader(dir) {
|
|
|
1767
1749
|
// rejects a relative path.
|
|
1768
1750
|
var require = node_module.createRequire(node_path.join(node_path.resolve(dir), "package.json"));
|
|
1769
1751
|
return /*#__PURE__*/function () {
|
|
1770
|
-
var _ref =
|
|
1752
|
+
var _ref = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(id, base, hint) {
|
|
1771
1753
|
var _loaded$default;
|
|
1772
1754
|
var resolved, loaded;
|
|
1773
|
-
return
|
|
1755
|
+
return regeneratorValues._regenerator().w(function (_context) {
|
|
1774
1756
|
while (1) switch (_context.p = _context.n) {
|
|
1775
1757
|
case 0:
|
|
1776
1758
|
_context.p = 0;
|
|
@@ -1852,9 +1834,9 @@ function loadCompilers(_x) {
|
|
|
1852
1834
|
* one this was written for.
|
|
1853
1835
|
*/
|
|
1854
1836
|
function _loadCompilers() {
|
|
1855
|
-
_loadCompilers =
|
|
1837
|
+
_loadCompilers = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(from) {
|
|
1856
1838
|
var core, require, compilers, constants, _message, _t2;
|
|
1857
|
-
return
|
|
1839
|
+
return regeneratorValues._regenerator().w(function (_context) {
|
|
1858
1840
|
while (1) switch (_context.p = _context.n) {
|
|
1859
1841
|
case 0:
|
|
1860
1842
|
_context.p = 0;
|
|
@@ -1878,7 +1860,7 @@ function _loadCompilers() {
|
|
|
1878
1860
|
return dynamicImport(node_url.pathToFileURL(node_path.join(core, "constants.js")).href);
|
|
1879
1861
|
case 4:
|
|
1880
1862
|
constants = _context.v;
|
|
1881
|
-
return _context.a(2,
|
|
1863
|
+
return _context.a(2, regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, compilers), {}, {
|
|
1882
1864
|
groupings: constants.defaultCodeSplitGroupings
|
|
1883
1865
|
}));
|
|
1884
1866
|
case 5:
|
|
@@ -1898,9 +1880,9 @@ function routeSplitter(_x2) {
|
|
|
1898
1880
|
return _routeSplitter.apply(this, arguments);
|
|
1899
1881
|
}
|
|
1900
1882
|
function _routeSplitter() {
|
|
1901
|
-
_routeSplitter =
|
|
1883
|
+
_routeSplitter = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee2(from) {
|
|
1902
1884
|
var compilers, shared;
|
|
1903
|
-
return
|
|
1885
|
+
return regeneratorValues._regenerator().w(function (_context2) {
|
|
1904
1886
|
while (1) switch (_context2.n) {
|
|
1905
1887
|
case 0:
|
|
1906
1888
|
_context2.n = 1;
|
|
@@ -1930,7 +1912,7 @@ function _routeSplitter() {
|
|
|
1930
1912
|
return compilers.compileCodeSplitReferenceRoute(shared(id, code));
|
|
1931
1913
|
},
|
|
1932
1914
|
virtual: function virtual(id, code, targets) {
|
|
1933
|
-
return compilers.compileCodeSplitVirtualRoute(
|
|
1915
|
+
return compilers.compileCodeSplitVirtualRoute(regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, shared(id, code)), {}, {
|
|
1934
1916
|
splitTargets: targets
|
|
1935
1917
|
}));
|
|
1936
1918
|
}
|
|
@@ -1959,9 +1941,9 @@ function projectRouterConfig(_x) {
|
|
|
1959
1941
|
}
|
|
1960
1942
|
/** A project is file-based if it has a routes directory. */
|
|
1961
1943
|
function _projectRouterConfig() {
|
|
1962
|
-
_projectRouterConfig =
|
|
1944
|
+
_projectRouterConfig = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(dir) {
|
|
1963
1945
|
var _i, _arr, name, parsed, kept, _iterator, _step, key, _t;
|
|
1964
|
-
return
|
|
1946
|
+
return regeneratorValues._regenerator().w(function (_context) {
|
|
1965
1947
|
while (1) switch (_context.p = _context.n) {
|
|
1966
1948
|
case 0:
|
|
1967
1949
|
_i = 0, _arr = ["tsr.config.json"];
|
|
@@ -1978,7 +1960,7 @@ function _projectRouterConfig() {
|
|
|
1978
1960
|
case 3:
|
|
1979
1961
|
parsed = _t.parse.call(_t, _context.v);
|
|
1980
1962
|
kept = {};
|
|
1981
|
-
_iterator =
|
|
1963
|
+
_iterator = regeneratorValues._createForOfIteratorHelper(HONOURED);
|
|
1982
1964
|
try {
|
|
1983
1965
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1984
1966
|
key = _step.value;
|
|
@@ -2014,8 +1996,8 @@ function isFileBased(_x2) {
|
|
|
2014
1996
|
* same one; re-exported here because this is where it has always been read.
|
|
2015
1997
|
*/
|
|
2016
1998
|
function _isFileBased() {
|
|
2017
|
-
_isFileBased =
|
|
2018
|
-
return
|
|
1999
|
+
_isFileBased = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee2(dir) {
|
|
2000
|
+
return regeneratorValues._regenerator().w(function (_context2) {
|
|
2019
2001
|
while (1) switch (_context2.n) {
|
|
2020
2002
|
case 0:
|
|
2021
2003
|
return _context2.a(2, promises.stat(node_path.join(dir, "src", "routes")).then(function (entry) {
|
|
@@ -2050,10 +2032,10 @@ function generateRouteTree(_x3, _x4) {
|
|
|
2050
2032
|
return _generateRouteTree.apply(this, arguments);
|
|
2051
2033
|
}
|
|
2052
2034
|
function _generateRouteTree() {
|
|
2053
|
-
_generateRouteTree =
|
|
2035
|
+
_generateRouteTree = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee3(dir, files) {
|
|
2054
2036
|
var _files$srcAppTsx;
|
|
2055
2037
|
var _yield$import, Generator, projectConfig, root, generator, treePath, before, tanstackDir, hadTanstackDir, tree;
|
|
2056
|
-
return
|
|
2038
|
+
return regeneratorValues._regenerator().w(function (_context3) {
|
|
2057
2039
|
while (1) switch (_context3.p = _context3.n) {
|
|
2058
2040
|
case 0:
|
|
2059
2041
|
_context3.n = 1;
|
|
@@ -2080,7 +2062,7 @@ function _generateRouteTree() {
|
|
|
2080
2062
|
root = node_path.resolve(dir);
|
|
2081
2063
|
generator = new Generator({
|
|
2082
2064
|
root: root,
|
|
2083
|
-
config:
|
|
2065
|
+
config: regeneratorValues._objectSpread2({
|
|
2084
2066
|
routesDirectory: node_path.join(root, "src", "routes"),
|
|
2085
2067
|
generatedRouteTree: node_path.join(root, "src", "routeTree.gen.ts"),
|
|
2086
2068
|
routeFileIgnorePrefix: "-",
|
|
@@ -2170,7 +2152,7 @@ function _generateRouteTree() {
|
|
|
2170
2152
|
case 12:
|
|
2171
2153
|
return _context3.f(8);
|
|
2172
2154
|
case 13:
|
|
2173
|
-
return _context3.a(2,
|
|
2155
|
+
return _context3.a(2, regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, files), {}, {
|
|
2174
2156
|
"src/routeTree.gen.ts": tree,
|
|
2175
2157
|
// Only when the project has not written its own.
|
|
2176
2158
|
"src/app.tsx": (_files$srcAppTsx = files["src/app.tsx"]) !== null && _files$srcAppTsx !== void 0 ? _files$srcAppTsx : projectPaths.ENTRY_SHIM
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, b as _regenerator, c as _toConsumableArray,
|
|
1
|
+
import { a as _asyncToGenerator, b as _regenerator, c as _toConsumableArray, f as _objectSpread2, _ as _createForOfIteratorHelper, d as _slicedToArray, e as _regeneratorValues } from '../../dist/regeneratorValues-3acdc3fe.esm.js';
|
|
2
2
|
import { build } from 'rolldown';
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
@@ -8,24 +8,6 @@ import { parseAstAsync } from 'rolldown/parseAst';
|
|
|
8
8
|
import { pathToFileURL } from 'node:url';
|
|
9
9
|
import { a as ENTRY_SHIM } from '../../dist/projectPaths-5e4defea.esm.js';
|
|
10
10
|
|
|
11
|
-
function _regeneratorValues(e) {
|
|
12
|
-
if (null != e) {
|
|
13
|
-
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
14
|
-
r = 0;
|
|
15
|
-
if (t) return t.call(e);
|
|
16
|
-
if ("function" == typeof e.next) return e;
|
|
17
|
-
if (!isNaN(e.length)) return {
|
|
18
|
-
next: function () {
|
|
19
|
-
return e && r >= e.length && (e = void 0), {
|
|
20
|
-
value: e && e[r++],
|
|
21
|
-
done: !e
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
27
|
-
}
|
|
28
|
-
|
|
29
11
|
// A CJS-to-ESM bridge for Node builtins, so a CommonJS dependency can be
|
|
30
12
|
// layered at all.
|
|
31
13
|
//
|
package/package.json
CHANGED