@rsbuild/core 1.0.1-beta.2 → 1.0.1-beta.4
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/css-loader/index.js +20 -20
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/client/hmr.js +2 -1
- package/dist/index.cjs +419 -391
- package/dist/index.js +438 -410
- package/dist/transformLoader.cjs +2 -1
- package/dist/transformRawLoader.cjs +2 -1
- package/dist-types/configChain.d.ts +0 -2
- package/dist-types/loader/transformLoader.d.ts +5 -3
- package/dist-types/plugins/appIcon.d.ts +2 -0
- package/dist-types/types/hooks.d.ts +7 -1
- package/dist-types/types/plugin.d.ts +40 -5
- package/package.json +4 -4
- package/dist-types/rspack/HtmlAppIconPlugin.d.ts +0 -13
- package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +0 -29
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
7286: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(5866);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(7040).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
5866: (__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__(1991));
|
|
18
|
+
var _plugins = __nccwpck_require__(2754);
|
|
19
|
+
var _utils = __nccwpck_require__(7040);
|
|
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
|
+
2754: (__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__(4460),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(8815),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(2374));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
8815: (__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__(7040);
|
|
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
|
+
4460: (__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__(7040);
|
|
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
|
+
2374: (__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__(7040);
|
|
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
|
+
7040: (__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
|
+
1991: (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__(7286);
|
|
7540
7540
|
module.exports = __webpack_exports__;
|
|
7541
7541
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
737: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(937);
|
|
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
|
+
937: (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
|
+
798: (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
|
+
255: (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
|
+
0: (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
|
+
93: (module) => {
|
|
535
535
|
const voidTags = [
|
|
536
536
|
"area",
|
|
537
537
|
"base",
|
|
@@ -599,19 +599,19 @@
|
|
|
599
599
|
htmlTagObjectToString,
|
|
600
600
|
};
|
|
601
601
|
},
|
|
602
|
-
|
|
602
|
+
592: (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__(737);
|
|
609
609
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
610
|
-
__nccwpck_require__(
|
|
611
|
-
const prettyError = __nccwpck_require__(
|
|
612
|
-
const chunkSorter = __nccwpck_require__(
|
|
610
|
+
__nccwpck_require__(93);
|
|
611
|
+
const prettyError = __nccwpck_require__(255);
|
|
612
|
+
const chunkSorter = __nccwpck_require__(798);
|
|
613
613
|
const getHtmlRspackPluginHooks =
|
|
614
|
-
__nccwpck_require__(
|
|
614
|
+
__nccwpck_require__(0).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__(592);
|
|
1573
1573
|
module.exports = __webpack_exports__;
|
|
1574
1574
|
})();
|
|
@@ -6780,19 +6780,19 @@
|
|
|
6780
6780
|
module.exports = createColors();
|
|
6781
6781
|
module.exports.createColors = createColors;
|
|
6782
6782
|
},
|
|
6783
|
-
|
|
6783
|
+
9337: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6784
6784
|
"use strict";
|
|
6785
|
-
module.exports = __nccwpck_require__(
|
|
6785
|
+
module.exports = __nccwpck_require__(8725)["default"];
|
|
6786
6786
|
},
|
|
6787
|
-
|
|
6787
|
+
8725: (__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__(8850));
|
|
6795
|
+
var _utils = __nccwpck_require__(8084);
|
|
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
|
+
8084: (module, exports, __nccwpck_require__) => {
|
|
6974
6974
|
"use strict";
|
|
6975
6975
|
module = __nccwpck_require__.nmd(module);
|
|
6976
6976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -8308,7 +8308,7 @@
|
|
|
8308
8308
|
};
|
|
8309
8309
|
}
|
|
8310
8310
|
},
|
|
8311
|
-
|
|
8311
|
+
8850: (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__(9337);
|
|
8422
8422
|
module.exports = __webpack_exports__;
|
|
8423
8423
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
9161: (__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
|
+
4431: (__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__(9161);
|
|
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__(4431);
|
|
5806
5806
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
5807
5807
|
enumerable: true,
|
|
5808
5808
|
get: function () {
|
package/dist/client/hmr.js
CHANGED