@rsbuild/core 2.0.0-beta.7 → 2.0.0-beta.8
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/bin/rsbuild.js +13 -0
- package/compiled/connect-next/index.d.ts +56 -0
- package/compiled/{connect → connect-next}/license +1 -0
- package/compiled/connect-next/package.json +1 -0
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/jiti/dist/babel.cjs +60 -60
- package/compiled/jiti/dist/jiti.cjs +2 -2
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +17 -1
- package/compiled/rslog/package.json +1 -1
- package/dist/{131.js → 958.js} +254 -357
- package/dist/chokidar.js +59 -57
- package/dist/client/hmr.js +1 -1
- package/dist/client/overlay.js +1 -1
- package/dist/connect-next.js +268 -0
- package/dist/{connect.js.LICENSE.txt → connect-next.js.LICENSE.txt} +3 -13
- package/dist/cors.js +2 -2
- package/dist/http-proxy-middleware.js +57 -552
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +23 -8
- package/dist/manifest-plugin.js +18 -18
- package/dist/memfs.js +178 -717
- package/dist/{710.js → mrmime.js} +2 -1
- package/dist/open.js +35 -32
- package/dist/range-parser.js +2 -2
- package/dist/remapping.js +2 -2
- package/dist/rslib-runtime.js +3 -3
- package/dist/sirv.js +14 -14
- package/dist/src.js +510 -0
- package/dist/tinyglobby.js +25 -25
- package/dist/transformLoader.mjs +38 -1
- package/dist/transformRawLoader.mjs +1 -1
- package/dist/ws.js +1541 -0
- package/dist-types/helpers/index.d.ts +1 -1
- package/dist-types/helpers/vendors.d.ts +0 -1
- package/dist-types/server/runner/asModule.d.ts +1 -1
- package/dist-types/server/socketServer.d.ts +1 -1
- package/dist-types/types/thirdParty.d.ts +1 -1
- package/package.json +7 -8
- package/compiled/connect/index.d.ts +0 -90
- package/compiled/connect/package.json +0 -1
- package/compiled/ws/index.d.ts +0 -437
- package/compiled/ws/index.js +0 -3166
- package/compiled/ws/license +0 -20
- package/compiled/ws/package.json +0 -1
- package/dist/397.js +0 -11
- package/dist/7.js +0 -1
- package/dist/712.js +0 -15
- package/dist/743.js +0 -7
- package/dist/88.js +0 -40
- package/dist/connect.js +0 -574
- package/dist-types/helpers/color.d.ts +0 -4
- /package/dist/{131.js.LICENSE.txt → 958.js.LICENSE.txt} +0 -0
- /package/dist/client/{59.js → 797.js} +0 -0
- /package/dist/{31.js → trace-mapping.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
35: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(600);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
}
|
|
312
312
|
module.exports = { CachedChildCompilation };
|
|
313
313
|
},
|
|
314
|
-
|
|
314
|
+
600: (module) => {
|
|
315
315
|
"use strict";
|
|
316
316
|
class HtmlWebpackChildCompiler {
|
|
317
317
|
constructor(templates) {
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
}
|
|
481
481
|
module.exports = { HtmlWebpackChildCompiler };
|
|
482
482
|
},
|
|
483
|
-
|
|
483
|
+
376: (module) => {
|
|
484
484
|
"use strict";
|
|
485
485
|
module.exports = {};
|
|
486
486
|
module.exports.none = (chunks) => chunks;
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
};
|
|
500
500
|
module.exports.auto = module.exports.none;
|
|
501
501
|
},
|
|
502
|
-
|
|
502
|
+
215: (module) => {
|
|
503
503
|
"use strict";
|
|
504
504
|
module.exports = function (err) {
|
|
505
505
|
return {
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
};
|
|
524
524
|
};
|
|
525
525
|
},
|
|
526
|
-
|
|
526
|
+
662: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
527
527
|
"use strict";
|
|
528
528
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(159);
|
|
529
529
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
}
|
|
550
550
|
module.exports = { getHtmlRspackPluginHooks };
|
|
551
551
|
},
|
|
552
|
-
|
|
552
|
+
731: (module) => {
|
|
553
553
|
const voidTags = [
|
|
554
554
|
"area",
|
|
555
555
|
"base",
|
|
@@ -617,19 +617,19 @@
|
|
|
617
617
|
htmlTagObjectToString,
|
|
618
618
|
};
|
|
619
619
|
},
|
|
620
|
-
|
|
620
|
+
922: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
621
621
|
"use strict";
|
|
622
622
|
const promisify = __nccwpck_require__(23).promisify;
|
|
623
623
|
const vm = __nccwpck_require__(154);
|
|
624
624
|
const fs = __nccwpck_require__(896);
|
|
625
625
|
const path = __nccwpck_require__(928);
|
|
626
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
626
|
+
const { CachedChildCompilation } = __nccwpck_require__(35);
|
|
627
627
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
628
|
-
__nccwpck_require__(
|
|
629
|
-
const prettyError = __nccwpck_require__(
|
|
630
|
-
const chunkSorter = __nccwpck_require__(
|
|
628
|
+
__nccwpck_require__(731);
|
|
629
|
+
const prettyError = __nccwpck_require__(215);
|
|
630
|
+
const chunkSorter = __nccwpck_require__(376);
|
|
631
631
|
const getHtmlRspackPluginHooks =
|
|
632
|
-
__nccwpck_require__(
|
|
632
|
+
__nccwpck_require__(662).getHtmlRspackPluginHooks;
|
|
633
633
|
const WITH_PLACEHOLDER = "function __with_placeholder__";
|
|
634
634
|
class HtmlRspackPlugin {
|
|
635
635
|
constructor(userOptions = {}) {
|
|
@@ -2443,6 +2443,6 @@
|
|
|
2443
2443
|
}
|
|
2444
2444
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
2445
2445
|
__nccwpck_require__.ab = __dirname + "/";
|
|
2446
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
2446
|
+
var __webpack_exports__ = __nccwpck_require__(922);
|
|
2447
2447
|
module.exports = __webpack_exports__;
|
|
2448
2448
|
})();
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
do {
|
|
512
512
|
const t = e1.next();
|
|
513
513
|
s = c[t], r |= (31 & s) << n, n += 5;
|
|
514
|
-
}while (32 & s)
|
|
514
|
+
}while (32 & s)
|
|
515
515
|
const i = 1 & r;
|
|
516
516
|
return r >>>= 1, i && (r = -2147483648 | -r), t + r;
|
|
517
517
|
}
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
do {
|
|
522
522
|
let t = 31 & n;
|
|
523
523
|
n >>>= 5, n > 0 && (t |= 32), e1.write(p[t]);
|
|
524
|
-
}while (n > 0)
|
|
524
|
+
}while (n > 0)
|
|
525
525
|
return t;
|
|
526
526
|
}
|
|
527
527
|
function hasMoreVlq(e1, t) {
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
do {
|
|
594
594
|
const e1 = decodeInteger(r, 0);
|
|
595
595
|
l.push(e1);
|
|
596
|
-
}while (hasMoreVlq(r, t))
|
|
596
|
+
}while (hasMoreVlq(r, t))
|
|
597
597
|
}
|
|
598
598
|
a.vars = l, n.push(a), s.push(a);
|
|
599
599
|
}
|
|
@@ -685,12 +685,12 @@
|
|
|
685
685
|
]
|
|
686
686
|
];
|
|
687
687
|
x.push(n);
|
|
688
|
-
}while (hasMoreVlq(r, e1))
|
|
688
|
+
}while (hasMoreVlq(r, e1))
|
|
689
689
|
}
|
|
690
690
|
b.bindings = x, n.push(b), s.push(b);
|
|
691
691
|
}
|
|
692
692
|
i++, r.pos = e1 + 1;
|
|
693
|
-
}while (r.pos < t)
|
|
693
|
+
}while (r.pos < t)
|
|
694
694
|
return n;
|
|
695
695
|
}
|
|
696
696
|
function encodeGeneratedRanges(e1) {
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
}
|
|
735
735
|
function catchupLine(e1, t, r) {
|
|
736
736
|
do e1.write(a);
|
|
737
|
-
while (++t < r)
|
|
737
|
+
while (++t < r)
|
|
738
738
|
}
|
|
739
739
|
function decode(e1) {
|
|
740
740
|
const { length: t } = e1, r = new m(e1), n = [];
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
], t.push(n), r.pos++;
|
|
761
761
|
}
|
|
762
762
|
p || sort(t), n.push(t), r.pos = e1 + 1;
|
|
763
|
-
}while (r.pos <= t)
|
|
763
|
+
}while (r.pos <= t)
|
|
764
764
|
return n;
|
|
765
765
|
}
|
|
766
766
|
function sort(e1) {
|
|
@@ -2195,7 +2195,7 @@
|
|
|
2195
2195
|
if (void 0 === s) return 1;
|
|
2196
2196
|
if (void 0 === n) return -1;
|
|
2197
2197
|
if (n !== s) return compareIdentifiers(n, s);
|
|
2198
|
-
}while (++t)
|
|
2198
|
+
}while (++t)
|
|
2199
2199
|
}, SemVer.prototype.compareBuild = function(e1) {
|
|
2200
2200
|
e1 instanceof SemVer || (e1 = new SemVer(e1, this.options));
|
|
2201
2201
|
var t = 0;
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
if (void 0 === s) return 1;
|
|
2206
2206
|
if (void 0 === n) return -1;
|
|
2207
2207
|
if (n !== s) return compareIdentifiers(n, s);
|
|
2208
|
-
}while (++t)
|
|
2208
|
+
}while (++t)
|
|
2209
2209
|
}, SemVer.prototype.inc = function(e1, t) {
|
|
2210
2210
|
switch(e1){
|
|
2211
2211
|
case "premajor":
|
|
@@ -4557,7 +4557,7 @@
|
|
|
4557
4557
|
if ("object" != typeof t || null === t) throw new Error(`${msg(e1)} must be an object or undefined.`);
|
|
4558
4558
|
let r = e1;
|
|
4559
4559
|
do r = r.parent;
|
|
4560
|
-
while ("root" !== r.type)
|
|
4560
|
+
while ("root" !== r.type)
|
|
4561
4561
|
const s = "preset" === r.source;
|
|
4562
4562
|
for (const r of Object.keys(t)){
|
|
4563
4563
|
const i = access(e1, r);
|
|
@@ -7098,7 +7098,7 @@
|
|
|
7098
7098
|
specifier: e1
|
|
7099
7099
|
});
|
|
7100
7100
|
return void 0 !== c.exports && null !== c.exports ? packageExportsResolve(l, s, c, t, r) : "." === s ? legacyMainResolve(l, c, t) : new (_url()).URL(s, l);
|
|
7101
|
-
}while (p.length !== a.length)
|
|
7101
|
+
}while (p.length !== a.length)
|
|
7102
7102
|
throw new _(n, (0, _url().fileURLToPath)(t), !1);
|
|
7103
7103
|
}
|
|
7104
7104
|
function shouldBeTreatedAsRelativeOrAbsolutePath(e1) {
|
|
@@ -9777,7 +9777,7 @@
|
|
|
9777
9777
|
}), ()=>{
|
|
9778
9778
|
let e1;
|
|
9779
9779
|
do incrementId(t), e1 = String.fromCharCode(...t);
|
|
9780
|
-
while (r.has(e1))
|
|
9780
|
+
while (r.has(e1))
|
|
9781
9781
|
return n.types.privateName(n.types.identifier(e1));
|
|
9782
9782
|
};
|
|
9783
9783
|
}(e1)), t());
|
|
@@ -12684,7 +12684,7 @@
|
|
|
12684
12684
|
default:
|
|
12685
12685
|
if (e1.parentPath.isStatement() || e1.parentPath.isExpression()) return !1;
|
|
12686
12686
|
}
|
|
12687
|
-
while (e1 = e1.parentPath)
|
|
12687
|
+
while (e1 = e1.parentPath)
|
|
12688
12688
|
}(e1)) throw e1.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);
|
|
12689
12689
|
const t = e1.scope.getBinding(a);
|
|
12690
12690
|
if (s.getBinding(a) !== t) return;
|
|
@@ -21385,7 +21385,7 @@
|
|
|
21385
21385
|
let e1;
|
|
21386
21386
|
const t = this.state.pos;
|
|
21387
21387
|
do e1 = this.input.charCodeAt(++this.state.pos);
|
|
21388
|
-
while (isIdentifierChar(e1) || 45 === e1)
|
|
21388
|
+
while (isIdentifierChar(e1) || 45 === e1)
|
|
21389
21389
|
this.finishToken(141, this.input.slice(t, this.state.pos));
|
|
21390
21390
|
}
|
|
21391
21391
|
jsxParseIdentifier() {
|
|
@@ -21624,12 +21624,12 @@
|
|
|
21624
21624
|
}
|
|
21625
21625
|
flowParseInterfaceish(e1, t) {
|
|
21626
21626
|
if (e1.id = this.flowParseRestrictedIdentifier(!t, !0), this.scope.declareName(e1.id.name, t ? 17 : 8201, e1.id.loc.start), this.match(47) ? e1.typeParameters = this.flowParseTypeParameterDeclaration() : e1.typeParameters = null, e1.extends = [], this.eat(81)) do e1.extends.push(this.flowParseInterfaceExtends());
|
|
21627
|
-
while (!t && this.eat(12))
|
|
21627
|
+
while (!t && this.eat(12))
|
|
21628
21628
|
if (t) {
|
|
21629
21629
|
if (e1.implements = [], e1.mixins = [], this.eatContextual(117)) do e1.mixins.push(this.flowParseInterfaceExtends());
|
|
21630
|
-
while (this.eat(12))
|
|
21630
|
+
while (this.eat(12))
|
|
21631
21631
|
if (this.eatContextual(113)) do e1.implements.push(this.flowParseInterfaceExtends());
|
|
21632
|
-
while (this.eat(12))
|
|
21632
|
+
while (this.eat(12))
|
|
21633
21633
|
}
|
|
21634
21634
|
e1.body = this.flowParseObjectType({
|
|
21635
21635
|
allowStatic: t,
|
|
@@ -21674,7 +21674,7 @@
|
|
|
21674
21674
|
do {
|
|
21675
21675
|
const e1 = this.flowParseTypeParameter(r);
|
|
21676
21676
|
t.params.push(e1), e1.default && (r = !0), this.match(48) || this.expect(12);
|
|
21677
|
-
}while (!this.match(48))
|
|
21677
|
+
}while (!this.match(48))
|
|
21678
21678
|
return this.expect(48), this.state.inType = e1, this.finishNode(t, "TypeParameterDeclaration");
|
|
21679
21679
|
}
|
|
21680
21680
|
flowInTopLevelContext(e1) {
|
|
@@ -21712,7 +21712,7 @@
|
|
|
21712
21712
|
flowParseInterfaceType() {
|
|
21713
21713
|
const e1 = this.startNode();
|
|
21714
21714
|
if (this.expectContextual(129), e1.extends = [], this.eat(81)) do e1.extends.push(this.flowParseInterfaceExtends());
|
|
21715
|
-
while (this.eat(12))
|
|
21715
|
+
while (this.eat(12))
|
|
21716
21716
|
return e1.body = this.flowParseObjectType({
|
|
21717
21717
|
allowStatic: !1,
|
|
21718
21718
|
allowExact: !1,
|
|
@@ -22231,7 +22231,7 @@
|
|
|
22231
22231
|
do {
|
|
22232
22232
|
const e1 = this.startNode();
|
|
22233
22233
|
e1.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? e1.typeParameters = this.flowParseTypeParameterInstantiation() : e1.typeParameters = null, t.push(this.finishNode(e1, "ClassImplements"));
|
|
22234
|
-
}while (this.eat(12))
|
|
22234
|
+
}while (this.eat(12))
|
|
22235
22235
|
}
|
|
22236
22236
|
}
|
|
22237
22237
|
checkGetterSetterParams(e1) {
|
|
@@ -23191,7 +23191,7 @@
|
|
|
23191
23191
|
tsParseUnionOrIntersectionType(e1, t, r) {
|
|
23192
23192
|
const n = this.startNode(), s = this.eat(r), i = [];
|
|
23193
23193
|
do i.push(t());
|
|
23194
|
-
while (this.eat(r))
|
|
23194
|
+
while (this.eat(r))
|
|
23195
23195
|
return 1 !== i.length || s ? (n.types = i, this.finishNode(n, e1)) : i[0];
|
|
23196
23196
|
}
|
|
23197
23197
|
tsParseIntersectionTypeOrHigher() {
|
|
@@ -24503,7 +24503,7 @@
|
|
|
24503
24503
|
stop: !1
|
|
24504
24504
|
};
|
|
24505
24505
|
do e1 = this.parseSubscript(e1, t, r, n), n.maybeAsyncArrow = !1;
|
|
24506
|
-
while (!n.stop)
|
|
24506
|
+
while (!n.stop)
|
|
24507
24507
|
return e1;
|
|
24508
24508
|
}
|
|
24509
24509
|
parseSubscript(e1, t, r, n) {
|
|
@@ -25145,7 +25145,7 @@
|
|
|
25145
25145
|
if (this.match(11)) this.addTrailingCommaExtraToNode(e1.source);
|
|
25146
25146
|
else if (e1.options = this.parseMaybeAssignAllowIn(), this.eat(12) && (this.addTrailingCommaExtraToNode(e1.options), !this.match(11))) {
|
|
25147
25147
|
do this.parseMaybeAssignAllowIn();
|
|
25148
|
-
while (this.eat(12) && !this.match(11))
|
|
25148
|
+
while (this.eat(12) && !this.match(11))
|
|
25149
25149
|
this.raise(c.ImportCallArity, e1);
|
|
25150
25150
|
}
|
|
25151
25151
|
}
|
|
@@ -25548,7 +25548,7 @@
|
|
|
25548
25548
|
parseDecorators(e1) {
|
|
25549
25549
|
const t = [];
|
|
25550
25550
|
do t.push(this.parseDecorator());
|
|
25551
|
-
while (this.match(26))
|
|
25551
|
+
while (this.match(26))
|
|
25552
25552
|
if (this.match(82)) e1 || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(c.DecoratorExportClass, this.state.startLoc);
|
|
25553
25553
|
else if (!this.canHaveLeadingDecorator()) throw this.raise(c.UnexpectedLeadingDecorator, this.state.startLoc);
|
|
25554
25554
|
return t;
|
|
@@ -26188,7 +26188,7 @@
|
|
|
26188
26188
|
key: n
|
|
26189
26189
|
}), t.add(n), this.match(134) ? r.key = this.parseStringLiteral(n) : r.key = this.parseIdentifier(!0), this.expect(14), !this.match(134)) throw this.raise(c.ModuleAttributeInvalidValue, this.state.startLoc);
|
|
26190
26190
|
r.value = this.parseStringLiteral(this.state.value), e1.push(this.finishNode(r, "ImportAttribute"));
|
|
26191
|
-
}while (this.eat(12))
|
|
26191
|
+
}while (this.eat(12))
|
|
26192
26192
|
return this.expect(8), e1;
|
|
26193
26193
|
}
|
|
26194
26194
|
parseModuleAttributes() {
|
|
@@ -26199,7 +26199,7 @@
|
|
|
26199
26199
|
key: r.key.name
|
|
26200
26200
|
}), t.add(r.key.name), this.expect(14), !this.match(134)) throw this.raise(c.ModuleAttributeInvalidValue, this.state.startLoc);
|
|
26201
26201
|
r.value = this.parseStringLiteral(this.state.value), e1.push(this.finishNode(r, "ImportAttribute"));
|
|
26202
|
-
}while (this.eat(12))
|
|
26202
|
+
}while (this.eat(12))
|
|
26203
26203
|
return e1;
|
|
26204
26204
|
}
|
|
26205
26205
|
maybeParseImportAttributes(e1) {
|
|
@@ -26862,7 +26862,7 @@
|
|
|
26862
26862
|
if (e1.isCallExpression() && !i.types.isImport(e1.node.callee)) return;
|
|
26863
26863
|
let { scope: t } = e1;
|
|
26864
26864
|
do t.rename("require");
|
|
26865
|
-
while (t = t.parent)
|
|
26865
|
+
while (t = t.parent)
|
|
26866
26866
|
(0, o.transformDynamicImport)(e1, f, this.file);
|
|
26867
26867
|
},
|
|
26868
26868
|
Program: {
|
|
@@ -26963,7 +26963,7 @@
|
|
|
26963
26963
|
const { path: t } = e1;
|
|
26964
26964
|
if (t.isFunctionParent() && !t.isArrowFunctionExpression()) return !t.isMethod() || "constructor" !== t.node.kind || !isDerivedClass(t.parentPath.parentPath);
|
|
26965
26965
|
if (t.isTSModuleBlock()) return !1;
|
|
26966
|
-
}while (e1 = e1.parent)
|
|
26966
|
+
}while (e1 = e1.parent)
|
|
26967
26967
|
return !0;
|
|
26968
26968
|
})(e1.scope) && r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"), i.types.jsxExpressionContainer(i.types.thisExpression()))), r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"), i.types.jsxExpressionContainer(function(e1, t) {
|
|
26969
26969
|
const r = e1.node.loc;
|
|
@@ -27756,7 +27756,7 @@
|
|
|
27756
27756
|
["TSAsExpression" + (r.tsSatisfiesExpression ? "|TSSatisfiesExpression" : "")] (e1) {
|
|
27757
27757
|
let { node: t } = e1;
|
|
27758
27758
|
do t = t.expression;
|
|
27759
|
-
while (r.isTSAsExpression(t) || null != r.isTSSatisfiesExpression && r.isTSSatisfiesExpression(t))
|
|
27759
|
+
while (r.isTSAsExpression(t) || null != r.isTSSatisfiesExpression && r.isTSSatisfiesExpression(t))
|
|
27760
27760
|
e1.replaceWith(t);
|
|
27761
27761
|
},
|
|
27762
27762
|
[e1.types.tsInstantiationExpression ? "TSNonNullExpression|TSInstantiationExpression" : "TSNonNullExpression"] (e1) {
|
|
@@ -28111,7 +28111,7 @@
|
|
|
28111
28111
|
let n = "BABEL_TPL$";
|
|
28112
28112
|
const i = t.join("");
|
|
28113
28113
|
do n = "$$" + n;
|
|
28114
|
-
while (i.includes(n))
|
|
28114
|
+
while (i.includes(n))
|
|
28115
28115
|
const { names: o, code: a } = function(e1, t) {
|
|
28116
28116
|
const r = [];
|
|
28117
28117
|
let n = e1[0];
|
|
@@ -28509,7 +28509,7 @@
|
|
|
28509
28509
|
}), t.find = function(e1) {
|
|
28510
28510
|
let t = this;
|
|
28511
28511
|
do if (e1(t)) return t;
|
|
28512
|
-
while (t = t.parentPath)
|
|
28512
|
+
while (t = t.parentPath)
|
|
28513
28513
|
return null;
|
|
28514
28514
|
}, t.findParent = function(e1) {
|
|
28515
28515
|
let t = this;
|
|
@@ -28519,7 +28519,7 @@
|
|
|
28519
28519
|
let e1 = this;
|
|
28520
28520
|
const t = [];
|
|
28521
28521
|
do t.push(e1);
|
|
28522
|
-
while (e1 = e1.parentPath)
|
|
28522
|
+
while (e1 = e1.parentPath)
|
|
28523
28523
|
return t;
|
|
28524
28524
|
}, t.getDeepestCommonAncestorFrom = function(e1, t) {
|
|
28525
28525
|
if (!e1.length) return this;
|
|
@@ -28528,7 +28528,7 @@
|
|
|
28528
28528
|
const i = e1.map((e1)=>{
|
|
28529
28529
|
const t = [];
|
|
28530
28530
|
do t.unshift(e1);
|
|
28531
|
-
while ((e1 = e1.parentPath) && e1 !== this)
|
|
28531
|
+
while ((e1 = e1.parentPath) && e1 !== this)
|
|
28532
28532
|
return t.length < s && (s = t.length), t;
|
|
28533
28533
|
}), o = i[0];
|
|
28534
28534
|
e: for(let e1 = 0; e1 < s; e1++){
|
|
@@ -28563,7 +28563,7 @@
|
|
|
28563
28563
|
do {
|
|
28564
28564
|
if (!e1.parentPath || Array.isArray(e1.container) && e1.isStatement()) break;
|
|
28565
28565
|
e1 = e1.parentPath;
|
|
28566
|
-
}while (e1)
|
|
28566
|
+
}while (e1)
|
|
28567
28567
|
if (e1 && (e1.isProgram() || e1.isFile())) throw new Error("File/Program node, we can't possibly find a statement parent to this");
|
|
28568
28568
|
return e1;
|
|
28569
28569
|
}, t.inType = function(...e1) {
|
|
@@ -29033,7 +29033,7 @@
|
|
|
29033
29033
|
do {
|
|
29034
29034
|
if (r.hasOwnBinding("arguments")) return void r.rename("arguments");
|
|
29035
29035
|
if (r.path.isFunction() && !r.path.isArrowFunctionExpression()) break;
|
|
29036
|
-
}while (r = r.parent)
|
|
29036
|
+
}while (r = r.parent)
|
|
29037
29037
|
t.push(e1);
|
|
29038
29038
|
},
|
|
29039
29039
|
MetaProperty (e1, { newTargetPaths: t }) {
|
|
@@ -29588,7 +29588,7 @@
|
|
|
29588
29588
|
do {
|
|
29589
29589
|
let r = t.key;
|
|
29590
29590
|
t.inList && (r = `${t.listKey}[${r}]`), e1.unshift(r);
|
|
29591
|
-
}while (t = t.parentPath)
|
|
29591
|
+
}while (t = t.parentPath)
|
|
29592
29592
|
return e1.join(".");
|
|
29593
29593
|
}
|
|
29594
29594
|
debug(e1) {
|
|
@@ -30026,7 +30026,7 @@
|
|
|
30026
30026
|
const { type: n, container: s } = t;
|
|
30027
30027
|
if (!r && (t.isFunction() || "StaticBlock" === n)) return !!e1;
|
|
30028
30028
|
if (r = !1, Array.isArray(s) && t.key !== s.length - 1) return !1;
|
|
30029
|
-
}while ((t = t.parentPath) && !t.isProgram() && !t.isDoExpression())
|
|
30029
|
+
}while ((t = t.parentPath) && !t.isProgram() && !t.isDoExpression())
|
|
30030
30030
|
return !0;
|
|
30031
30031
|
}, t.isConstantExpression = function() {
|
|
30032
30032
|
if (this.isIdentifier()) {
|
|
@@ -30254,7 +30254,7 @@
|
|
|
30254
30254
|
if ("this" === e1.node.name) {
|
|
30255
30255
|
let r = e1.scope;
|
|
30256
30256
|
do if (r.path.isFunction() && !r.path.isArrowFunctionExpression()) break;
|
|
30257
|
-
while (r = r.parent)
|
|
30257
|
+
while (r = r.parent)
|
|
30258
30258
|
r && t.breakOnScopePaths.push(r.path);
|
|
30259
30259
|
}
|
|
30260
30260
|
const r = e1.scope.getBinding(e1.node.name);
|
|
@@ -30280,7 +30280,7 @@
|
|
|
30280
30280
|
do {
|
|
30281
30281
|
if (!this.isCompatibleScope(e1)) break;
|
|
30282
30282
|
if (this.scopes.push(e1), this.breakOnScopePaths.includes(e1.path)) break;
|
|
30283
|
-
}while (e1 = e1.parent)
|
|
30283
|
+
}while (e1 = e1.parent)
|
|
30284
30284
|
}
|
|
30285
30285
|
getAttachmentPath() {
|
|
30286
30286
|
let e1 = this._getAttachmentPath();
|
|
@@ -30317,7 +30317,7 @@
|
|
|
30317
30317
|
}
|
|
30318
30318
|
getAttachmentParentForPath(e1) {
|
|
30319
30319
|
do if (!e1.parentPath || Array.isArray(e1.container) && e1.isStatement()) return e1;
|
|
30320
|
-
while (e1 = e1.parentPath)
|
|
30320
|
+
while (e1 = e1.parentPath)
|
|
30321
30321
|
}
|
|
30322
30322
|
hasOwnParamBindings(e1) {
|
|
30323
30323
|
for (const t of Object.keys(this.bindings)){
|
|
@@ -31014,7 +31014,7 @@
|
|
|
31014
31014
|
var n;
|
|
31015
31015
|
const e1 = "key" === r.key || "decorators" === r.listKey;
|
|
31016
31016
|
r = r.parentPath, e1 && r.isMethod() && (r = r.parentPath), null != (n = r) && n.isScope() && (t = r);
|
|
31017
|
-
}while (r && !t)
|
|
31017
|
+
}while (r && !t)
|
|
31018
31018
|
return null == (e1 = t) ? void 0 : e1.scope;
|
|
31019
31019
|
}
|
|
31020
31020
|
get references() {
|
|
@@ -31037,7 +31037,7 @@
|
|
|
31037
31037
|
e1 = z(e1).replace(/^_+/, "").replace(/\d+$/g, "");
|
|
31038
31038
|
let r = 0;
|
|
31039
31039
|
do t = `_${e1}`, r >= 11 ? t += r - 1 : r >= 9 ? t += r - 9 : r >= 1 && (t += r + 1), r++;
|
|
31040
|
-
while (this.hasLabel(t) || this.hasBinding(t) || this.hasGlobal(t) || this.hasReference(t))
|
|
31040
|
+
while (this.hasLabel(t) || this.hasBinding(t) || this.hasGlobal(t) || this.hasReference(t))
|
|
31041
31041
|
const n = this.getProgramParent();
|
|
31042
31042
|
return n.references[t] = !0, n.uids[t] = !0, t;
|
|
31043
31043
|
}
|
|
@@ -31094,7 +31094,7 @@
|
|
|
31094
31094
|
kind: r.kind
|
|
31095
31095
|
});
|
|
31096
31096
|
}
|
|
31097
|
-
}while (t = t.parent)
|
|
31097
|
+
}while (t = t.parent)
|
|
31098
31098
|
console.log(e1);
|
|
31099
31099
|
}
|
|
31100
31100
|
hasLabel(e1) {
|
|
@@ -31168,14 +31168,14 @@
|
|
|
31168
31168
|
{
|
|
31169
31169
|
let t = this;
|
|
31170
31170
|
do if (t.uids[e1]) return !0;
|
|
31171
|
-
while (t = t.parent)
|
|
31171
|
+
while (t = t.parent)
|
|
31172
31172
|
return !1;
|
|
31173
31173
|
}
|
|
31174
31174
|
}
|
|
31175
31175
|
hasGlobal(e1) {
|
|
31176
31176
|
let t = this;
|
|
31177
31177
|
do if (t.globals[e1]) return !0;
|
|
31178
|
-
while (t = t.parent)
|
|
31178
|
+
while (t = t.parent)
|
|
31179
31179
|
return !1;
|
|
31180
31180
|
}
|
|
31181
31181
|
hasReference(e1) {
|
|
@@ -31225,12 +31225,12 @@
|
|
|
31225
31225
|
do {
|
|
31226
31226
|
const r = t.data[e1];
|
|
31227
31227
|
if (null != r) return r;
|
|
31228
|
-
}while (t = t.parent)
|
|
31228
|
+
}while (t = t.parent)
|
|
31229
31229
|
}
|
|
31230
31230
|
removeData(e1) {
|
|
31231
31231
|
let t = this;
|
|
31232
31232
|
do null != t.data[e1] && (t.data[e1] = null);
|
|
31233
|
-
while (t = t.parent)
|
|
31233
|
+
while (t = t.parent)
|
|
31234
31234
|
}
|
|
31235
31235
|
init() {
|
|
31236
31236
|
this.inited || (this.inited = !0, this.crawl());
|
|
@@ -31242,7 +31242,7 @@
|
|
|
31242
31242
|
do {
|
|
31243
31243
|
if (t.crawling) return;
|
|
31244
31244
|
if (t.path.isProgram()) break;
|
|
31245
|
-
}while (t = t.parent)
|
|
31245
|
+
}while (t = t.parent)
|
|
31246
31246
|
const r = t, n = {
|
|
31247
31247
|
references: [],
|
|
31248
31248
|
constantViolations: [],
|
|
@@ -31294,25 +31294,25 @@
|
|
|
31294
31294
|
getProgramParent() {
|
|
31295
31295
|
let e1 = this;
|
|
31296
31296
|
do if (e1.path.isProgram()) return e1;
|
|
31297
|
-
while (e1 = e1.parent)
|
|
31297
|
+
while (e1 = e1.parent)
|
|
31298
31298
|
throw new Error("Couldn't find a Program");
|
|
31299
31299
|
}
|
|
31300
31300
|
getFunctionParent() {
|
|
31301
31301
|
let e1 = this;
|
|
31302
31302
|
do if (e1.path.isFunctionParent()) return e1;
|
|
31303
|
-
while (e1 = e1.parent)
|
|
31303
|
+
while (e1 = e1.parent)
|
|
31304
31304
|
return null;
|
|
31305
31305
|
}
|
|
31306
31306
|
getBlockParent() {
|
|
31307
31307
|
let e1 = this;
|
|
31308
31308
|
do if (e1.path.isBlockParent()) return e1;
|
|
31309
|
-
while (e1 = e1.parent)
|
|
31309
|
+
while (e1 = e1.parent)
|
|
31310
31310
|
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
|
|
31311
31311
|
}
|
|
31312
31312
|
getPatternParent() {
|
|
31313
31313
|
let e1 = this;
|
|
31314
31314
|
do if (!e1.path.isPattern()) return e1.getBlockParent();
|
|
31315
|
-
while (e1 = e1.parent.parent)
|
|
31315
|
+
while (e1 = e1.parent.parent)
|
|
31316
31316
|
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
|
|
31317
31317
|
}
|
|
31318
31318
|
getAllBindings() {
|
|
@@ -31321,7 +31321,7 @@
|
|
|
31321
31321
|
do {
|
|
31322
31322
|
for (const r of Object.keys(t.bindings))r in e1 == !1 && (e1[r] = t.bindings[r]);
|
|
31323
31323
|
t = t.parent;
|
|
31324
|
-
}while (t)
|
|
31324
|
+
}while (t)
|
|
31325
31325
|
return e1;
|
|
31326
31326
|
}
|
|
31327
31327
|
bindingIdentifierEquals(e1, t) {
|
|
@@ -31336,7 +31336,7 @@
|
|
|
31336
31336
|
if (null == (n = t) || !n.isPattern() || "param" === s.kind || "local" === s.kind) return s;
|
|
31337
31337
|
} else if (!s && "arguments" === e1 && r.path.isFunction() && !r.path.isArrowFunctionExpression()) break;
|
|
31338
31338
|
t = r.path;
|
|
31339
|
-
}while (r = r.parent)
|
|
31339
|
+
}while (r = r.parent)
|
|
31340
31340
|
}
|
|
31341
31341
|
getOwnBinding(e1) {
|
|
31342
31342
|
return this.bindings[e1];
|
|
@@ -31360,7 +31360,7 @@
|
|
|
31360
31360
|
do {
|
|
31361
31361
|
if (s === i) break;
|
|
31362
31362
|
if (i.hasOwnBinding(e1)) return !0;
|
|
31363
|
-
}while (i = i.parent)
|
|
31363
|
+
}while (i = i.parent)
|
|
31364
31364
|
return !(n || !this.hasUid(e1)) || !(r || !Scope.globals.includes(e1)) || !(r || !Scope.contextVariables.includes(e1));
|
|
31365
31365
|
}
|
|
31366
31366
|
parentHasBinding(e1, t) {
|
|
@@ -31380,7 +31380,7 @@
|
|
|
31380
31380
|
{
|
|
31381
31381
|
let t = this;
|
|
31382
31382
|
do t.uids[e1] && (t.uids[e1] = !1);
|
|
31383
|
-
while (t = t.parent)
|
|
31383
|
+
while (t = t.parent)
|
|
31384
31384
|
}
|
|
31385
31385
|
}
|
|
31386
31386
|
hoistVariables(e1 = (e1)=>this.push({
|
|
@@ -31457,7 +31457,7 @@
|
|
|
31457
31457
|
s.kind === r && (t[n] = s);
|
|
31458
31458
|
}
|
|
31459
31459
|
e1 = e1.parent;
|
|
31460
|
-
}while (e1)
|
|
31460
|
+
}while (e1)
|
|
31461
31461
|
}
|
|
31462
31462
|
return t;
|
|
31463
31463
|
}, Object.defineProperties(Scope.prototype, {
|
|
@@ -42592,7 +42592,7 @@
|
|
|
42592
42592
|
parse: function(e1, t) {
|
|
42593
42593
|
i = String(e1), o = "start", a = [], l = 0, p = 1, c = 0, u = void 0, d = void 0, h = void 0;
|
|
42594
42594
|
do u = lex(), v[o]();
|
|
42595
|
-
while ("eof" !== u.type)
|
|
42595
|
+
while ("eof" !== u.type)
|
|
42596
42596
|
return "function" == typeof t ? internalize({
|
|
42597
42597
|
"": h
|
|
42598
42598
|
}, "", t) : h;
|
|
@@ -45671,7 +45671,7 @@
|
|
|
45671
45671
|
var t = e1.current();
|
|
45672
45672
|
if (t >= 49 && t <= 57) {
|
|
45673
45673
|
do e1.lastIntValue = 10 * e1.lastIntValue + (t - 48), e1.advance();
|
|
45674
|
-
while ((t = e1.current()) >= 48 && t <= 57)
|
|
45674
|
+
while ((t = e1.current()) >= 48 && t <= 57)
|
|
45675
45675
|
return !0;
|
|
45676
45676
|
}
|
|
45677
45677
|
return !1;
|
|
@@ -46551,7 +46551,7 @@
|
|
|
46551
46551
|
if (t.isCallExpression() && !e1.types.isImport(t.node.callee)) return;
|
|
46552
46552
|
let { scope: r } = t;
|
|
46553
46553
|
do r.rename("require");
|
|
46554
|
-
while (r = r.parent)
|
|
46554
|
+
while (r = r.parent)
|
|
46555
46555
|
transformDynamicImport(t, l, this.file);
|
|
46556
46556
|
},
|
|
46557
46557
|
Program: {
|
|
@@ -2706,7 +2706,7 @@
|
|
|
2706
2706
|
var t = e.current();
|
|
2707
2707
|
if (t >= 49 && t <= 57) {
|
|
2708
2708
|
do e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
|
|
2709
|
-
while ((t = e.current()) >= 48 && t <= 57)
|
|
2709
|
+
while ((t = e.current()) >= 48 && t <= 57)
|
|
2710
2710
|
return !0;
|
|
2711
2711
|
}
|
|
2712
2712
|
return !1;
|
|
@@ -3887,7 +3887,7 @@
|
|
|
3887
3887
|
specifier: e
|
|
3888
3888
|
});
|
|
3889
3889
|
return void 0 !== p.exports && null !== p.exports ? packageExportsResolve(h, r, p, t, i) : "." === r ? legacyMainResolve(h, p, t) : new _e.URL(r, h);
|
|
3890
|
-
}while (c.length !== o.length)
|
|
3890
|
+
}while (c.length !== o.length)
|
|
3891
3891
|
throw new Ge(s, (0, _e.fileURLToPath)(t), !1);
|
|
3892
3892
|
}
|
|
3893
3893
|
function moduleResolve(e, t, i, s) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
543: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(185)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
185: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = loader;
|
|
11
11
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(436);
|
|
13
13
|
function _interopRequireDefault(e) {
|
|
14
14
|
return e && e.__esModule ? e : { default: e };
|
|
15
15
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
callback(null, result.css, map, { ast });
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
436: (module, exports, __nccwpck_require__) => {
|
|
183
183
|
module = __nccwpck_require__.nmd(module);
|
|
184
184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
185
185
|
exports.exec = exec;
|
|
@@ -716,6 +716,6 @@
|
|
|
716
716
|
})();
|
|
717
717
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
718
718
|
__nccwpck_require__.ab = __dirname + "/";
|
|
719
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
719
|
+
var __webpack_exports__ = __nccwpck_require__(543);
|
|
720
720
|
module.exports = __webpack_exports__;
|
|
721
721
|
})();
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
type ColorFn = (text: string | number) => string;
|
|
2
|
+
declare const color: {
|
|
3
|
+
dim: ColorFn;
|
|
4
|
+
red: ColorFn;
|
|
5
|
+
bold: ColorFn;
|
|
6
|
+
blue: ColorFn;
|
|
7
|
+
cyan: ColorFn;
|
|
8
|
+
gray: ColorFn;
|
|
9
|
+
black: ColorFn;
|
|
10
|
+
green: ColorFn;
|
|
11
|
+
white: ColorFn;
|
|
12
|
+
reset: ColorFn;
|
|
13
|
+
yellow: ColorFn;
|
|
14
|
+
magenta: ColorFn;
|
|
15
|
+
underline: ColorFn;
|
|
16
|
+
strikethrough: ColorFn;
|
|
17
|
+
};
|
|
2
18
|
|
|
3
19
|
declare let LOG_TYPES: {
|
|
4
20
|
error: {
|
|
@@ -63,5 +79,5 @@ declare let createLogger: (options?: Options) => Logger;
|
|
|
63
79
|
|
|
64
80
|
declare let logger: Logger;
|
|
65
81
|
|
|
66
|
-
export { createLogger, logger };
|
|
82
|
+
export { color, createLogger, logger };
|
|
67
83
|
export type { LogFunction, LogLevel, LogMessage, LogType, Logger, Options };
|