@rsbuild/core 1.0.5 → 1.0.7
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/compiled/browserslist/index.d.ts +2 -0
- package/compiled/browserslist/index.js +52 -30
- package/compiled/browserslist/package.json +1 -1
- package/compiled/css-loader/index.js +23 -27
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss/index.js +9 -90
- package/compiled/postcss-loader/index.js +9 -12
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/index.cjs +6 -47
- package/dist/index.js +8 -49
- package/dist-types/configChain.d.ts +0 -8
- package/dist-types/types/thirdParty.d.ts +0 -5
- package/package.json +4 -4
- package/types.d.ts +19 -0
- package/compiled/css-loader/semver.js +0 -1
- package/compiled/postcss-loader/semver.js +0 -1
|
@@ -174,6 +174,8 @@ declare namespace browserslist {
|
|
|
174
174
|
|
|
175
175
|
function findConfig(...pathSegments: string[]): Config | undefined
|
|
176
176
|
|
|
177
|
+
function findConfigFile(...pathSegments: string[]): string | undefined
|
|
178
|
+
|
|
177
179
|
interface LoadConfigOptions {
|
|
178
180
|
config?: string
|
|
179
181
|
path?: string
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
553: (module) => {
|
|
4
4
|
function BrowserslistError(message) {
|
|
5
5
|
this.name = "BrowserslistError";
|
|
6
6
|
this.message = message;
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
BrowserslistError.prototype = Error.prototype;
|
|
13
13
|
module.exports = BrowserslistError;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
89: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
16
16
|
var jsReleases = __nccwpck_require__(942);
|
|
17
17
|
var agents = __nccwpck_require__(768).agents;
|
|
18
|
+
var e2c = __nccwpck_require__(677);
|
|
18
19
|
var jsEOL = __nccwpck_require__(248);
|
|
19
20
|
var path = __nccwpck_require__(17);
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var parse = __nccwpck_require__(
|
|
23
|
-
var env = __nccwpck_require__(503);
|
|
21
|
+
var BrowserslistError = __nccwpck_require__(553);
|
|
22
|
+
var env = __nccwpck_require__(447);
|
|
23
|
+
var parse = __nccwpck_require__(656);
|
|
24
24
|
var YEAR = 365.259641 * 24 * 60 * 60 * 1e3;
|
|
25
25
|
var ANDROID_EVERGREEN_FIRST = "37";
|
|
26
26
|
var OP_MOB_BLINK_FIRST = 14;
|
|
@@ -453,6 +453,7 @@
|
|
|
453
453
|
browserslist.clearCaches = env.clearCaches;
|
|
454
454
|
browserslist.parseConfig = env.parseConfig;
|
|
455
455
|
browserslist.readConfig = env.readConfig;
|
|
456
|
+
browserslist.findConfigFile = env.findConfigFile;
|
|
456
457
|
browserslist.findConfig = env.findConfig;
|
|
457
458
|
browserslist.loadConfig = env.loadConfig;
|
|
458
459
|
browserslist.coverage = function (browsers, stats) {
|
|
@@ -1181,12 +1182,12 @@
|
|
|
1181
1182
|
})();
|
|
1182
1183
|
module.exports = browserslist;
|
|
1183
1184
|
},
|
|
1184
|
-
|
|
1185
|
+
447: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1185
1186
|
var feature = __nccwpck_require__(711)["default"];
|
|
1186
1187
|
var region = __nccwpck_require__(225)["default"];
|
|
1187
|
-
var path = __nccwpck_require__(17);
|
|
1188
1188
|
var fs = __nccwpck_require__(147);
|
|
1189
|
-
var
|
|
1189
|
+
var path = __nccwpck_require__(17);
|
|
1190
|
+
var BrowserslistError = __nccwpck_require__(553);
|
|
1190
1191
|
var IS_SECTION = /^\s*\[(.+)]\s*$/;
|
|
1191
1192
|
var CONFIG_PATTERN = /^browserslist-config-/;
|
|
1192
1193
|
var SCOPED_CONFIG__PATTERN =
|
|
@@ -1297,6 +1298,13 @@
|
|
|
1297
1298
|
}
|
|
1298
1299
|
return list;
|
|
1299
1300
|
}
|
|
1301
|
+
function parsePackageOrReadConfig(file) {
|
|
1302
|
+
if (path.basename(file) === "package.json") {
|
|
1303
|
+
return parsePackage(file);
|
|
1304
|
+
} else {
|
|
1305
|
+
return module.exports.readConfig(file);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1300
1308
|
function latestReleaseTime(agents) {
|
|
1301
1309
|
var latest = 0;
|
|
1302
1310
|
for (var name in agents) {
|
|
@@ -1410,11 +1418,7 @@
|
|
|
1410
1418
|
return process.env.BROWSERSLIST;
|
|
1411
1419
|
} else if (opts.config || process.env.BROWSERSLIST_CONFIG) {
|
|
1412
1420
|
var file = opts.config || process.env.BROWSERSLIST_CONFIG;
|
|
1413
|
-
|
|
1414
|
-
return pickEnv(parsePackage(file), opts);
|
|
1415
|
-
} else {
|
|
1416
|
-
return pickEnv(module.exports.readConfig(file), opts);
|
|
1417
|
-
}
|
|
1421
|
+
return pickEnv(parsePackageOrReadConfig(file), opts);
|
|
1418
1422
|
} else if (opts.path) {
|
|
1419
1423
|
return pickEnv(module.exports.findConfig(opts.path), opts);
|
|
1420
1424
|
} else {
|
|
@@ -1500,14 +1504,8 @@
|
|
|
1500
1504
|
}
|
|
1501
1505
|
return module.exports.parseConfig(fs.readFileSync(file));
|
|
1502
1506
|
},
|
|
1503
|
-
|
|
1504
|
-
from = path.resolve(from);
|
|
1505
|
-
var passed = [];
|
|
1507
|
+
findConfigFile: function findConfigFile(from) {
|
|
1506
1508
|
var resolved = eachParent(from, function (dir) {
|
|
1507
|
-
if (dir in configCache) {
|
|
1508
|
-
return configCache[dir];
|
|
1509
|
-
}
|
|
1510
|
-
passed.push(dir);
|
|
1511
1509
|
var config = path.join(dir, "browserslist");
|
|
1512
1510
|
var pkg = path.join(dir, "package.json");
|
|
1513
1511
|
var rc = path.join(dir, ".browserslistrc");
|
|
@@ -1537,16 +1535,33 @@
|
|
|
1537
1535
|
dir + " contains both .browserslistrc and browserslist",
|
|
1538
1536
|
);
|
|
1539
1537
|
} else if (isFile(config)) {
|
|
1540
|
-
return
|
|
1538
|
+
return config;
|
|
1541
1539
|
} else if (isFile(rc)) {
|
|
1542
|
-
return
|
|
1543
|
-
} else {
|
|
1544
|
-
return
|
|
1540
|
+
return rc;
|
|
1541
|
+
} else if (pkgBrowserslist) {
|
|
1542
|
+
return pkg;
|
|
1545
1543
|
}
|
|
1546
1544
|
});
|
|
1545
|
+
return resolved;
|
|
1546
|
+
},
|
|
1547
|
+
findConfig: function findConfig(from) {
|
|
1548
|
+
from = path.resolve(from);
|
|
1549
|
+
var fromDir = isFile(from) ? path.dirname(from) : from;
|
|
1550
|
+
if (fromDir in configCache) {
|
|
1551
|
+
return configCache[fromDir];
|
|
1552
|
+
}
|
|
1553
|
+
var resolved;
|
|
1554
|
+
var configFile = this.findConfigFile(from);
|
|
1555
|
+
if (configFile) {
|
|
1556
|
+
resolved = parsePackageOrReadConfig(configFile);
|
|
1557
|
+
}
|
|
1547
1558
|
if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
|
|
1548
|
-
|
|
1559
|
+
var configDir = configFile && path.dirname(configFile);
|
|
1560
|
+
eachParent(from, function (dir) {
|
|
1549
1561
|
configCache[dir] = resolved;
|
|
1562
|
+
if (dir === configDir) {
|
|
1563
|
+
return null;
|
|
1564
|
+
}
|
|
1550
1565
|
});
|
|
1551
1566
|
}
|
|
1552
1567
|
return resolved;
|
|
@@ -1578,7 +1593,7 @@
|
|
|
1578
1593
|
env: process.env,
|
|
1579
1594
|
};
|
|
1580
1595
|
},
|
|
1581
|
-
|
|
1596
|
+
656: (module) => {
|
|
1582
1597
|
var AND_REGEXP = /^\s+and\s+(.*)/i;
|
|
1583
1598
|
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
|
|
1584
1599
|
function flatten(array) {
|
|
@@ -1588,7 +1603,7 @@
|
|
|
1588
1603
|
}, []);
|
|
1589
1604
|
}
|
|
1590
1605
|
function find(string, predicate) {
|
|
1591
|
-
for (var
|
|
1606
|
+
for (var max = string.length, n = 1; n <= max; n++) {
|
|
1592
1607
|
var parsed = string.substr(-n, n);
|
|
1593
1608
|
if (predicate(parsed, n, max)) {
|
|
1594
1609
|
return string.slice(0, -n);
|
|
@@ -1651,7 +1666,7 @@
|
|
|
1651
1666
|
);
|
|
1652
1667
|
};
|
|
1653
1668
|
},
|
|
1654
|
-
|
|
1669
|
+
677: (module) => {
|
|
1655
1670
|
module.exports = {
|
|
1656
1671
|
"0.20": "39",
|
|
1657
1672
|
0.21: "41",
|
|
@@ -1809,11 +1824,18 @@
|
|
|
1809
1824
|
30.1: "124",
|
|
1810
1825
|
30.2: "124",
|
|
1811
1826
|
30.3: "124",
|
|
1827
|
+
30.4: "124",
|
|
1828
|
+
30.5: "124",
|
|
1812
1829
|
"31.0": "126",
|
|
1813
1830
|
31.1: "126",
|
|
1814
1831
|
31.2: "126",
|
|
1815
1832
|
31.3: "126",
|
|
1833
|
+
31.4: "126",
|
|
1834
|
+
31.5: "126",
|
|
1835
|
+
31.6: "126",
|
|
1816
1836
|
"32.0": "128",
|
|
1837
|
+
32.1: "128",
|
|
1838
|
+
"33.0": "130",
|
|
1817
1839
|
};
|
|
1818
1840
|
},
|
|
1819
1841
|
768: (module) => {
|
|
@@ -1871,6 +1893,6 @@
|
|
|
1871
1893
|
}
|
|
1872
1894
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1873
1895
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1874
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1896
|
+
var __webpack_exports__ = __nccwpck_require__(89);
|
|
1875
1897
|
module.exports = __webpack_exports__;
|
|
1876
1898
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.
|
|
1
|
+
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.0","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
8976: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(1496);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(3013).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
1496: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(9961));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(3360));
|
|
16
|
-
var _semver =
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
16
|
+
var _semver = { satisfies: () => true };
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(9359));
|
|
18
|
+
var _plugins = __nccwpck_require__(82);
|
|
19
|
+
var _utils = __nccwpck_require__(3013);
|
|
20
20
|
function _interopRequireDefault(obj) {
|
|
21
21
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
22
|
}
|
|
23
23
|
async function loader(content, map, meta) {
|
|
24
|
-
const rawOptions = this.getOptions();
|
|
24
|
+
const rawOptions = this.getOptions(_options.default);
|
|
25
25
|
const callback = this.async();
|
|
26
26
|
if (
|
|
27
27
|
this._compiler &&
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
}),
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
if (meta
|
|
134
|
+
if (meta) {
|
|
135
135
|
const { ast } = meta;
|
|
136
136
|
if (
|
|
137
137
|
ast &&
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
82: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
247
247
|
"use strict";
|
|
248
248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
249
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -265,22 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(6509),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(4310),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4758));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
4310: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
exports["default"] = void 0;
|
|
282
282
|
var _icssUtils = __nccwpck_require__(8406);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(3013);
|
|
284
284
|
const plugin = (options = {}) => ({
|
|
285
285
|
postcssPlugin: "postcss-icss-parser",
|
|
286
286
|
async OnceExit(root) {
|
|
@@ -379,14 +379,14 @@
|
|
|
379
379
|
plugin.postcss = true;
|
|
380
380
|
var _default = (exports["default"] = plugin);
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
6509: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
383
|
"use strict";
|
|
384
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
385
|
exports["default"] = void 0;
|
|
386
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
387
|
__nccwpck_require__(7555),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(3013);
|
|
390
390
|
function _interopRequireDefault(obj) {
|
|
391
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
392
392
|
}
|
|
@@ -691,14 +691,14 @@
|
|
|
691
691
|
plugin.postcss = true;
|
|
692
692
|
var _default = (exports["default"] = plugin);
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
4758: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
697
|
exports["default"] = void 0;
|
|
698
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
699
|
__nccwpck_require__(7555),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(3013);
|
|
702
702
|
function _interopRequireDefault(obj) {
|
|
703
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
704
704
|
}
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
plugin.postcss = true;
|
|
1042
1042
|
var _default = (exports["default"] = plugin);
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
3013: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1045
|
"use strict";
|
|
1046
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7948,10 +7948,6 @@
|
|
|
7948
7948
|
"use strict";
|
|
7949
7949
|
module.exports = require("../postcss");
|
|
7950
7950
|
},
|
|
7951
|
-
938: (module) => {
|
|
7952
|
-
"use strict";
|
|
7953
|
-
module.exports = require("./semver");
|
|
7954
|
-
},
|
|
7955
7951
|
1017: (module) => {
|
|
7956
7952
|
"use strict";
|
|
7957
7953
|
module.exports = require("path");
|
|
@@ -7964,7 +7960,7 @@
|
|
|
7964
7960
|
"use strict";
|
|
7965
7961
|
module.exports = require("util");
|
|
7966
7962
|
},
|
|
7967
|
-
|
|
7963
|
+
9359: (module) => {
|
|
7968
7964
|
"use strict";
|
|
7969
7965
|
module.exports = JSON.parse(
|
|
7970
7966
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
@@ -7999,6 +7995,6 @@
|
|
|
7999
7995
|
}
|
|
8000
7996
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8001
7997
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8002
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
7998
|
+
var __webpack_exports__ = __nccwpck_require__(8976);
|
|
8003
7999
|
module.exports = __webpack_exports__;
|
|
8004
8000
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
202: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(444);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
}
|
|
305
305
|
module.exports = { CachedChildCompilation };
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
444: (module) => {
|
|
308
308
|
"use strict";
|
|
309
309
|
class HtmlWebpackChildCompiler {
|
|
310
310
|
constructor(templates) {
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
module.exports = { HtmlWebpackChildCompiler };
|
|
475
475
|
},
|
|
476
|
-
|
|
476
|
+
617: (module) => {
|
|
477
477
|
"use strict";
|
|
478
478
|
module.exports = {};
|
|
479
479
|
module.exports.none = (chunks) => chunks;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
};
|
|
493
493
|
module.exports.auto = module.exports.none;
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
211: (module) => {
|
|
496
496
|
"use strict";
|
|
497
497
|
module.exports = function (err) {
|
|
498
498
|
return {
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
},
|
|
516
|
-
|
|
516
|
+
395: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
517
517
|
"use strict";
|
|
518
518
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
|
|
519
519
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
}
|
|
540
540
|
module.exports = { getHtmlRspackPluginHooks };
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
634: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
93: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
611
611
|
"use strict";
|
|
612
612
|
const promisify = __nccwpck_require__(837).promisify;
|
|
613
613
|
const vm = __nccwpck_require__(144);
|
|
614
614
|
const fs = __nccwpck_require__(147);
|
|
615
615
|
const path = __nccwpck_require__(17);
|
|
616
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
616
|
+
const { CachedChildCompilation } = __nccwpck_require__(202);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(634);
|
|
619
|
+
const prettyError = __nccwpck_require__(211);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(617);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(395).getHtmlRspackPluginHooks;
|
|
623
623
|
class HtmlRspackPlugin {
|
|
624
624
|
constructor(userOptions = {}) {
|
|
625
625
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1577,6 +1577,6 @@
|
|
|
1577
1577
|
}
|
|
1578
1578
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1579
1579
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1580
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1580
|
+
var __webpack_exports__ = __nccwpck_require__(93);
|
|
1581
1581
|
module.exports = __webpack_exports__;
|
|
1582
1582
|
})();
|
|
@@ -1,86 +1,5 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
78: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
|
-
let argv = process.argv || [],
|
|
5
|
-
env = process.env;
|
|
6
|
-
let isColorSupported =
|
|
7
|
-
!("NO_COLOR" in env || argv.includes("--no-color")) &&
|
|
8
|
-
("FORCE_COLOR" in env ||
|
|
9
|
-
argv.includes("--color") ||
|
|
10
|
-
process.platform === "win32" ||
|
|
11
|
-
(require != null &&
|
|
12
|
-
__nccwpck_require__(224).isatty(1) &&
|
|
13
|
-
env.TERM !== "dumb") ||
|
|
14
|
-
"CI" in env);
|
|
15
|
-
let formatter =
|
|
16
|
-
(open, close, replace = open) =>
|
|
17
|
-
(input) => {
|
|
18
|
-
let string = "" + input;
|
|
19
|
-
let index = string.indexOf(close, open.length);
|
|
20
|
-
return ~index
|
|
21
|
-
? open + replaceClose(string, close, replace, index) + close
|
|
22
|
-
: open + string + close;
|
|
23
|
-
};
|
|
24
|
-
let replaceClose = (string, close, replace, index) => {
|
|
25
|
-
let result = "";
|
|
26
|
-
let cursor = 0;
|
|
27
|
-
do {
|
|
28
|
-
result += string.substring(cursor, index) + replace;
|
|
29
|
-
cursor = index + close.length;
|
|
30
|
-
index = string.indexOf(close, cursor);
|
|
31
|
-
} while (~index);
|
|
32
|
-
return result + string.substring(cursor);
|
|
33
|
-
};
|
|
34
|
-
let createColors = (enabled = isColorSupported) => {
|
|
35
|
-
let init = enabled ? formatter : () => String;
|
|
36
|
-
return {
|
|
37
|
-
isColorSupported: enabled,
|
|
38
|
-
reset: init("[0m", "[0m"),
|
|
39
|
-
bold: init("[1m", "[22m", "[22m[1m"),
|
|
40
|
-
dim: init("[2m", "[22m", "[22m[2m"),
|
|
41
|
-
italic: init("[3m", "[23m"),
|
|
42
|
-
underline: init("[4m", "[24m"),
|
|
43
|
-
inverse: init("[7m", "[27m"),
|
|
44
|
-
hidden: init("[8m", "[28m"),
|
|
45
|
-
strikethrough: init("[9m", "[29m"),
|
|
46
|
-
black: init("[30m", "[39m"),
|
|
47
|
-
red: init("[31m", "[39m"),
|
|
48
|
-
green: init("[32m", "[39m"),
|
|
49
|
-
yellow: init("[33m", "[39m"),
|
|
50
|
-
blue: init("[34m", "[39m"),
|
|
51
|
-
magenta: init("[35m", "[39m"),
|
|
52
|
-
cyan: init("[36m", "[39m"),
|
|
53
|
-
white: init("[37m", "[39m"),
|
|
54
|
-
gray: init("[90m", "[39m"),
|
|
55
|
-
bgBlack: init("[40m", "[49m"),
|
|
56
|
-
bgRed: init("[41m", "[49m"),
|
|
57
|
-
bgGreen: init("[42m", "[49m"),
|
|
58
|
-
bgYellow: init("[43m", "[49m"),
|
|
59
|
-
bgBlue: init("[44m", "[49m"),
|
|
60
|
-
bgMagenta: init("[45m", "[49m"),
|
|
61
|
-
bgCyan: init("[46m", "[49m"),
|
|
62
|
-
bgWhite: init("[47m", "[49m"),
|
|
63
|
-
blackBright: init("[90m", "[39m"),
|
|
64
|
-
redBright: init("[91m", "[39m"),
|
|
65
|
-
greenBright: init("[92m", "[39m"),
|
|
66
|
-
yellowBright: init("[93m", "[39m"),
|
|
67
|
-
blueBright: init("[94m", "[39m"),
|
|
68
|
-
magentaBright: init("[95m", "[39m"),
|
|
69
|
-
cyanBright: init("[96m", "[39m"),
|
|
70
|
-
whiteBright: init("[97m", "[39m"),
|
|
71
|
-
bgBlackBright: init("[100m", "[49m"),
|
|
72
|
-
bgRedBright: init("[101m", "[49m"),
|
|
73
|
-
bgGreenBright: init("[102m", "[49m"),
|
|
74
|
-
bgYellowBright: init("[103m", "[49m"),
|
|
75
|
-
bgBlueBright: init("[104m", "[49m"),
|
|
76
|
-
bgMagentaBright: init("[105m", "[49m"),
|
|
77
|
-
bgCyanBright: init("[106m", "[49m"),
|
|
78
|
-
bgWhiteBright: init("[107m", "[49m"),
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
module.exports = createColors();
|
|
82
|
-
module.exports.createColors = createColors;
|
|
83
|
-
},
|
|
84
3
|
135: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
85
4
|
"use strict";
|
|
86
5
|
let Container = __nccwpck_require__(208);
|
|
@@ -500,8 +419,8 @@
|
|
|
500
419
|
},
|
|
501
420
|
873: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
502
421
|
"use strict";
|
|
503
|
-
let pico = __nccwpck_require__(
|
|
504
|
-
let terminalHighlight = __nccwpck_require__(
|
|
422
|
+
let pico = __nccwpck_require__(272);
|
|
423
|
+
let terminalHighlight = __nccwpck_require__(202);
|
|
505
424
|
class CssSyntaxError extends Error {
|
|
506
425
|
constructor(message, line, column, source, file, plugin) {
|
|
507
426
|
super(message);
|
|
@@ -721,7 +640,7 @@
|
|
|
721
640
|
let { fileURLToPath, pathToFileURL } = __nccwpck_require__(310);
|
|
722
641
|
let CssSyntaxError = __nccwpck_require__(873);
|
|
723
642
|
let PreviousMap = __nccwpck_require__(261);
|
|
724
|
-
let terminalHighlight = __nccwpck_require__(
|
|
643
|
+
let terminalHighlight = __nccwpck_require__(202);
|
|
725
644
|
let fromOffsetCache = Symbol("fromOffsetCache");
|
|
726
645
|
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
727
646
|
let pathAvailable = Boolean(resolve && isAbsolute);
|
|
@@ -3503,9 +3422,9 @@
|
|
|
3503
3422
|
module.exports.isClean = Symbol("isClean");
|
|
3504
3423
|
module.exports.my = Symbol("my");
|
|
3505
3424
|
},
|
|
3506
|
-
|
|
3425
|
+
202: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3507
3426
|
"use strict";
|
|
3508
|
-
let pico = __nccwpck_require__(
|
|
3427
|
+
let pico = __nccwpck_require__(272);
|
|
3509
3428
|
let tokenizer = __nccwpck_require__(155);
|
|
3510
3429
|
let Input;
|
|
3511
3430
|
function registerInput(dependant) {
|
|
@@ -5987,6 +5906,10 @@
|
|
|
5987
5906
|
exports.SourceMapConsumer = __nccwpck_require__(9).SourceMapConsumer;
|
|
5988
5907
|
exports.SourceNode = __nccwpck_require__(835).SourceNode;
|
|
5989
5908
|
},
|
|
5909
|
+
272: (module) => {
|
|
5910
|
+
"use strict";
|
|
5911
|
+
module.exports = require("../picocolors");
|
|
5912
|
+
},
|
|
5990
5913
|
147: (module) => {
|
|
5991
5914
|
"use strict";
|
|
5992
5915
|
module.exports = require("fs");
|
|
@@ -5995,10 +5918,6 @@
|
|
|
5995
5918
|
"use strict";
|
|
5996
5919
|
module.exports = require("path");
|
|
5997
5920
|
},
|
|
5998
|
-
224: (module) => {
|
|
5999
|
-
"use strict";
|
|
6000
|
-
module.exports = require("tty");
|
|
6001
|
-
},
|
|
6002
5921
|
310: (module) => {
|
|
6003
5922
|
"use strict";
|
|
6004
5923
|
module.exports = require("url");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
850: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(135)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
135: (__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 _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
12
12
|
var _package = _interopRequireDefault(__nccwpck_require__(360));
|
|
13
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
14
|
-
var _utils = __nccwpck_require__(
|
|
13
|
+
var _options = _interopRequireDefault(__nccwpck_require__(226));
|
|
14
|
+
var _utils = __nccwpck_require__(384);
|
|
15
15
|
function _interopRequireDefault(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
17
17
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
meta &&
|
|
83
83
|
meta.ast &&
|
|
84
84
|
meta.ast.type === "postcss" &&
|
|
85
|
-
|
|
85
|
+
{ satisfies: () => true }.satisfies(
|
|
86
86
|
meta.ast.version,
|
|
87
87
|
`^${_package.default.version}`,
|
|
88
88
|
)
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
callback(null, result.css, map, { ast });
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
384: (module, exports, __nccwpck_require__) => {
|
|
193
193
|
module = __nccwpck_require__.nmd(module);
|
|
194
194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
195
195
|
exports.exec = exec;
|
|
@@ -682,9 +682,6 @@
|
|
|
682
682
|
993: (module) => {
|
|
683
683
|
module.exports = require("../jiti");
|
|
684
684
|
},
|
|
685
|
-
938: (module) => {
|
|
686
|
-
module.exports = require("./semver");
|
|
687
|
-
},
|
|
688
685
|
188: (module) => {
|
|
689
686
|
module.exports = require("module");
|
|
690
687
|
},
|
|
@@ -694,7 +691,7 @@
|
|
|
694
691
|
310: (module) => {
|
|
695
692
|
module.exports = require("url");
|
|
696
693
|
},
|
|
697
|
-
|
|
694
|
+
226: (module) => {
|
|
698
695
|
module.exports = JSON.parse(
|
|
699
696
|
'{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
|
|
700
697
|
);
|
|
@@ -739,6 +736,6 @@
|
|
|
739
736
|
})();
|
|
740
737
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
741
738
|
__nccwpck_require__.ab = __dirname + "/";
|
|
742
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
739
|
+
var __webpack_exports__ = __nccwpck_require__(850);
|
|
743
740
|
module.exports = __webpack_exports__;
|
|
744
741
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
910: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.transformFiles =
|
|
7
7
|
exports.reduceChunk =
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.map(standardizeFilePaths);
|
|
121
121
|
exports.transformFiles = transformFiles;
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
691: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
124
124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
125
125
|
exports.normalModuleLoaderHook =
|
|
126
126
|
exports.getCompilerHooks =
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
const fs_1 = __nccwpck_require__(147);
|
|
131
131
|
const path_1 = __nccwpck_require__(17);
|
|
132
132
|
const lite_tapable_1 = __nccwpck_require__(348);
|
|
133
|
-
const helpers_1 = __nccwpck_require__(
|
|
133
|
+
const helpers_1 = __nccwpck_require__(910);
|
|
134
134
|
const compilerHookMap = new WeakMap();
|
|
135
135
|
const getCompilerHooks = (compiler) => {
|
|
136
136
|
let hooks = compilerHookMap.get(compiler);
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
exports.getCompilerHooks =
|
|
313
313
|
void 0;
|
|
314
314
|
const path_1 = __nccwpck_require__(17);
|
|
315
|
-
const hooks_1 = __nccwpck_require__(
|
|
315
|
+
const hooks_1 = __nccwpck_require__(691);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
package/dist/index.cjs
CHANGED
|
@@ -2304,7 +2304,7 @@ async function createContext(options, userConfig, bundlerType) {
|
|
|
2304
2304
|
const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
|
|
2305
2305
|
const cachePath = (0, import_node_path9.join)(rootPath, "node_modules", ".cache");
|
|
2306
2306
|
return {
|
|
2307
|
-
version: "1.0.
|
|
2307
|
+
version: "1.0.7",
|
|
2308
2308
|
rootPath,
|
|
2309
2309
|
distPath: "",
|
|
2310
2310
|
cachePath,
|
|
@@ -2651,9 +2651,6 @@ var init_configChain = __esm({
|
|
|
2651
2651
|
PUG: "pug",
|
|
2652
2652
|
/** Rule for Vue */
|
|
2653
2653
|
VUE: "vue",
|
|
2654
|
-
// TODO: remove
|
|
2655
|
-
/** Rule for yaml */
|
|
2656
|
-
YAML: "yaml",
|
|
2657
2654
|
/** Rule for wasm */
|
|
2658
2655
|
WASM: "wasm",
|
|
2659
2656
|
/** Rule for svelte */
|
|
@@ -2689,9 +2686,6 @@ var init_configChain = __esm({
|
|
|
2689
2686
|
SWC: "swc",
|
|
2690
2687
|
/** svgr */
|
|
2691
2688
|
SVGR: "svgr",
|
|
2692
|
-
// TODO: remove
|
|
2693
|
-
/** yaml-loader */
|
|
2694
|
-
YAML: "yaml",
|
|
2695
2689
|
/** babel-loader */
|
|
2696
2690
|
BABEL: "babel",
|
|
2697
2691
|
/** style-loader */
|
|
@@ -2719,9 +2713,6 @@ var init_configChain = __esm({
|
|
|
2719
2713
|
COPY: "copy",
|
|
2720
2714
|
/** HtmlRspackPlugin */
|
|
2721
2715
|
HTML: "html",
|
|
2722
|
-
// TODO: remove
|
|
2723
|
-
/** ESLintWebpackPlugin */
|
|
2724
|
-
ESLINT: "eslint",
|
|
2725
2716
|
/** DefinePlugin */
|
|
2726
2717
|
DEFINE: "define",
|
|
2727
2718
|
/** ProgressPlugin */
|
|
@@ -2744,9 +2735,6 @@ var init_configChain = __esm({
|
|
|
2744
2735
|
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
|
2745
2736
|
/** ReactFastRefreshPlugin */
|
|
2746
2737
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
2747
|
-
// TODO: remove
|
|
2748
|
-
/** ProvidePlugin for node polyfill */
|
|
2749
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
2750
2738
|
/** WebpackSRIPlugin */
|
|
2751
2739
|
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
2752
2740
|
/** AutoSetRootFontSizePlugin */
|
|
@@ -5881,8 +5869,7 @@ var init_css = __esm({
|
|
|
5881
5869
|
...cssModules,
|
|
5882
5870
|
localIdentName
|
|
5883
5871
|
},
|
|
5884
|
-
sourceMap: config.output.sourceMap.css
|
|
5885
|
-
_skipReuseAST: config.tools.lightningcssLoader !== false
|
|
5872
|
+
sourceMap: config.output.sourceMap.css
|
|
5886
5873
|
};
|
|
5887
5874
|
const mergedCssLoaderOptions = reduceConfigs({
|
|
5888
5875
|
initial: defaultOptions2,
|
|
@@ -7382,35 +7369,7 @@ var init_minimize = __esm({
|
|
|
7382
7369
|
if (minifyCss && isRspack) {
|
|
7383
7370
|
const defaultOptions2 = {
|
|
7384
7371
|
minimizerOptions: {
|
|
7385
|
-
targets: environment.browserslist
|
|
7386
|
-
// TODO: The exclude option of Lightning CSS does not work as expected
|
|
7387
|
-
// so we need to disable all excludes and figure out how to skip the transformation
|
|
7388
|
-
// see: https://github.com/parcel-bundler/lightningcss/issues/792
|
|
7389
|
-
exclude: {
|
|
7390
|
-
nesting: false,
|
|
7391
|
-
notSelectorList: false,
|
|
7392
|
-
dirSelector: false,
|
|
7393
|
-
langSelectorList: false,
|
|
7394
|
-
isSelector: false,
|
|
7395
|
-
textDecorationThicknessPercent: false,
|
|
7396
|
-
mediaIntervalSyntax: false,
|
|
7397
|
-
mediaRangeSyntax: false,
|
|
7398
|
-
customMediaQueries: false,
|
|
7399
|
-
clampFunction: false,
|
|
7400
|
-
colorFunction: false,
|
|
7401
|
-
oklabColors: false,
|
|
7402
|
-
labColors: false,
|
|
7403
|
-
p3Colors: false,
|
|
7404
|
-
hexAlphaColors: false,
|
|
7405
|
-
spaceSeparatedColorNotation: false,
|
|
7406
|
-
fontFamilySystemUi: false,
|
|
7407
|
-
doublePositionGradients: false,
|
|
7408
|
-
vendorPrefixes: false,
|
|
7409
|
-
logicalProperties: false,
|
|
7410
|
-
selectors: false,
|
|
7411
|
-
mediaQueries: false,
|
|
7412
|
-
color: false
|
|
7413
|
-
}
|
|
7372
|
+
targets: environment.browserslist
|
|
7414
7373
|
}
|
|
7415
7374
|
};
|
|
7416
7375
|
const mergedOptions = cssOptions ? (0, import_deepmerge3.default)(
|
|
@@ -9685,7 +9644,7 @@ var init_init = __esm({
|
|
|
9685
9644
|
|
|
9686
9645
|
// src/cli/commands.ts
|
|
9687
9646
|
function runCli() {
|
|
9688
|
-
import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.
|
|
9647
|
+
import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.7");
|
|
9689
9648
|
const devCommand = import_commander.program.command("dev");
|
|
9690
9649
|
const buildCommand = import_commander.program.command("build");
|
|
9691
9650
|
const previewCommand = import_commander.program.command("preview");
|
|
@@ -9808,7 +9767,7 @@ function prepareCli() {
|
|
|
9808
9767
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
9809
9768
|
console.log();
|
|
9810
9769
|
}
|
|
9811
|
-
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.
|
|
9770
|
+
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.7"}`}
|
|
9812
9771
|
`);
|
|
9813
9772
|
}
|
|
9814
9773
|
var init_prepare = __esm({
|
|
@@ -9892,7 +9851,7 @@ init_logger();
|
|
|
9892
9851
|
init_mergeConfig();
|
|
9893
9852
|
init_helpers();
|
|
9894
9853
|
init_constants();
|
|
9895
|
-
var version = "1.0.
|
|
9854
|
+
var version = "1.0.7";
|
|
9896
9855
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9897
9856
|
0 && (module.exports = {
|
|
9898
9857
|
PLUGIN_CSS_NAME,
|
package/dist/index.js
CHANGED
|
@@ -46,12 +46,12 @@ var __publicField = (obj, key, value) => {
|
|
|
46
46
|
return value;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.60.
|
|
49
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.60.1_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
50
50
|
import path from "path";
|
|
51
51
|
import { fileURLToPath } from "url";
|
|
52
52
|
var getFilename, getDirname, __dirname, __filename;
|
|
53
53
|
var init_esm = __esm({
|
|
54
|
-
"../../node_modules/.pnpm/@modern-js+module-tools@2.60.
|
|
54
|
+
"../../node_modules/.pnpm/@modern-js+module-tools@2.60.1_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
|
|
55
55
|
"use strict";
|
|
56
56
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
57
57
|
getDirname = () => path.dirname(getFilename());
|
|
@@ -2342,7 +2342,7 @@ async function createContext(options, userConfig, bundlerType) {
|
|
|
2342
2342
|
const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
|
|
2343
2343
|
const cachePath = join6(rootPath, "node_modules", ".cache");
|
|
2344
2344
|
return {
|
|
2345
|
-
version: "1.0.
|
|
2345
|
+
version: "1.0.7",
|
|
2346
2346
|
rootPath,
|
|
2347
2347
|
distPath: "",
|
|
2348
2348
|
cachePath,
|
|
@@ -2692,9 +2692,6 @@ var init_configChain = __esm({
|
|
|
2692
2692
|
PUG: "pug",
|
|
2693
2693
|
/** Rule for Vue */
|
|
2694
2694
|
VUE: "vue",
|
|
2695
|
-
// TODO: remove
|
|
2696
|
-
/** Rule for yaml */
|
|
2697
|
-
YAML: "yaml",
|
|
2698
2695
|
/** Rule for wasm */
|
|
2699
2696
|
WASM: "wasm",
|
|
2700
2697
|
/** Rule for svelte */
|
|
@@ -2730,9 +2727,6 @@ var init_configChain = __esm({
|
|
|
2730
2727
|
SWC: "swc",
|
|
2731
2728
|
/** svgr */
|
|
2732
2729
|
SVGR: "svgr",
|
|
2733
|
-
// TODO: remove
|
|
2734
|
-
/** yaml-loader */
|
|
2735
|
-
YAML: "yaml",
|
|
2736
2730
|
/** babel-loader */
|
|
2737
2731
|
BABEL: "babel",
|
|
2738
2732
|
/** style-loader */
|
|
@@ -2760,9 +2754,6 @@ var init_configChain = __esm({
|
|
|
2760
2754
|
COPY: "copy",
|
|
2761
2755
|
/** HtmlRspackPlugin */
|
|
2762
2756
|
HTML: "html",
|
|
2763
|
-
// TODO: remove
|
|
2764
|
-
/** ESLintWebpackPlugin */
|
|
2765
|
-
ESLINT: "eslint",
|
|
2766
2757
|
/** DefinePlugin */
|
|
2767
2758
|
DEFINE: "define",
|
|
2768
2759
|
/** ProgressPlugin */
|
|
@@ -2785,9 +2776,6 @@ var init_configChain = __esm({
|
|
|
2785
2776
|
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
|
2786
2777
|
/** ReactFastRefreshPlugin */
|
|
2787
2778
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
2788
|
-
// TODO: remove
|
|
2789
|
-
/** ProvidePlugin for node polyfill */
|
|
2790
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
2791
2779
|
/** WebpackSRIPlugin */
|
|
2792
2780
|
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
2793
2781
|
/** AutoSetRootFontSizePlugin */
|
|
@@ -5950,8 +5938,7 @@ var init_css = __esm({
|
|
|
5950
5938
|
...cssModules,
|
|
5951
5939
|
localIdentName
|
|
5952
5940
|
},
|
|
5953
|
-
sourceMap: config.output.sourceMap.css
|
|
5954
|
-
_skipReuseAST: config.tools.lightningcssLoader !== false
|
|
5941
|
+
sourceMap: config.output.sourceMap.css
|
|
5955
5942
|
};
|
|
5956
5943
|
const mergedCssLoaderOptions = reduceConfigs({
|
|
5957
5944
|
initial: defaultOptions2,
|
|
@@ -7464,35 +7451,7 @@ var init_minimize = __esm({
|
|
|
7464
7451
|
if (minifyCss && isRspack) {
|
|
7465
7452
|
const defaultOptions2 = {
|
|
7466
7453
|
minimizerOptions: {
|
|
7467
|
-
targets: environment.browserslist
|
|
7468
|
-
// TODO: The exclude option of Lightning CSS does not work as expected
|
|
7469
|
-
// so we need to disable all excludes and figure out how to skip the transformation
|
|
7470
|
-
// see: https://github.com/parcel-bundler/lightningcss/issues/792
|
|
7471
|
-
exclude: {
|
|
7472
|
-
nesting: false,
|
|
7473
|
-
notSelectorList: false,
|
|
7474
|
-
dirSelector: false,
|
|
7475
|
-
langSelectorList: false,
|
|
7476
|
-
isSelector: false,
|
|
7477
|
-
textDecorationThicknessPercent: false,
|
|
7478
|
-
mediaIntervalSyntax: false,
|
|
7479
|
-
mediaRangeSyntax: false,
|
|
7480
|
-
customMediaQueries: false,
|
|
7481
|
-
clampFunction: false,
|
|
7482
|
-
colorFunction: false,
|
|
7483
|
-
oklabColors: false,
|
|
7484
|
-
labColors: false,
|
|
7485
|
-
p3Colors: false,
|
|
7486
|
-
hexAlphaColors: false,
|
|
7487
|
-
spaceSeparatedColorNotation: false,
|
|
7488
|
-
fontFamilySystemUi: false,
|
|
7489
|
-
doublePositionGradients: false,
|
|
7490
|
-
vendorPrefixes: false,
|
|
7491
|
-
logicalProperties: false,
|
|
7492
|
-
selectors: false,
|
|
7493
|
-
mediaQueries: false,
|
|
7494
|
-
color: false
|
|
7495
|
-
}
|
|
7454
|
+
targets: environment.browserslist
|
|
7496
7455
|
}
|
|
7497
7456
|
};
|
|
7498
7457
|
const mergedOptions = cssOptions ? (0, import_deepmerge3.default)(
|
|
@@ -9794,7 +9753,7 @@ import { existsSync } from "fs";
|
|
|
9794
9753
|
import { program } from "../compiled/commander/index.js";
|
|
9795
9754
|
import color16 from "../compiled/picocolors/index.js";
|
|
9796
9755
|
function runCli() {
|
|
9797
|
-
program.name("rsbuild").usage("<command> [options]").version("1.0.
|
|
9756
|
+
program.name("rsbuild").usage("<command> [options]").version("1.0.7");
|
|
9798
9757
|
const devCommand = program.command("dev");
|
|
9799
9758
|
const buildCommand = program.command("build");
|
|
9800
9759
|
const previewCommand = program.command("preview");
|
|
@@ -9915,7 +9874,7 @@ function prepareCli() {
|
|
|
9915
9874
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
9916
9875
|
console.log();
|
|
9917
9876
|
}
|
|
9918
|
-
logger.greet(` ${`Rsbuild v${"1.0.
|
|
9877
|
+
logger.greet(` ${`Rsbuild v${"1.0.7"}`}
|
|
9919
9878
|
`);
|
|
9920
9879
|
}
|
|
9921
9880
|
var init_prepare = __esm({
|
|
@@ -9986,7 +9945,7 @@ init_mergeConfig();
|
|
|
9986
9945
|
init_helpers();
|
|
9987
9946
|
init_constants();
|
|
9988
9947
|
import { rspack as rspack10 } from "@rspack/core";
|
|
9989
|
-
var version = "1.0.
|
|
9948
|
+
var version = "1.0.7";
|
|
9990
9949
|
export {
|
|
9991
9950
|
PLUGIN_CSS_NAME,
|
|
9992
9951
|
PLUGIN_SWC_NAME,
|
|
@@ -34,8 +34,6 @@ export declare const CHAIN_ID: {
|
|
|
34
34
|
readonly PUG: "pug";
|
|
35
35
|
/** Rule for Vue */
|
|
36
36
|
readonly VUE: "vue";
|
|
37
|
-
/** Rule for yaml */
|
|
38
|
-
readonly YAML: "yaml";
|
|
39
37
|
/** Rule for wasm */
|
|
40
38
|
readonly WASM: "wasm";
|
|
41
39
|
/** Rule for svelte */
|
|
@@ -71,8 +69,6 @@ export declare const CHAIN_ID: {
|
|
|
71
69
|
readonly SWC: "swc";
|
|
72
70
|
/** svgr */
|
|
73
71
|
readonly SVGR: "svgr";
|
|
74
|
-
/** yaml-loader */
|
|
75
|
-
readonly YAML: "yaml";
|
|
76
72
|
/** babel-loader */
|
|
77
73
|
readonly BABEL: "babel";
|
|
78
74
|
/** style-loader */
|
|
@@ -100,8 +96,6 @@ export declare const CHAIN_ID: {
|
|
|
100
96
|
readonly COPY: "copy";
|
|
101
97
|
/** HtmlRspackPlugin */
|
|
102
98
|
readonly HTML: "html";
|
|
103
|
-
/** ESLintWebpackPlugin */
|
|
104
|
-
readonly ESLINT: "eslint";
|
|
105
99
|
/** DefinePlugin */
|
|
106
100
|
readonly DEFINE: "define";
|
|
107
101
|
/** ProgressPlugin */
|
|
@@ -124,8 +118,6 @@ export declare const CHAIN_ID: {
|
|
|
124
118
|
readonly VUE_LOADER_PLUGIN: "vue-loader-plugin";
|
|
125
119
|
/** ReactFastRefreshPlugin */
|
|
126
120
|
readonly REACT_FAST_REFRESH: "react-fast-refresh";
|
|
127
|
-
/** ProvidePlugin for node polyfill */
|
|
128
|
-
readonly NODE_POLYFILL_PROVIDE: "node-polyfill-provide";
|
|
129
121
|
/** WebpackSRIPlugin */
|
|
130
122
|
readonly SUBRESOURCE_INTEGRITY: "subresource-integrity";
|
|
131
123
|
/** AutoSetRootFontSizePlugin */
|
|
@@ -138,11 +138,6 @@ export interface CSSLoaderOptions {
|
|
|
138
138
|
* @default 'array'
|
|
139
139
|
*/
|
|
140
140
|
exportType?: 'array' | 'string' | 'css-style-sheet';
|
|
141
|
-
/**
|
|
142
|
-
* Temp fix for https://github.com/web-infra-dev/rspack/issues/7819
|
|
143
|
-
* @private
|
|
144
|
-
*/
|
|
145
|
-
_skipReuseAST?: boolean;
|
|
146
141
|
}
|
|
147
142
|
export type StyleLoaderInjectType = 'styleTag' | 'singletonStyleTag' | 'lazyStyleTag' | 'lazySingletonStyleTag' | 'linkTag';
|
|
148
143
|
export interface StyleLoaderOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"types.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rspack/core": "~1.0.
|
|
49
|
+
"@rspack/core": "~1.0.7",
|
|
50
50
|
"@rspack/lite-tapable": "~1.0.0",
|
|
51
51
|
"@swc/helpers": "^0.5.13",
|
|
52
|
-
"caniuse-lite": "^1.0.
|
|
52
|
+
"caniuse-lite": "^1.0.30001663",
|
|
53
53
|
"core-js": "~3.38.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/on-finished": "2.3.4",
|
|
60
60
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
61
61
|
"@types/ws": "^8.5.12",
|
|
62
|
-
"browserslist": "4.
|
|
62
|
+
"browserslist": "4.24.0",
|
|
63
63
|
"browserslist-to-es-version": "^1.0.0",
|
|
64
64
|
"chokidar": "3.6.0",
|
|
65
65
|
"commander": "^12.1.0",
|
package/types.d.ts
CHANGED
|
@@ -149,6 +149,9 @@ declare module '*.opus' {
|
|
|
149
149
|
/**
|
|
150
150
|
* Configuration files
|
|
151
151
|
*/
|
|
152
|
+
/**
|
|
153
|
+
* @requires [@rsbuild/plugin-yaml](https://www.npmjs.com/package/@rsbuild/plugin-yaml)
|
|
154
|
+
*/
|
|
152
155
|
declare module '*.yaml' {
|
|
153
156
|
const content: Record<string, any>;
|
|
154
157
|
export default content;
|
|
@@ -157,6 +160,13 @@ declare module '*.yml' {
|
|
|
157
160
|
const content: Record<string, any>;
|
|
158
161
|
export default content;
|
|
159
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* @requires [@rsbuild/plugin-toml](https://www.npmjs.com/package/@rsbuild/plugin-toml)
|
|
165
|
+
*/
|
|
166
|
+
declare module '*.toml' {
|
|
167
|
+
const content: Record<string, any>;
|
|
168
|
+
export default content;
|
|
169
|
+
}
|
|
160
170
|
|
|
161
171
|
/**
|
|
162
172
|
* Queries
|
|
@@ -180,6 +190,9 @@ declare module '*.module.css' {
|
|
|
180
190
|
const classes: CSSModuleClasses;
|
|
181
191
|
export default classes;
|
|
182
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* @requires [@rsbuild/plugin-sass](https://www.npmjs.com/package/@rsbuild/plugin-sass)
|
|
195
|
+
*/
|
|
183
196
|
declare module '*.module.scss' {
|
|
184
197
|
const classes: CSSModuleClasses;
|
|
185
198
|
export default classes;
|
|
@@ -188,10 +201,16 @@ declare module '*.module.sass' {
|
|
|
188
201
|
const classes: CSSModuleClasses;
|
|
189
202
|
export default classes;
|
|
190
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* @requires [@rsbuild/plugin-less](https://www.npmjs.com/package/@rsbuild/plugin-less)
|
|
206
|
+
*/
|
|
191
207
|
declare module '*.module.less' {
|
|
192
208
|
const classes: CSSModuleClasses;
|
|
193
209
|
export default classes;
|
|
194
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* @requires [@rsbuild/plugin-stylus](https://www.npmjs.com/package/@rsbuild/plugin-stylus)
|
|
213
|
+
*/
|
|
195
214
|
declare module '*.module.styl' {
|
|
196
215
|
const classes: CSSModuleClasses;
|
|
197
216
|
export default classes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports.satisfies = () => true;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports.satisfies = () => true;
|