@rsbuild/core 1.3.21 → 1.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/compiled/css-loader/index.js +44 -44
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss/index.js +189 -144
- package/compiled/postcss/lib/input.d.ts +24 -3
- package/compiled/postcss/lib/node.d.ts +17 -2
- package/compiled/postcss/lib/stringifier.d.ts +2 -2
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rsbuild-dev-middleware/index.js +115 -125
- package/compiled/rspack-chain/index.js +67 -67
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +1 -0
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +12 -6
- package/compiled/style-loader/index.js +10 -10
- package/compiled/tinyglobby/index.d.ts +35 -16
- package/compiled/tinyglobby/index.js +517 -531
- package/compiled/tinyglobby/package.json +1 -1
- package/compiled/webpack-bundle-analyzer/index.js +62 -46
- package/dist/index.cjs +274 -236
- package/dist/index.js +233 -227
- package/dist-types/cli/commands.d.ts +1 -1
- package/dist-types/defaultConfig.d.ts +26 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/{config.d.ts → loadConfig.d.ts} +9 -34
- package/dist-types/pluginHelper.d.ts +1 -1
- package/dist-types/plugins/minimize.d.ts +1 -1
- package/dist-types/server/cliShortcuts.d.ts +2 -2
- package/dist-types/server/helper.d.ts +2 -2
- package/dist-types/server/runner/asModule.d.ts +2 -2
- package/dist-types/types/config.d.ts +41 -20
- package/dist-types/types/hooks.d.ts +1 -1
- package/dist-types/types/plugin.d.ts +18 -18
- package/dist-types/types/rsbuild.d.ts +2 -2
- package/package.json +11 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
367: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
let Container = __nccwpck_require__(
|
|
5
|
+
let Container = __nccwpck_require__(322);
|
|
6
6
|
class AtRule extends Container {
|
|
7
7
|
constructor(defaults) {
|
|
8
8
|
super(defaults);
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
AtRule.default = AtRule;
|
|
22
22
|
Container.registerAtRule(AtRule);
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
668: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
25
25
|
"use strict";
|
|
26
|
-
let Node = __nccwpck_require__(
|
|
26
|
+
let Node = __nccwpck_require__(65);
|
|
27
27
|
class Comment extends Node {
|
|
28
28
|
constructor(defaults) {
|
|
29
29
|
super(defaults);
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
module.exports = Comment;
|
|
34
34
|
Comment.default = Comment;
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
322: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
37
37
|
"use strict";
|
|
38
|
-
let Comment = __nccwpck_require__(
|
|
39
|
-
let Declaration = __nccwpck_require__(
|
|
40
|
-
let Node = __nccwpck_require__(
|
|
41
|
-
let { isClean, my } = __nccwpck_require__(
|
|
38
|
+
let Comment = __nccwpck_require__(668);
|
|
39
|
+
let Declaration = __nccwpck_require__(493);
|
|
40
|
+
let Node = __nccwpck_require__(65);
|
|
41
|
+
let { isClean, my } = __nccwpck_require__(16);
|
|
42
42
|
let AtRule, parse, Root, Rule;
|
|
43
43
|
function cleanSource(nodes) {
|
|
44
44
|
return nodes.map((i) => {
|
|
@@ -417,10 +417,10 @@
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
},
|
|
420
|
-
|
|
420
|
+
767: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
421
421
|
"use strict";
|
|
422
422
|
let pico = __nccwpck_require__(717);
|
|
423
|
-
let terminalHighlight = __nccwpck_require__(
|
|
423
|
+
let terminalHighlight = __nccwpck_require__(124);
|
|
424
424
|
class CssSyntaxError extends Error {
|
|
425
425
|
constructor(message, line, column, source, file, plugin) {
|
|
426
426
|
super(message);
|
|
@@ -533,9 +533,9 @@
|
|
|
533
533
|
module.exports = CssSyntaxError;
|
|
534
534
|
CssSyntaxError.default = CssSyntaxError;
|
|
535
535
|
},
|
|
536
|
-
|
|
536
|
+
493: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
537
537
|
"use strict";
|
|
538
|
-
let Node = __nccwpck_require__(
|
|
538
|
+
let Node = __nccwpck_require__(65);
|
|
539
539
|
class Declaration extends Node {
|
|
540
540
|
get variable() {
|
|
541
541
|
return this.prop.startsWith("--") || this.prop[0] === "$";
|
|
@@ -555,9 +555,9 @@
|
|
|
555
555
|
module.exports = Declaration;
|
|
556
556
|
Declaration.default = Declaration;
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
44: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
559
559
|
"use strict";
|
|
560
|
-
let Container = __nccwpck_require__(
|
|
560
|
+
let Container = __nccwpck_require__(322);
|
|
561
561
|
let LazyResult, Processor;
|
|
562
562
|
class Document extends Container {
|
|
563
563
|
constructor(defaults) {
|
|
@@ -580,15 +580,15 @@
|
|
|
580
580
|
module.exports = Document;
|
|
581
581
|
Document.default = Document;
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
615: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
584
584
|
"use strict";
|
|
585
|
-
let AtRule = __nccwpck_require__(
|
|
586
|
-
let Comment = __nccwpck_require__(
|
|
587
|
-
let Declaration = __nccwpck_require__(
|
|
588
|
-
let Input = __nccwpck_require__(
|
|
589
|
-
let PreviousMap = __nccwpck_require__(
|
|
590
|
-
let Root = __nccwpck_require__(
|
|
591
|
-
let Rule = __nccwpck_require__(
|
|
585
|
+
let AtRule = __nccwpck_require__(367);
|
|
586
|
+
let Comment = __nccwpck_require__(668);
|
|
587
|
+
let Declaration = __nccwpck_require__(493);
|
|
588
|
+
let Input = __nccwpck_require__(385);
|
|
589
|
+
let PreviousMap = __nccwpck_require__(583);
|
|
590
|
+
let Root = __nccwpck_require__(145);
|
|
591
|
+
let Rule = __nccwpck_require__(275);
|
|
592
592
|
function fromJSON(json, inputs) {
|
|
593
593
|
if (Array.isArray(json)) return json.map((n) => fromJSON(n));
|
|
594
594
|
let { inputs: ownInputs, ...defaults } = json;
|
|
@@ -632,18 +632,30 @@
|
|
|
632
632
|
module.exports = fromJSON;
|
|
633
633
|
fromJSON.default = fromJSON;
|
|
634
634
|
},
|
|
635
|
-
|
|
635
|
+
385: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
636
636
|
"use strict";
|
|
637
|
-
let { nanoid } = __nccwpck_require__(
|
|
637
|
+
let { nanoid } = __nccwpck_require__(135);
|
|
638
638
|
let { isAbsolute, resolve } = __nccwpck_require__(928);
|
|
639
639
|
let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(840);
|
|
640
|
-
let { fileURLToPath, pathToFileURL } = __nccwpck_require__(
|
|
641
|
-
let CssSyntaxError = __nccwpck_require__(
|
|
642
|
-
let PreviousMap = __nccwpck_require__(
|
|
643
|
-
let terminalHighlight = __nccwpck_require__(
|
|
644
|
-
let
|
|
640
|
+
let { fileURLToPath, pathToFileURL } = __nccwpck_require__(635);
|
|
641
|
+
let CssSyntaxError = __nccwpck_require__(767);
|
|
642
|
+
let PreviousMap = __nccwpck_require__(583);
|
|
643
|
+
let terminalHighlight = __nccwpck_require__(124);
|
|
644
|
+
let lineToIndexCache = Symbol("lineToIndexCache");
|
|
645
645
|
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
646
646
|
let pathAvailable = Boolean(resolve && isAbsolute);
|
|
647
|
+
function getLineToIndex(input) {
|
|
648
|
+
if (input[lineToIndexCache]) return input[lineToIndexCache];
|
|
649
|
+
let lines = input.css.split("\n");
|
|
650
|
+
let lineToIndex = new Array(lines.length);
|
|
651
|
+
let prevIndex = 0;
|
|
652
|
+
for (let i = 0, l = lines.length; i < l; i++) {
|
|
653
|
+
lineToIndex[i] = prevIndex;
|
|
654
|
+
prevIndex += lines[i].length + 1;
|
|
655
|
+
}
|
|
656
|
+
input[lineToIndexCache] = lineToIndex;
|
|
657
|
+
return lineToIndex;
|
|
658
|
+
}
|
|
647
659
|
class Input {
|
|
648
660
|
get from() {
|
|
649
661
|
return this.file || this.id;
|
|
@@ -690,30 +702,37 @@
|
|
|
690
702
|
if (this.map) this.map.file = this.from;
|
|
691
703
|
}
|
|
692
704
|
error(message, line, column, opts = {}) {
|
|
693
|
-
let endColumn, endLine, result;
|
|
705
|
+
let endColumn, endLine, endOffset, offset, result;
|
|
694
706
|
if (line && typeof line === "object") {
|
|
695
707
|
let start = line;
|
|
696
708
|
let end = column;
|
|
697
709
|
if (typeof start.offset === "number") {
|
|
698
|
-
|
|
710
|
+
offset = start.offset;
|
|
711
|
+
let pos = this.fromOffset(offset);
|
|
699
712
|
line = pos.line;
|
|
700
713
|
column = pos.col;
|
|
701
714
|
} else {
|
|
702
715
|
line = start.line;
|
|
703
716
|
column = start.column;
|
|
717
|
+
offset = this.fromLineAndColumn(line, column);
|
|
704
718
|
}
|
|
705
719
|
if (typeof end.offset === "number") {
|
|
706
|
-
|
|
720
|
+
endOffset = end.offset;
|
|
721
|
+
let pos = this.fromOffset(endOffset);
|
|
707
722
|
endLine = pos.line;
|
|
708
723
|
endColumn = pos.col;
|
|
709
724
|
} else {
|
|
710
725
|
endLine = end.line;
|
|
711
726
|
endColumn = end.column;
|
|
727
|
+
endOffset = this.fromLineAndColumn(end.line, end.column);
|
|
712
728
|
}
|
|
713
729
|
} else if (!column) {
|
|
714
|
-
|
|
730
|
+
offset = line;
|
|
731
|
+
let pos = this.fromOffset(offset);
|
|
715
732
|
line = pos.line;
|
|
716
733
|
column = pos.col;
|
|
734
|
+
} else {
|
|
735
|
+
offset = this.fromLineAndColumn(line, column);
|
|
717
736
|
}
|
|
718
737
|
let origin = this.origin(line, column, endLine, endColumn);
|
|
719
738
|
if (origin) {
|
|
@@ -741,7 +760,15 @@
|
|
|
741
760
|
opts.plugin,
|
|
742
761
|
);
|
|
743
762
|
}
|
|
744
|
-
result.input = {
|
|
763
|
+
result.input = {
|
|
764
|
+
column,
|
|
765
|
+
endColumn,
|
|
766
|
+
endLine,
|
|
767
|
+
endOffset,
|
|
768
|
+
line,
|
|
769
|
+
offset,
|
|
770
|
+
source: this.css,
|
|
771
|
+
};
|
|
745
772
|
if (this.file) {
|
|
746
773
|
if (pathToFileURL) {
|
|
747
774
|
result.input.url = pathToFileURL(this.file).toString();
|
|
@@ -750,21 +777,14 @@
|
|
|
750
777
|
}
|
|
751
778
|
return result;
|
|
752
779
|
}
|
|
780
|
+
fromLineAndColumn(line, column) {
|
|
781
|
+
let lineToIndex = getLineToIndex(this);
|
|
782
|
+
let index = lineToIndex[line - 1];
|
|
783
|
+
return index + column - 1;
|
|
784
|
+
}
|
|
753
785
|
fromOffset(offset) {
|
|
754
|
-
let
|
|
755
|
-
|
|
756
|
-
let lines = this.css.split("\n");
|
|
757
|
-
lineToIndex = new Array(lines.length);
|
|
758
|
-
let prevIndex = 0;
|
|
759
|
-
for (let i = 0, l = lines.length; i < l; i++) {
|
|
760
|
-
lineToIndex[i] = prevIndex;
|
|
761
|
-
prevIndex += lines[i].length + 1;
|
|
762
|
-
}
|
|
763
|
-
this[fromOffsetCache] = lineToIndex;
|
|
764
|
-
} else {
|
|
765
|
-
lineToIndex = this[fromOffsetCache];
|
|
766
|
-
}
|
|
767
|
-
lastLine = lineToIndex[lineToIndex.length - 1];
|
|
786
|
+
let lineToIndex = getLineToIndex(this);
|
|
787
|
+
let lastLine = lineToIndex[lineToIndex.length - 1];
|
|
768
788
|
let min = 0;
|
|
769
789
|
if (offset >= lastLine) {
|
|
770
790
|
min = lineToIndex.length - 1;
|
|
@@ -857,17 +877,17 @@
|
|
|
857
877
|
terminalHighlight.registerInput(Input);
|
|
858
878
|
}
|
|
859
879
|
},
|
|
860
|
-
|
|
880
|
+
833: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
861
881
|
"use strict";
|
|
862
|
-
let Container = __nccwpck_require__(
|
|
863
|
-
let Document = __nccwpck_require__(
|
|
864
|
-
let MapGenerator = __nccwpck_require__(
|
|
865
|
-
let parse = __nccwpck_require__(
|
|
866
|
-
let Result = __nccwpck_require__(
|
|
867
|
-
let Root = __nccwpck_require__(
|
|
868
|
-
let stringify = __nccwpck_require__(
|
|
869
|
-
let { isClean, my } = __nccwpck_require__(
|
|
870
|
-
let warnOnce = __nccwpck_require__(
|
|
882
|
+
let Container = __nccwpck_require__(322);
|
|
883
|
+
let Document = __nccwpck_require__(44);
|
|
884
|
+
let MapGenerator = __nccwpck_require__(119);
|
|
885
|
+
let parse = __nccwpck_require__(974);
|
|
886
|
+
let Result = __nccwpck_require__(776);
|
|
887
|
+
let Root = __nccwpck_require__(145);
|
|
888
|
+
let stringify = __nccwpck_require__(304);
|
|
889
|
+
let { isClean, my } = __nccwpck_require__(16);
|
|
890
|
+
let warnOnce = __nccwpck_require__(107);
|
|
871
891
|
const TYPE_TO_CLASS_NAME = {
|
|
872
892
|
atrule: "AtRule",
|
|
873
893
|
comment: "Comment",
|
|
@@ -1347,7 +1367,7 @@
|
|
|
1347
1367
|
Root.registerLazyResult(LazyResult);
|
|
1348
1368
|
Document.registerLazyResult(LazyResult);
|
|
1349
1369
|
},
|
|
1350
|
-
|
|
1370
|
+
729: (module) => {
|
|
1351
1371
|
"use strict";
|
|
1352
1372
|
let list = {
|
|
1353
1373
|
comma(string) {
|
|
@@ -1399,12 +1419,12 @@
|
|
|
1399
1419
|
module.exports = list;
|
|
1400
1420
|
list.default = list;
|
|
1401
1421
|
},
|
|
1402
|
-
|
|
1422
|
+
119: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1403
1423
|
"use strict";
|
|
1404
1424
|
let { dirname, relative, resolve, sep } = __nccwpck_require__(928);
|
|
1405
1425
|
let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(840);
|
|
1406
|
-
let { pathToFileURL } = __nccwpck_require__(
|
|
1407
|
-
let Input = __nccwpck_require__(
|
|
1426
|
+
let { pathToFileURL } = __nccwpck_require__(635);
|
|
1427
|
+
let Input = __nccwpck_require__(385);
|
|
1408
1428
|
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
1409
1429
|
let pathAvailable = Boolean(dirname && resolve && relative && sep);
|
|
1410
1430
|
class MapGenerator {
|
|
@@ -1721,13 +1741,13 @@
|
|
|
1721
1741
|
}
|
|
1722
1742
|
module.exports = MapGenerator;
|
|
1723
1743
|
},
|
|
1724
|
-
|
|
1744
|
+
470: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1725
1745
|
"use strict";
|
|
1726
|
-
let MapGenerator = __nccwpck_require__(
|
|
1727
|
-
let parse = __nccwpck_require__(
|
|
1728
|
-
const Result = __nccwpck_require__(
|
|
1729
|
-
let stringify = __nccwpck_require__(
|
|
1730
|
-
let warnOnce = __nccwpck_require__(
|
|
1746
|
+
let MapGenerator = __nccwpck_require__(119);
|
|
1747
|
+
let parse = __nccwpck_require__(974);
|
|
1748
|
+
const Result = __nccwpck_require__(776);
|
|
1749
|
+
let stringify = __nccwpck_require__(304);
|
|
1750
|
+
let warnOnce = __nccwpck_require__(107);
|
|
1731
1751
|
class NoWorkResult {
|
|
1732
1752
|
get content() {
|
|
1733
1753
|
return this.result.css;
|
|
@@ -1835,12 +1855,12 @@
|
|
|
1835
1855
|
module.exports = NoWorkResult;
|
|
1836
1856
|
NoWorkResult.default = NoWorkResult;
|
|
1837
1857
|
},
|
|
1838
|
-
|
|
1858
|
+
65: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1839
1859
|
"use strict";
|
|
1840
|
-
let CssSyntaxError = __nccwpck_require__(
|
|
1841
|
-
let Stringifier = __nccwpck_require__(
|
|
1842
|
-
let stringify = __nccwpck_require__(
|
|
1843
|
-
let { isClean, my } = __nccwpck_require__(
|
|
1860
|
+
let CssSyntaxError = __nccwpck_require__(767);
|
|
1861
|
+
let Stringifier = __nccwpck_require__(183);
|
|
1862
|
+
let stringify = __nccwpck_require__(304);
|
|
1863
|
+
let { isClean, my } = __nccwpck_require__(16);
|
|
1844
1864
|
function cloneNode(obj, parent) {
|
|
1845
1865
|
let cloned = new obj.constructor();
|
|
1846
1866
|
for (let i in obj) {
|
|
@@ -2011,7 +2031,7 @@
|
|
|
2011
2031
|
let index = this.parent.index(this);
|
|
2012
2032
|
return this.parent.nodes[index + 1];
|
|
2013
2033
|
}
|
|
2014
|
-
positionBy(opts) {
|
|
2034
|
+
positionBy(opts = {}) {
|
|
2015
2035
|
let pos = this.source.start;
|
|
2016
2036
|
if (opts.index) {
|
|
2017
2037
|
pos = this.positionInside(opts.index);
|
|
@@ -2046,26 +2066,38 @@
|
|
|
2046
2066
|
column += 1;
|
|
2047
2067
|
}
|
|
2048
2068
|
}
|
|
2049
|
-
return { column, line };
|
|
2069
|
+
return { column, line, offset: end };
|
|
2050
2070
|
}
|
|
2051
2071
|
prev() {
|
|
2052
2072
|
if (!this.parent) return undefined;
|
|
2053
2073
|
let index = this.parent.index(this);
|
|
2054
2074
|
return this.parent.nodes[index - 1];
|
|
2055
2075
|
}
|
|
2056
|
-
rangeBy(opts) {
|
|
2076
|
+
rangeBy(opts = {}) {
|
|
2077
|
+
let inputString =
|
|
2078
|
+
"document" in this.source.input
|
|
2079
|
+
? this.source.input.document
|
|
2080
|
+
: this.source.input.css;
|
|
2057
2081
|
let start = {
|
|
2058
2082
|
column: this.source.start.column,
|
|
2059
2083
|
line: this.source.start.line,
|
|
2084
|
+
offset: sourceOffset(inputString, this.source.start),
|
|
2060
2085
|
};
|
|
2061
2086
|
let end = this.source.end
|
|
2062
|
-
? {
|
|
2063
|
-
|
|
2087
|
+
? {
|
|
2088
|
+
column: this.source.end.column + 1,
|
|
2089
|
+
line: this.source.end.line,
|
|
2090
|
+
offset:
|
|
2091
|
+
typeof this.source.end.offset === "number"
|
|
2092
|
+
? this.source.end.offset
|
|
2093
|
+
: sourceOffset(inputString, this.source.end) + 1,
|
|
2094
|
+
}
|
|
2095
|
+
: {
|
|
2096
|
+
column: start.column + 1,
|
|
2097
|
+
line: start.line,
|
|
2098
|
+
offset: start.offset + 1,
|
|
2099
|
+
};
|
|
2064
2100
|
if (opts.word) {
|
|
2065
|
-
let inputString =
|
|
2066
|
-
"document" in this.source.input
|
|
2067
|
-
? this.source.input.document
|
|
2068
|
-
: this.source.input.css;
|
|
2069
2101
|
let stringRepresentation = inputString.slice(
|
|
2070
2102
|
sourceOffset(inputString, this.source.start),
|
|
2071
2103
|
sourceOffset(inputString, this.source.end),
|
|
@@ -2077,12 +2109,20 @@
|
|
|
2077
2109
|
}
|
|
2078
2110
|
} else {
|
|
2079
2111
|
if (opts.start) {
|
|
2080
|
-
start = {
|
|
2112
|
+
start = {
|
|
2113
|
+
column: opts.start.column,
|
|
2114
|
+
line: opts.start.line,
|
|
2115
|
+
offset: sourceOffset(inputString, opts.start),
|
|
2116
|
+
};
|
|
2081
2117
|
} else if (opts.index) {
|
|
2082
2118
|
start = this.positionInside(opts.index);
|
|
2083
2119
|
}
|
|
2084
2120
|
if (opts.end) {
|
|
2085
|
-
end = {
|
|
2121
|
+
end = {
|
|
2122
|
+
column: opts.end.column,
|
|
2123
|
+
line: opts.end.line,
|
|
2124
|
+
offset: sourceOffset(inputString, opts.end),
|
|
2125
|
+
};
|
|
2086
2126
|
} else if (typeof opts.endIndex === "number") {
|
|
2087
2127
|
end = this.positionInside(opts.endIndex);
|
|
2088
2128
|
} else if (opts.index) {
|
|
@@ -2093,7 +2133,11 @@
|
|
|
2093
2133
|
end.line < start.line ||
|
|
2094
2134
|
(end.line === start.line && end.column <= start.column)
|
|
2095
2135
|
) {
|
|
2096
|
-
end = {
|
|
2136
|
+
end = {
|
|
2137
|
+
column: start.column + 1,
|
|
2138
|
+
line: start.line,
|
|
2139
|
+
offset: start.offset + 1,
|
|
2140
|
+
};
|
|
2097
2141
|
}
|
|
2098
2142
|
return { end, start };
|
|
2099
2143
|
}
|
|
@@ -2157,6 +2201,7 @@
|
|
|
2157
2201
|
} else if (typeof value === "object" && value.toJSON) {
|
|
2158
2202
|
fixed[name] = value.toJSON(null, inputs);
|
|
2159
2203
|
} else if (name === "source") {
|
|
2204
|
+
if (value == null) continue;
|
|
2160
2205
|
let inputId = inputs.get(value.input);
|
|
2161
2206
|
if (inputId == null) {
|
|
2162
2207
|
inputId = inputsNextIndex;
|
|
@@ -2187,7 +2232,7 @@
|
|
|
2187
2232
|
});
|
|
2188
2233
|
return result;
|
|
2189
2234
|
}
|
|
2190
|
-
warn(result, text, opts) {
|
|
2235
|
+
warn(result, text, opts = {}) {
|
|
2191
2236
|
let data = { node: this };
|
|
2192
2237
|
for (let i in opts) data[i] = opts[i];
|
|
2193
2238
|
return result.warn(text, data);
|
|
@@ -2196,11 +2241,11 @@
|
|
|
2196
2241
|
module.exports = Node;
|
|
2197
2242
|
Node.default = Node;
|
|
2198
2243
|
},
|
|
2199
|
-
|
|
2244
|
+
974: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2200
2245
|
"use strict";
|
|
2201
|
-
let Container = __nccwpck_require__(
|
|
2202
|
-
let Input = __nccwpck_require__(
|
|
2203
|
-
let Parser = __nccwpck_require__(
|
|
2246
|
+
let Container = __nccwpck_require__(322);
|
|
2247
|
+
let Input = __nccwpck_require__(385);
|
|
2248
|
+
let Parser = __nccwpck_require__(718);
|
|
2204
2249
|
function parse(css, opts) {
|
|
2205
2250
|
let input = new Input(css, opts);
|
|
2206
2251
|
let parser = new Parser(input);
|
|
@@ -2235,14 +2280,14 @@
|
|
|
2235
2280
|
parse.default = parse;
|
|
2236
2281
|
Container.registerParse(parse);
|
|
2237
2282
|
},
|
|
2238
|
-
|
|
2283
|
+
718: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2239
2284
|
"use strict";
|
|
2240
|
-
let AtRule = __nccwpck_require__(
|
|
2241
|
-
let Comment = __nccwpck_require__(
|
|
2242
|
-
let Declaration = __nccwpck_require__(
|
|
2243
|
-
let Root = __nccwpck_require__(
|
|
2244
|
-
let Rule = __nccwpck_require__(
|
|
2245
|
-
let tokenizer = __nccwpck_require__(
|
|
2285
|
+
let AtRule = __nccwpck_require__(367);
|
|
2286
|
+
let Comment = __nccwpck_require__(668);
|
|
2287
|
+
let Declaration = __nccwpck_require__(493);
|
|
2288
|
+
let Root = __nccwpck_require__(145);
|
|
2289
|
+
let Rule = __nccwpck_require__(275);
|
|
2290
|
+
let tokenizer = __nccwpck_require__(348);
|
|
2246
2291
|
const SAFE_COMMENT_NEIGHBOR = { empty: true, space: true };
|
|
2247
2292
|
function findLastWithPosition(tokens) {
|
|
2248
2293
|
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
@@ -2762,26 +2807,26 @@
|
|
|
2762
2807
|
}
|
|
2763
2808
|
module.exports = Parser;
|
|
2764
2809
|
},
|
|
2765
|
-
|
|
2810
|
+
640: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2766
2811
|
"use strict";
|
|
2767
|
-
let AtRule = __nccwpck_require__(
|
|
2768
|
-
let Comment = __nccwpck_require__(
|
|
2769
|
-
let Container = __nccwpck_require__(
|
|
2770
|
-
let CssSyntaxError = __nccwpck_require__(
|
|
2771
|
-
let Declaration = __nccwpck_require__(
|
|
2772
|
-
let Document = __nccwpck_require__(
|
|
2773
|
-
let fromJSON = __nccwpck_require__(
|
|
2774
|
-
let Input = __nccwpck_require__(
|
|
2775
|
-
let LazyResult = __nccwpck_require__(
|
|
2776
|
-
let list = __nccwpck_require__(
|
|
2777
|
-
let Node = __nccwpck_require__(
|
|
2778
|
-
let parse = __nccwpck_require__(
|
|
2779
|
-
let Processor = __nccwpck_require__(
|
|
2780
|
-
let Result = __nccwpck_require__(
|
|
2781
|
-
let Root = __nccwpck_require__(
|
|
2782
|
-
let Rule = __nccwpck_require__(
|
|
2783
|
-
let stringify = __nccwpck_require__(
|
|
2784
|
-
let Warning = __nccwpck_require__(
|
|
2812
|
+
let AtRule = __nccwpck_require__(367);
|
|
2813
|
+
let Comment = __nccwpck_require__(668);
|
|
2814
|
+
let Container = __nccwpck_require__(322);
|
|
2815
|
+
let CssSyntaxError = __nccwpck_require__(767);
|
|
2816
|
+
let Declaration = __nccwpck_require__(493);
|
|
2817
|
+
let Document = __nccwpck_require__(44);
|
|
2818
|
+
let fromJSON = __nccwpck_require__(615);
|
|
2819
|
+
let Input = __nccwpck_require__(385);
|
|
2820
|
+
let LazyResult = __nccwpck_require__(833);
|
|
2821
|
+
let list = __nccwpck_require__(729);
|
|
2822
|
+
let Node = __nccwpck_require__(65);
|
|
2823
|
+
let parse = __nccwpck_require__(974);
|
|
2824
|
+
let Processor = __nccwpck_require__(673);
|
|
2825
|
+
let Result = __nccwpck_require__(776);
|
|
2826
|
+
let Root = __nccwpck_require__(145);
|
|
2827
|
+
let Rule = __nccwpck_require__(275);
|
|
2828
|
+
let stringify = __nccwpck_require__(304);
|
|
2829
|
+
let Warning = __nccwpck_require__(449);
|
|
2785
2830
|
function postcss(...plugins) {
|
|
2786
2831
|
if (plugins.length === 1 && Array.isArray(plugins[0])) {
|
|
2787
2832
|
plugins = plugins[0];
|
|
@@ -2850,7 +2895,7 @@
|
|
|
2850
2895
|
module.exports = postcss;
|
|
2851
2896
|
postcss.default = postcss;
|
|
2852
2897
|
},
|
|
2853
|
-
|
|
2898
|
+
583: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2854
2899
|
"use strict";
|
|
2855
2900
|
let { existsSync, readFileSync } = __nccwpck_require__(896);
|
|
2856
2901
|
let { dirname, join } = __nccwpck_require__(928);
|
|
@@ -2976,15 +3021,15 @@
|
|
|
2976
3021
|
module.exports = PreviousMap;
|
|
2977
3022
|
PreviousMap.default = PreviousMap;
|
|
2978
3023
|
},
|
|
2979
|
-
|
|
3024
|
+
673: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2980
3025
|
"use strict";
|
|
2981
|
-
let Document = __nccwpck_require__(
|
|
2982
|
-
let LazyResult = __nccwpck_require__(
|
|
2983
|
-
let NoWorkResult = __nccwpck_require__(
|
|
2984
|
-
let Root = __nccwpck_require__(
|
|
3026
|
+
let Document = __nccwpck_require__(44);
|
|
3027
|
+
let LazyResult = __nccwpck_require__(833);
|
|
3028
|
+
let NoWorkResult = __nccwpck_require__(470);
|
|
3029
|
+
let Root = __nccwpck_require__(145);
|
|
2985
3030
|
class Processor {
|
|
2986
3031
|
constructor(plugins = []) {
|
|
2987
|
-
this.version = "8.5.
|
|
3032
|
+
this.version = "8.5.4";
|
|
2988
3033
|
this.plugins = this.normalize(plugins);
|
|
2989
3034
|
}
|
|
2990
3035
|
normalize(plugins) {
|
|
@@ -3037,9 +3082,9 @@
|
|
|
3037
3082
|
Root.registerProcessor(Processor);
|
|
3038
3083
|
Document.registerProcessor(Processor);
|
|
3039
3084
|
},
|
|
3040
|
-
|
|
3085
|
+
776: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3041
3086
|
"use strict";
|
|
3042
|
-
let Warning = __nccwpck_require__(
|
|
3087
|
+
let Warning = __nccwpck_require__(449);
|
|
3043
3088
|
class Result {
|
|
3044
3089
|
get content() {
|
|
3045
3090
|
return this.css;
|
|
@@ -3049,7 +3094,7 @@
|
|
|
3049
3094
|
this.messages = [];
|
|
3050
3095
|
this.root = root;
|
|
3051
3096
|
this.opts = opts;
|
|
3052
|
-
this.css =
|
|
3097
|
+
this.css = "";
|
|
3053
3098
|
this.map = undefined;
|
|
3054
3099
|
}
|
|
3055
3100
|
toString() {
|
|
@@ -3072,9 +3117,9 @@
|
|
|
3072
3117
|
module.exports = Result;
|
|
3073
3118
|
Result.default = Result;
|
|
3074
3119
|
},
|
|
3075
|
-
|
|
3120
|
+
145: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3076
3121
|
"use strict";
|
|
3077
|
-
let Container = __nccwpck_require__(
|
|
3122
|
+
let Container = __nccwpck_require__(322);
|
|
3078
3123
|
let LazyResult, Processor;
|
|
3079
3124
|
class Root extends Container {
|
|
3080
3125
|
constructor(defaults) {
|
|
@@ -3121,10 +3166,10 @@
|
|
|
3121
3166
|
Root.default = Root;
|
|
3122
3167
|
Container.registerRoot(Root);
|
|
3123
3168
|
},
|
|
3124
|
-
|
|
3169
|
+
275: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3125
3170
|
"use strict";
|
|
3126
|
-
let Container = __nccwpck_require__(
|
|
3127
|
-
let list = __nccwpck_require__(
|
|
3171
|
+
let Container = __nccwpck_require__(322);
|
|
3172
|
+
let list = __nccwpck_require__(729);
|
|
3128
3173
|
class Rule extends Container {
|
|
3129
3174
|
get selectors() {
|
|
3130
3175
|
return list.comma(this.selector);
|
|
@@ -3144,7 +3189,7 @@
|
|
|
3144
3189
|
Rule.default = Rule;
|
|
3145
3190
|
Container.registerRule(Rule);
|
|
3146
3191
|
},
|
|
3147
|
-
|
|
3192
|
+
183: (module) => {
|
|
3148
3193
|
"use strict";
|
|
3149
3194
|
const DEFAULT_RAW = {
|
|
3150
3195
|
after: "\n",
|
|
@@ -3447,9 +3492,9 @@
|
|
|
3447
3492
|
module.exports = Stringifier;
|
|
3448
3493
|
Stringifier.default = Stringifier;
|
|
3449
3494
|
},
|
|
3450
|
-
|
|
3495
|
+
304: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3451
3496
|
"use strict";
|
|
3452
|
-
let Stringifier = __nccwpck_require__(
|
|
3497
|
+
let Stringifier = __nccwpck_require__(183);
|
|
3453
3498
|
function stringify(node, builder) {
|
|
3454
3499
|
let str = new Stringifier(builder);
|
|
3455
3500
|
str.stringify(node);
|
|
@@ -3457,15 +3502,15 @@
|
|
|
3457
3502
|
module.exports = stringify;
|
|
3458
3503
|
stringify.default = stringify;
|
|
3459
3504
|
},
|
|
3460
|
-
|
|
3505
|
+
16: (module) => {
|
|
3461
3506
|
"use strict";
|
|
3462
3507
|
module.exports.isClean = Symbol("isClean");
|
|
3463
3508
|
module.exports.my = Symbol("my");
|
|
3464
3509
|
},
|
|
3465
|
-
|
|
3510
|
+
124: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3466
3511
|
"use strict";
|
|
3467
3512
|
let pico = __nccwpck_require__(717);
|
|
3468
|
-
let tokenizer = __nccwpck_require__(
|
|
3513
|
+
let tokenizer = __nccwpck_require__(348);
|
|
3469
3514
|
let Input;
|
|
3470
3515
|
function registerInput(dependant) {
|
|
3471
3516
|
Input = dependant;
|
|
@@ -3523,7 +3568,7 @@
|
|
|
3523
3568
|
terminalHighlight.registerInput = registerInput;
|
|
3524
3569
|
module.exports = terminalHighlight;
|
|
3525
3570
|
},
|
|
3526
|
-
|
|
3571
|
+
348: (module) => {
|
|
3527
3572
|
"use strict";
|
|
3528
3573
|
const SINGLE_QUOTE = "'".charCodeAt(0);
|
|
3529
3574
|
const DOUBLE_QUOTE = '"'.charCodeAt(0);
|
|
@@ -3757,7 +3802,7 @@
|
|
|
3757
3802
|
return { back, endOfFile, nextToken, position };
|
|
3758
3803
|
};
|
|
3759
3804
|
},
|
|
3760
|
-
|
|
3805
|
+
107: (module) => {
|
|
3761
3806
|
"use strict";
|
|
3762
3807
|
let printed = {};
|
|
3763
3808
|
module.exports = function warnOnce(message) {
|
|
@@ -3768,7 +3813,7 @@
|
|
|
3768
3813
|
}
|
|
3769
3814
|
};
|
|
3770
3815
|
},
|
|
3771
|
-
|
|
3816
|
+
449: (module) => {
|
|
3772
3817
|
"use strict";
|
|
3773
3818
|
class Warning {
|
|
3774
3819
|
constructor(text, opts = {}) {
|
|
@@ -5958,11 +6003,11 @@
|
|
|
5958
6003
|
"use strict";
|
|
5959
6004
|
module.exports = require("path");
|
|
5960
6005
|
},
|
|
5961
|
-
|
|
6006
|
+
635: (module) => {
|
|
5962
6007
|
"use strict";
|
|
5963
6008
|
module.exports = require("url");
|
|
5964
6009
|
},
|
|
5965
|
-
|
|
6010
|
+
135: (module) => {
|
|
5966
6011
|
let urlAlphabet =
|
|
5967
6012
|
"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
5968
6013
|
let customAlphabet =
|
|
@@ -6008,6 +6053,6 @@
|
|
|
6008
6053
|
}
|
|
6009
6054
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6010
6055
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6011
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6056
|
+
var __webpack_exports__ = __nccwpck_require__(640);
|
|
6012
6057
|
module.exports = __webpack_exports__;
|
|
6013
6058
|
})();
|