@rsbuild/core 1.0.1-beta.1 → 1.0.1-beta.2
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.js +16 -12
- package/compiled/browserslist/package.json +1 -1
- package/compiled/css-loader/index.js +20 -20
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +12 -12
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/ws/index.d.ts +13 -22
- package/dist/index.cjs +11 -7
- package/dist/index.js +11 -7
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
932: (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
|
+
80: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
16
16
|
var jsReleases = __nccwpck_require__(750);
|
|
17
17
|
var agents = __nccwpck_require__(768).agents;
|
|
18
18
|
var jsEOL = __nccwpck_require__(629);
|
|
19
19
|
var path = __nccwpck_require__(17);
|
|
20
|
-
var e2c = __nccwpck_require__(
|
|
21
|
-
var BrowserslistError = __nccwpck_require__(
|
|
22
|
-
var parse = __nccwpck_require__(
|
|
23
|
-
var env = __nccwpck_require__(
|
|
20
|
+
var e2c = __nccwpck_require__(310);
|
|
21
|
+
var BrowserslistError = __nccwpck_require__(932);
|
|
22
|
+
var parse = __nccwpck_require__(911);
|
|
23
|
+
var env = __nccwpck_require__(850);
|
|
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;
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
matches: [],
|
|
991
991
|
regexp: /^(firefox|ff|fx)\s+esr$/i,
|
|
992
992
|
select: function () {
|
|
993
|
-
return ["firefox 115"];
|
|
993
|
+
return ["firefox 115", "firefox 128"];
|
|
994
994
|
},
|
|
995
995
|
},
|
|
996
996
|
opera_mini_all: {
|
|
@@ -1178,12 +1178,12 @@
|
|
|
1178
1178
|
})();
|
|
1179
1179
|
module.exports = browserslist;
|
|
1180
1180
|
},
|
|
1181
|
-
|
|
1181
|
+
850: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1182
1182
|
var feature = __nccwpck_require__(711)["default"];
|
|
1183
1183
|
var region = __nccwpck_require__(225)["default"];
|
|
1184
1184
|
var path = __nccwpck_require__(17);
|
|
1185
1185
|
var fs = __nccwpck_require__(147);
|
|
1186
|
-
var BrowserslistError = __nccwpck_require__(
|
|
1186
|
+
var BrowserslistError = __nccwpck_require__(932);
|
|
1187
1187
|
var IS_SECTION = /^\s*\[(.+)]\s*$/;
|
|
1188
1188
|
var CONFIG_PATTERN = /^browserslist-config-/;
|
|
1189
1189
|
var SCOPED_CONFIG__PATTERN =
|
|
@@ -1575,7 +1575,7 @@
|
|
|
1575
1575
|
env: process.env,
|
|
1576
1576
|
};
|
|
1577
1577
|
},
|
|
1578
|
-
|
|
1578
|
+
911: (module) => {
|
|
1579
1579
|
var AND_REGEXP = /^\s+and\s+(.*)/i;
|
|
1580
1580
|
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
|
|
1581
1581
|
function flatten(array) {
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
);
|
|
1649
1649
|
};
|
|
1650
1650
|
},
|
|
1651
|
-
|
|
1651
|
+
310: (module) => {
|
|
1652
1652
|
module.exports = {
|
|
1653
1653
|
"0.20": "39",
|
|
1654
1654
|
0.21: "41",
|
|
@@ -1804,7 +1804,11 @@
|
|
|
1804
1804
|
29.4: "122",
|
|
1805
1805
|
"30.0": "124",
|
|
1806
1806
|
30.1: "124",
|
|
1807
|
+
30.2: "124",
|
|
1807
1808
|
"31.0": "126",
|
|
1809
|
+
31.1: "126",
|
|
1810
|
+
31.2: "126",
|
|
1811
|
+
"32.0": "128",
|
|
1808
1812
|
};
|
|
1809
1813
|
},
|
|
1810
1814
|
768: (module) => {
|
|
@@ -1862,6 +1866,6 @@
|
|
|
1862
1866
|
}
|
|
1863
1867
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1864
1868
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1865
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1869
|
+
var __webpack_exports__ = __nccwpck_require__(80);
|
|
1866
1870
|
module.exports = __webpack_exports__;
|
|
1867
1871
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.23.
|
|
1
|
+
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.23.2","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,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
4835: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(613);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(8333).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
613: (__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__(977));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(7972));
|
|
16
16
|
var _semver = __nccwpck_require__(938);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(5243));
|
|
18
|
+
var _plugins = __nccwpck_require__(5984);
|
|
19
|
+
var _utils = __nccwpck_require__(8333);
|
|
20
20
|
function _interopRequireDefault(obj) {
|
|
21
21
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
22
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
5984: (__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__(3818),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(8822),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(8064));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
8822: (__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__(2304);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(8333);
|
|
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
|
+
3818: (__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__(1036),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(8333);
|
|
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
|
+
8064: (__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__(1036),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(8333);
|
|
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
|
+
8333: (__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;
|
|
@@ -7501,7 +7501,7 @@
|
|
|
7501
7501
|
"use strict";
|
|
7502
7502
|
module.exports = require("util");
|
|
7503
7503
|
},
|
|
7504
|
-
|
|
7504
|
+
5243: (module) => {
|
|
7505
7505
|
"use strict";
|
|
7506
7506
|
module.exports = JSON.parse(
|
|
7507
7507
|
'{"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"}',
|
|
@@ -7536,6 +7536,6 @@
|
|
|
7536
7536
|
}
|
|
7537
7537
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
7538
7538
|
__nccwpck_require__.ab = __dirname + "/";
|
|
7539
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
7539
|
+
var __webpack_exports__ = __nccwpck_require__(4835);
|
|
7540
7540
|
module.exports = __webpack_exports__;
|
|
7541
7541
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
70: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(560);
|
|
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
|
+
560: (module) => {
|
|
308
308
|
"use strict";
|
|
309
309
|
class HtmlWebpackChildCompiler {
|
|
310
310
|
constructor(templates) {
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
}
|
|
466
466
|
module.exports = { HtmlWebpackChildCompiler };
|
|
467
467
|
},
|
|
468
|
-
|
|
468
|
+
570: (module) => {
|
|
469
469
|
"use strict";
|
|
470
470
|
module.exports = {};
|
|
471
471
|
module.exports.none = (chunks) => chunks;
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
};
|
|
485
485
|
module.exports.auto = module.exports.none;
|
|
486
486
|
},
|
|
487
|
-
|
|
487
|
+
35: (module) => {
|
|
488
488
|
"use strict";
|
|
489
489
|
module.exports = function (err) {
|
|
490
490
|
return {
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
507
|
},
|
|
508
|
-
|
|
508
|
+
191: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
509
509
|
"use strict";
|
|
510
510
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
|
|
511
511
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
}
|
|
532
532
|
module.exports = { getHtmlRspackPluginHooks };
|
|
533
533
|
},
|
|
534
|
-
|
|
534
|
+
884: (module) => {
|
|
535
535
|
const voidTags = [
|
|
536
536
|
"area",
|
|
537
537
|
"base",
|
|
@@ -599,19 +599,19 @@
|
|
|
599
599
|
htmlTagObjectToString,
|
|
600
600
|
};
|
|
601
601
|
},
|
|
602
|
-
|
|
602
|
+
585: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
603
603
|
"use strict";
|
|
604
604
|
const promisify = __nccwpck_require__(837).promisify;
|
|
605
605
|
const vm = __nccwpck_require__(144);
|
|
606
606
|
const fs = __nccwpck_require__(147);
|
|
607
607
|
const path = __nccwpck_require__(17);
|
|
608
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
608
|
+
const { CachedChildCompilation } = __nccwpck_require__(70);
|
|
609
609
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
610
|
-
__nccwpck_require__(
|
|
611
|
-
const prettyError = __nccwpck_require__(
|
|
612
|
-
const chunkSorter = __nccwpck_require__(
|
|
610
|
+
__nccwpck_require__(884);
|
|
611
|
+
const prettyError = __nccwpck_require__(35);
|
|
612
|
+
const chunkSorter = __nccwpck_require__(570);
|
|
613
613
|
const getHtmlRspackPluginHooks =
|
|
614
|
-
__nccwpck_require__(
|
|
614
|
+
__nccwpck_require__(191).getHtmlRspackPluginHooks;
|
|
615
615
|
class HtmlRspackPlugin {
|
|
616
616
|
constructor(userOptions = {}) {
|
|
617
617
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1569,6 +1569,6 @@
|
|
|
1569
1569
|
}
|
|
1570
1570
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1571
1571
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1572
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1572
|
+
var __webpack_exports__ = __nccwpck_require__(585);
|
|
1573
1573
|
module.exports = __webpack_exports__;
|
|
1574
1574
|
})();
|
|
@@ -6670,7 +6670,7 @@
|
|
|
6670
6670
|
const errorEx = __nccwpck_require__(7861);
|
|
6671
6671
|
const fallback = __nccwpck_require__(3984);
|
|
6672
6672
|
const { default: LinesAndColumns } = __nccwpck_require__(7151);
|
|
6673
|
-
const { codeFrameColumns } = __nccwpck_require__(
|
|
6673
|
+
const { codeFrameColumns } = __nccwpck_require__(991);
|
|
6674
6674
|
const JSONError = errorEx("JSONError", {
|
|
6675
6675
|
fileName: errorEx.append("in %s"),
|
|
6676
6676
|
codeFrame: errorEx.append("\n\n%s\n"),
|
|
@@ -6780,19 +6780,19 @@
|
|
|
6780
6780
|
module.exports = createColors();
|
|
6781
6781
|
module.exports.createColors = createColors;
|
|
6782
6782
|
},
|
|
6783
|
-
|
|
6783
|
+
9635: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6784
6784
|
"use strict";
|
|
6785
|
-
module.exports = __nccwpck_require__(
|
|
6785
|
+
module.exports = __nccwpck_require__(3988)["default"];
|
|
6786
6786
|
},
|
|
6787
|
-
|
|
6787
|
+
3988: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
6788
6788
|
"use strict";
|
|
6789
6789
|
var __webpack_unused_export__;
|
|
6790
6790
|
__webpack_unused_export__ = { value: true };
|
|
6791
6791
|
exports["default"] = loader;
|
|
6792
6792
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
6793
6793
|
var _package = _interopRequireDefault(__nccwpck_require__(7972));
|
|
6794
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
6795
|
-
var _utils = __nccwpck_require__(
|
|
6794
|
+
var _options = _interopRequireDefault(__nccwpck_require__(4050));
|
|
6795
|
+
var _utils = __nccwpck_require__(6245);
|
|
6796
6796
|
function _interopRequireDefault(obj) {
|
|
6797
6797
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
6798
6798
|
}
|
|
@@ -6970,7 +6970,7 @@
|
|
|
6970
6970
|
callback(null, result.css, map, { ast });
|
|
6971
6971
|
}
|
|
6972
6972
|
},
|
|
6973
|
-
|
|
6973
|
+
6245: (module, exports, __nccwpck_require__) => {
|
|
6974
6974
|
"use strict";
|
|
6975
6975
|
module = __nccwpck_require__.nmd(module);
|
|
6976
6976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7688,12 +7688,12 @@
|
|
|
7688
7688
|
"use strict";
|
|
7689
7689
|
module.exports = require("util");
|
|
7690
7690
|
},
|
|
7691
|
-
|
|
7691
|
+
991: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
7692
7692
|
"use strict";
|
|
7693
7693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7694
7694
|
exports.codeFrameColumns = codeFrameColumns;
|
|
7695
7695
|
exports["default"] = _default;
|
|
7696
|
-
var _highlight = __nccwpck_require__(
|
|
7696
|
+
var _highlight = __nccwpck_require__(8073);
|
|
7697
7697
|
var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
|
|
7698
7698
|
function _getRequireWildcardCache(e) {
|
|
7699
7699
|
if ("function" != typeof WeakMap) return null;
|
|
@@ -8140,7 +8140,7 @@
|
|
|
8140
8140
|
return keywords.has(word);
|
|
8141
8141
|
}
|
|
8142
8142
|
},
|
|
8143
|
-
|
|
8143
|
+
8073: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8144
8144
|
"use strict";
|
|
8145
8145
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8146
8146
|
exports["default"] = highlight;
|
|
@@ -8308,7 +8308,7 @@
|
|
|
8308
8308
|
};
|
|
8309
8309
|
}
|
|
8310
8310
|
},
|
|
8311
|
-
|
|
8311
|
+
4050: (module) => {
|
|
8312
8312
|
"use strict";
|
|
8313
8313
|
module.exports = JSON.parse(
|
|
8314
8314
|
'{"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}',
|
|
@@ -8418,6 +8418,6 @@
|
|
|
8418
8418
|
})();
|
|
8419
8419
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8420
8420
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8421
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8421
|
+
var __webpack_exports__ = __nccwpck_require__(9635);
|
|
8422
8422
|
module.exports = __webpack_exports__;
|
|
8423
8423
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
482: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.transformFiles =
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.map(standardizeFilePaths);
|
|
121
121
|
exports.transformFiles = transformFiles;
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
9178: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
124
124
|
"use strict";
|
|
125
125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126
126
|
exports.normalModuleLoaderHook =
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
const path_1 = __nccwpck_require__(1017);
|
|
133
133
|
const tapable_1 = __nccwpck_require__(4260);
|
|
134
134
|
const webpack_sources_1 = __nccwpck_require__(5433);
|
|
135
|
-
const helpers_1 = __nccwpck_require__(
|
|
135
|
+
const helpers_1 = __nccwpck_require__(482);
|
|
136
136
|
const compilerHookMap = new WeakMap();
|
|
137
137
|
const getCompilerHooks = (compiler) => {
|
|
138
138
|
let hooks = compilerHookMap.get(compiler);
|
|
@@ -5802,7 +5802,7 @@
|
|
|
5802
5802
|
exports.getCompilerHooks =
|
|
5803
5803
|
void 0;
|
|
5804
5804
|
const path_1 = __nccwpck_require__(1017);
|
|
5805
|
-
const hooks_1 = __nccwpck_require__(
|
|
5805
|
+
const hooks_1 = __nccwpck_require__(9178);
|
|
5806
5806
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
5807
5807
|
enumerable: true,
|
|
5808
5808
|
get: function () {
|
package/compiled/ws/index.d.ts
CHANGED
|
@@ -106,32 +106,16 @@ declare class WebSocket extends EventEmitter {
|
|
|
106
106
|
resume(): void;
|
|
107
107
|
|
|
108
108
|
// HTML5 WebSocket events
|
|
109
|
-
addEventListener(
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
addEventListener<K extends keyof WebSocket.WebSocketEventMap>(
|
|
110
|
+
type: K,
|
|
111
|
+
listener: (event: WebSocket.WebSocketEventMap[K]) => void,
|
|
112
112
|
options?: WebSocket.EventListenerOptions,
|
|
113
113
|
): void;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
options?: WebSocket.EventListenerOptions,
|
|
118
|
-
): void;
|
|
119
|
-
addEventListener(
|
|
120
|
-
method: "error",
|
|
121
|
-
cb: (event: WebSocket.ErrorEvent) => void,
|
|
122
|
-
options?: WebSocket.EventListenerOptions,
|
|
123
|
-
): void;
|
|
124
|
-
addEventListener(
|
|
125
|
-
method: "open",
|
|
126
|
-
cb: (event: WebSocket.Event) => void,
|
|
127
|
-
options?: WebSocket.EventListenerOptions,
|
|
114
|
+
removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(
|
|
115
|
+
type: K,
|
|
116
|
+
listener: (event: WebSocket.WebSocketEventMap[K]) => void,
|
|
128
117
|
): void;
|
|
129
118
|
|
|
130
|
-
removeEventListener(method: "message", cb: (event: WebSocket.MessageEvent) => void): void;
|
|
131
|
-
removeEventListener(method: "close", cb: (event: WebSocket.CloseEvent) => void): void;
|
|
132
|
-
removeEventListener(method: "error", cb: (event: WebSocket.ErrorEvent) => void): void;
|
|
133
|
-
removeEventListener(method: "open", cb: (event: WebSocket.Event) => void): void;
|
|
134
|
-
|
|
135
119
|
// Events
|
|
136
120
|
on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
|
|
137
121
|
on(event: "error", listener: (this: WebSocket, err: Error) => void): this;
|
|
@@ -299,6 +283,13 @@ declare namespace WebSocket {
|
|
|
299
283
|
target: WebSocket;
|
|
300
284
|
}
|
|
301
285
|
|
|
286
|
+
interface WebSocketEventMap {
|
|
287
|
+
open: Event;
|
|
288
|
+
error: ErrorEvent;
|
|
289
|
+
close: CloseEvent;
|
|
290
|
+
message: MessageEvent;
|
|
291
|
+
}
|
|
292
|
+
|
|
302
293
|
interface EventListenerOptions {
|
|
303
294
|
once?: boolean | undefined;
|
|
304
295
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1598,7 +1598,7 @@ async function createContextByConfig(options, bundlerType) {
|
|
|
1598
1598
|
const rootPath = cwd;
|
|
1599
1599
|
const cachePath = (0, import_node_path8.join)(rootPath, "node_modules", ".cache");
|
|
1600
1600
|
return {
|
|
1601
|
-
version: "1.0.1-beta.
|
|
1601
|
+
version: "1.0.1-beta.2",
|
|
1602
1602
|
rootPath,
|
|
1603
1603
|
distPath: "",
|
|
1604
1604
|
cachePath,
|
|
@@ -6520,7 +6520,7 @@ function applyScriptCondition({
|
|
|
6520
6520
|
rule.exclude.add(condition);
|
|
6521
6521
|
}
|
|
6522
6522
|
}
|
|
6523
|
-
function getDefaultSwcConfig(browserslist3) {
|
|
6523
|
+
function getDefaultSwcConfig(browserslist3, cacheRoot) {
|
|
6524
6524
|
return {
|
|
6525
6525
|
jsc: {
|
|
6526
6526
|
externalHelpers: true,
|
|
@@ -6531,7 +6531,10 @@ function getDefaultSwcConfig(browserslist3) {
|
|
|
6531
6531
|
},
|
|
6532
6532
|
// Avoid the webpack magic comment to be removed
|
|
6533
6533
|
// https://github.com/swc-project/swc/issues/6403
|
|
6534
|
-
preserveAllComments: true
|
|
6534
|
+
preserveAllComments: true,
|
|
6535
|
+
experimental: {
|
|
6536
|
+
cacheRoot
|
|
6537
|
+
}
|
|
6535
6538
|
},
|
|
6536
6539
|
isModule: "unknown",
|
|
6537
6540
|
env: {
|
|
@@ -6592,6 +6595,7 @@ var init_swc = __esm({
|
|
|
6592
6595
|
order: "pre",
|
|
6593
6596
|
handler: async (chain, { CHAIN_ID: CHAIN_ID2, target, environment }) => {
|
|
6594
6597
|
const { config, browserslist: browserslist3 } = environment;
|
|
6598
|
+
const cacheRoot = import_node_path28.default.join(api.context.cachePath, ".swc");
|
|
6595
6599
|
const rule = chain.module.rule(CHAIN_ID2.RULE.JS).test(SCRIPT_REGEX).type("javascript/auto");
|
|
6596
6600
|
const dataUriRule = chain.module.rule(CHAIN_ID2.RULE.JS_DATA_URI).mimetype({
|
|
6597
6601
|
or: ["text/javascript", "application/javascript"]
|
|
@@ -6607,7 +6611,7 @@ var init_swc = __esm({
|
|
|
6607
6611
|
if (api.context.bundlerType === "webpack") {
|
|
6608
6612
|
return;
|
|
6609
6613
|
}
|
|
6610
|
-
const swcConfig = getDefaultSwcConfig(browserslist3);
|
|
6614
|
+
const swcConfig = getDefaultSwcConfig(browserslist3, cacheRoot);
|
|
6611
6615
|
applyTransformImport(swcConfig, config.source.transformImport);
|
|
6612
6616
|
applySwcDecoratorConfig(swcConfig, config);
|
|
6613
6617
|
if (swcConfig.jsc?.externalHelpers) {
|
|
@@ -8796,7 +8800,7 @@ var init_init = __esm({
|
|
|
8796
8800
|
|
|
8797
8801
|
// src/cli/commands.ts
|
|
8798
8802
|
function runCli() {
|
|
8799
|
-
import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1-beta.
|
|
8803
|
+
import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1-beta.2");
|
|
8800
8804
|
const devCommand = import_commander.program.command("dev");
|
|
8801
8805
|
const buildCommand = import_commander.program.command("build");
|
|
8802
8806
|
const previewCommand = import_commander.program.command("preview");
|
|
@@ -8910,7 +8914,7 @@ function prepareCli() {
|
|
|
8910
8914
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
8911
8915
|
console.log();
|
|
8912
8916
|
}
|
|
8913
|
-
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1-beta.
|
|
8917
|
+
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1-beta.2"}`}
|
|
8914
8918
|
`);
|
|
8915
8919
|
}
|
|
8916
8920
|
var init_prepare = __esm({
|
|
@@ -8993,7 +8997,7 @@ init_logger();
|
|
|
8993
8997
|
init_mergeConfig();
|
|
8994
8998
|
init_helpers();
|
|
8995
8999
|
init_constants();
|
|
8996
|
-
var version = "1.0.1-beta.
|
|
9000
|
+
var version = "1.0.1-beta.2";
|
|
8997
9001
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8998
9002
|
0 && (module.exports = {
|
|
8999
9003
|
PLUGIN_CSS_NAME,
|
package/dist/index.js
CHANGED
|
@@ -1632,7 +1632,7 @@ async function createContextByConfig(options, bundlerType) {
|
|
|
1632
1632
|
const rootPath = cwd;
|
|
1633
1633
|
const cachePath = join6(rootPath, "node_modules", ".cache");
|
|
1634
1634
|
return {
|
|
1635
|
-
version: "1.0.1-beta.
|
|
1635
|
+
version: "1.0.1-beta.2",
|
|
1636
1636
|
rootPath,
|
|
1637
1637
|
distPath: "",
|
|
1638
1638
|
cachePath,
|
|
@@ -6599,7 +6599,7 @@ function applyScriptCondition({
|
|
|
6599
6599
|
rule.exclude.add(condition);
|
|
6600
6600
|
}
|
|
6601
6601
|
}
|
|
6602
|
-
function getDefaultSwcConfig(browserslist3) {
|
|
6602
|
+
function getDefaultSwcConfig(browserslist3, cacheRoot) {
|
|
6603
6603
|
return {
|
|
6604
6604
|
jsc: {
|
|
6605
6605
|
externalHelpers: true,
|
|
@@ -6610,7 +6610,10 @@ function getDefaultSwcConfig(browserslist3) {
|
|
|
6610
6610
|
},
|
|
6611
6611
|
// Avoid the webpack magic comment to be removed
|
|
6612
6612
|
// https://github.com/swc-project/swc/issues/6403
|
|
6613
|
-
preserveAllComments: true
|
|
6613
|
+
preserveAllComments: true,
|
|
6614
|
+
experimental: {
|
|
6615
|
+
cacheRoot
|
|
6616
|
+
}
|
|
6614
6617
|
},
|
|
6615
6618
|
isModule: "unknown",
|
|
6616
6619
|
env: {
|
|
@@ -6670,6 +6673,7 @@ var init_swc = __esm({
|
|
|
6670
6673
|
order: "pre",
|
|
6671
6674
|
handler: async (chain, { CHAIN_ID: CHAIN_ID2, target, environment }) => {
|
|
6672
6675
|
const { config, browserslist: browserslist3 } = environment;
|
|
6676
|
+
const cacheRoot = path14.join(api.context.cachePath, ".swc");
|
|
6673
6677
|
const rule = chain.module.rule(CHAIN_ID2.RULE.JS).test(SCRIPT_REGEX).type("javascript/auto");
|
|
6674
6678
|
const dataUriRule = chain.module.rule(CHAIN_ID2.RULE.JS_DATA_URI).mimetype({
|
|
6675
6679
|
or: ["text/javascript", "application/javascript"]
|
|
@@ -6685,7 +6689,7 @@ var init_swc = __esm({
|
|
|
6685
6689
|
if (api.context.bundlerType === "webpack") {
|
|
6686
6690
|
return;
|
|
6687
6691
|
}
|
|
6688
|
-
const swcConfig = getDefaultSwcConfig(browserslist3);
|
|
6692
|
+
const swcConfig = getDefaultSwcConfig(browserslist3, cacheRoot);
|
|
6689
6693
|
applyTransformImport(swcConfig, config.source.transformImport);
|
|
6690
6694
|
applySwcDecoratorConfig(swcConfig, config);
|
|
6691
6695
|
if (swcConfig.jsc?.externalHelpers) {
|
|
@@ -8901,7 +8905,7 @@ import { existsSync } from "fs";
|
|
|
8901
8905
|
import { program } from "../compiled/commander/index.js";
|
|
8902
8906
|
import color14 from "../compiled/picocolors/index.js";
|
|
8903
8907
|
function runCli() {
|
|
8904
|
-
program.name("rsbuild").usage("<command> [options]").version("1.0.1-beta.
|
|
8908
|
+
program.name("rsbuild").usage("<command> [options]").version("1.0.1-beta.2");
|
|
8905
8909
|
const devCommand = program.command("dev");
|
|
8906
8910
|
const buildCommand = program.command("build");
|
|
8907
8911
|
const previewCommand = program.command("preview");
|
|
@@ -9013,7 +9017,7 @@ function prepareCli() {
|
|
|
9013
9017
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
9014
9018
|
console.log();
|
|
9015
9019
|
}
|
|
9016
|
-
logger.greet(` ${`Rsbuild v${"1.0.1-beta.
|
|
9020
|
+
logger.greet(` ${`Rsbuild v${"1.0.1-beta.2"}`}
|
|
9017
9021
|
`);
|
|
9018
9022
|
}
|
|
9019
9023
|
var init_prepare = __esm({
|
|
@@ -9083,7 +9087,7 @@ init_mergeConfig();
|
|
|
9083
9087
|
init_helpers();
|
|
9084
9088
|
init_constants();
|
|
9085
9089
|
import { rspack as rspack10 } from "@rspack/core";
|
|
9086
|
-
var version = "1.0.1-beta.
|
|
9090
|
+
var version = "1.0.1-beta.2";
|
|
9087
9091
|
export {
|
|
9088
9092
|
PLUGIN_CSS_NAME,
|
|
9089
9093
|
PLUGIN_SWC_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.2",
|
|
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.0-alpha.
|
|
50
|
-
"@rspack/lite-tapable": "1.0.0-alpha.
|
|
49
|
+
"@rspack/core": "1.0.0-alpha.4",
|
|
50
|
+
"@rspack/lite-tapable": "1.0.0-alpha.4",
|
|
51
51
|
"@swc/helpers": "0.5.11",
|
|
52
|
-
"caniuse-lite": "^1.0.
|
|
52
|
+
"caniuse-lite": "^1.0.30001642",
|
|
53
53
|
"core-js": "~3.37.1",
|
|
54
54
|
"postcss": "^8.4.39"
|
|
55
55
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@types/node": "18.x",
|
|
60
60
|
"@types/on-finished": "2.3.4",
|
|
61
61
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
62
|
-
"@types/ws": "^8.5.
|
|
62
|
+
"@types/ws": "^8.5.11",
|
|
63
63
|
"autoprefixer": "10.4.19",
|
|
64
|
-
"browserslist": "4.23.
|
|
64
|
+
"browserslist": "4.23.2",
|
|
65
65
|
"browserslist-to-es-version": "^1.0.0",
|
|
66
66
|
"chokidar": "3.6.0",
|
|
67
67
|
"commander": "^12.1.0",
|