@rsbuild/core 1.0.12 → 1.0.13
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.
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
3137: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(4965);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(3579).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
4965: (__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
16
|
var _semver = { satisfies: () => true };
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(641));
|
|
18
|
+
var _plugins = __nccwpck_require__(1442);
|
|
19
|
+
var _utils = __nccwpck_require__(3579);
|
|
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
|
+
1442: (__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__(7400),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(7785),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7710));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
7785: (__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__(3579);
|
|
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
|
+
7400: (__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__(3579);
|
|
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
|
+
7710: (__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__(3579);
|
|
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
|
+
3579: (__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;
|
|
@@ -7960,7 +7960,7 @@
|
|
|
7960
7960
|
"use strict";
|
|
7961
7961
|
module.exports = require("util");
|
|
7962
7962
|
},
|
|
7963
|
-
|
|
7963
|
+
641: (module) => {
|
|
7964
7964
|
"use strict";
|
|
7965
7965
|
module.exports = JSON.parse(
|
|
7966
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"}',
|
|
@@ -7995,6 +7995,6 @@
|
|
|
7995
7995
|
}
|
|
7996
7996
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
7997
7997
|
__nccwpck_require__.ab = __dirname + "/";
|
|
7998
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
7998
|
+
var __webpack_exports__ = __nccwpck_require__(3137);
|
|
7999
7999
|
module.exports = __webpack_exports__;
|
|
8000
8000
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
440: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(303);
|
|
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
|
+
303: (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
|
+
368: (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
|
+
419: (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
|
+
556: (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
|
+
972: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
160: (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__(440);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(972);
|
|
619
|
+
const prettyError = __nccwpck_require__(419);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(368);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(556).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__(160);
|
|
1581
1581
|
module.exports = __webpack_exports__;
|
|
1582
1582
|
})();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
429: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(171)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
171: (__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__(244));
|
|
14
|
+
var _utils = __nccwpck_require__(990);
|
|
15
15
|
function _interopRequireDefault(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
17
17
|
}
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
callback(null, result.css, map, { ast });
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
990: (module, exports, __nccwpck_require__) => {
|
|
193
193
|
module = __nccwpck_require__.nmd(module);
|
|
194
194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
195
195
|
exports.exec = exec;
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
310: (module) => {
|
|
692
692
|
module.exports = require("url");
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
244: (module) => {
|
|
695
695
|
module.exports = JSON.parse(
|
|
696
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}',
|
|
697
697
|
);
|
|
@@ -736,6 +736,6 @@
|
|
|
736
736
|
})();
|
|
737
737
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
738
738
|
__nccwpck_require__.ab = __dirname + "/";
|
|
739
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
739
|
+
var __webpack_exports__ = __nccwpck_require__(429);
|
|
740
740
|
module.exports = __webpack_exports__;
|
|
741
741
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
213: (__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
|
+
673: (__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__(213);
|
|
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__(673);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
package/dist/index.cjs
CHANGED
|
@@ -3830,9 +3830,8 @@ var init_helpers = __esm({
|
|
|
3830
3830
|
return DEFAULT_ASSET_PREFIX;
|
|
3831
3831
|
};
|
|
3832
3832
|
urlJoin = (base, path21) => {
|
|
3833
|
-
const
|
|
3834
|
-
|
|
3835
|
-
return fullUrl.toString();
|
|
3833
|
+
const [urlProtocol, baseUrl] = base.split("://");
|
|
3834
|
+
return `${urlProtocol}://${import_node_path4.posix.join(baseUrl, path21)}`;
|
|
3836
3835
|
};
|
|
3837
3836
|
canParse = (url2) => {
|
|
3838
3837
|
try {
|
|
@@ -6005,7 +6004,7 @@ async function createContext(options, userConfig, bundlerType) {
|
|
|
6005
6004
|
const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
|
|
6006
6005
|
const cachePath = (0, import_node_path10.join)(rootPath, "node_modules", ".cache");
|
|
6007
6006
|
return {
|
|
6008
|
-
version: "1.0.
|
|
6007
|
+
version: "1.0.13",
|
|
6009
6008
|
rootPath,
|
|
6010
6009
|
distPath: "",
|
|
6011
6010
|
cachePath,
|
|
@@ -9612,7 +9611,7 @@ async function applyCSSRule({
|
|
|
9612
9611
|
rule.merge({ sideEffects: true });
|
|
9613
9612
|
rule.resolve.preferRelative(true);
|
|
9614
9613
|
}
|
|
9615
|
-
var import_node_path21, import_deepmerge2, isUseCssExtract, getCSSModulesLocalIdentName, normalizeCssLoaderOptions, userPostcssrcCache, clonePostCSSConfig, getPostcssLoaderOptions, getCSSLoaderOptions, pluginCss;
|
|
9614
|
+
var import_node_path21, import_deepmerge2, isUseCssExtract, getCSSModulesLocalIdentName, normalizeCssLoaderOptions, userPostcssrcCache, clonePostCSSConfig, isPostcssPluginCreator, getPostcssLoaderOptions, getCSSLoaderOptions, pluginCss;
|
|
9616
9615
|
var init_css = __esm({
|
|
9617
9616
|
"src/plugins/css.ts"() {
|
|
9618
9617
|
"use strict";
|
|
@@ -9653,6 +9652,7 @@ var init_css = __esm({
|
|
|
9653
9652
|
...config,
|
|
9654
9653
|
plugins: config.plugins ? [...config.plugins] : void 0
|
|
9655
9654
|
});
|
|
9655
|
+
isPostcssPluginCreator = (plugin) => typeof plugin === "function" && plugin.postcss === true;
|
|
9656
9656
|
getPostcssLoaderOptions = async ({
|
|
9657
9657
|
config,
|
|
9658
9658
|
root
|
|
@@ -9674,17 +9674,21 @@ var init_css = __esm({
|
|
|
9674
9674
|
postcssOptions: userPostcssConfig,
|
|
9675
9675
|
sourceMap: config.output.sourceMap.css
|
|
9676
9676
|
};
|
|
9677
|
-
const
|
|
9677
|
+
const merged = reduceConfigsWithContext({
|
|
9678
9678
|
initial: defaultPostcssConfig,
|
|
9679
9679
|
config: config.tools.postcss,
|
|
9680
9680
|
ctx: utils
|
|
9681
9681
|
});
|
|
9682
|
+
merged.postcssOptions ||= {};
|
|
9683
|
+
merged.postcssOptions.plugins ||= [];
|
|
9682
9684
|
if (extraPlugins.length) {
|
|
9683
|
-
|
|
9685
|
+
merged.postcssOptions.plugins.push(...extraPlugins);
|
|
9684
9686
|
}
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9687
|
+
merged.postcssOptions.plugins = merged.postcssOptions.plugins.map(
|
|
9688
|
+
(plugin) => isPostcssPluginCreator(plugin) ? plugin() : plugin
|
|
9689
|
+
);
|
|
9690
|
+
merged.postcssOptions.config = false;
|
|
9691
|
+
return merged;
|
|
9688
9692
|
};
|
|
9689
9693
|
getCSSLoaderOptions = ({
|
|
9690
9694
|
config,
|
|
@@ -13537,7 +13541,7 @@ var init_init = __esm({
|
|
|
13537
13541
|
|
|
13538
13542
|
// src/cli/commands.ts
|
|
13539
13543
|
function runCli() {
|
|
13540
|
-
program.name("rsbuild").usage("<command> [options]").version("1.0.
|
|
13544
|
+
program.name("rsbuild").usage("<command> [options]").version("1.0.13");
|
|
13541
13545
|
const devCommand = program.command("dev");
|
|
13542
13546
|
const buildCommand = program.command("build");
|
|
13543
13547
|
const previewCommand = program.command("preview");
|
|
@@ -13646,7 +13650,7 @@ function prepareCli() {
|
|
|
13646
13650
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
13647
13651
|
console.log();
|
|
13648
13652
|
}
|
|
13649
|
-
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.
|
|
13653
|
+
import_rslog.logger.greet(` ${`Rsbuild v${"1.0.13"}`}
|
|
13650
13654
|
`);
|
|
13651
13655
|
}
|
|
13652
13656
|
var import_node_module;
|
|
@@ -13732,7 +13736,7 @@ init_logger();
|
|
|
13732
13736
|
init_mergeConfig();
|
|
13733
13737
|
init_helpers();
|
|
13734
13738
|
init_constants();
|
|
13735
|
-
var version = "1.0.
|
|
13739
|
+
var version = "1.0.13";
|
|
13736
13740
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13737
13741
|
0 && (module.exports = {
|
|
13738
13742
|
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.2_typescript@5.6.
|
|
49
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.60.2_typescript@5.6.3/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.2_typescript@5.6.
|
|
54
|
+
"../../node_modules/.pnpm/@modern-js+module-tools@2.60.2_typescript@5.6.3/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());
|
|
@@ -3868,9 +3868,8 @@ var init_helpers = __esm({
|
|
|
3868
3868
|
return DEFAULT_ASSET_PREFIX;
|
|
3869
3869
|
};
|
|
3870
3870
|
urlJoin = (base, path22) => {
|
|
3871
|
-
const
|
|
3872
|
-
|
|
3873
|
-
return fullUrl.toString();
|
|
3871
|
+
const [urlProtocol, baseUrl] = base.split("://");
|
|
3872
|
+
return `${urlProtocol}://${posix.join(baseUrl, path22)}`;
|
|
3874
3873
|
};
|
|
3875
3874
|
canParse = (url2) => {
|
|
3876
3875
|
try {
|
|
@@ -6054,7 +6053,7 @@ async function createContext(options, userConfig, bundlerType) {
|
|
|
6054
6053
|
const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
|
|
6055
6054
|
const cachePath = join6(rootPath, "node_modules", ".cache");
|
|
6056
6055
|
return {
|
|
6057
|
-
version: "1.0.
|
|
6056
|
+
version: "1.0.13",
|
|
6058
6057
|
rootPath,
|
|
6059
6058
|
distPath: "",
|
|
6060
6059
|
cachePath,
|
|
@@ -9693,7 +9692,7 @@ async function applyCSSRule({
|
|
|
9693
9692
|
rule.merge({ sideEffects: true });
|
|
9694
9693
|
rule.resolve.preferRelative(true);
|
|
9695
9694
|
}
|
|
9696
|
-
var import_deepmerge2, isUseCssExtract, getCSSModulesLocalIdentName, normalizeCssLoaderOptions, userPostcssrcCache, clonePostCSSConfig, getPostcssLoaderOptions, getCSSLoaderOptions, pluginCss;
|
|
9695
|
+
var import_deepmerge2, isUseCssExtract, getCSSModulesLocalIdentName, normalizeCssLoaderOptions, userPostcssrcCache, clonePostCSSConfig, isPostcssPluginCreator, getPostcssLoaderOptions, getCSSLoaderOptions, pluginCss;
|
|
9697
9696
|
var init_css = __esm({
|
|
9698
9697
|
"src/plugins/css.ts"() {
|
|
9699
9698
|
"use strict";
|
|
@@ -9734,6 +9733,7 @@ var init_css = __esm({
|
|
|
9734
9733
|
...config,
|
|
9735
9734
|
plugins: config.plugins ? [...config.plugins] : void 0
|
|
9736
9735
|
});
|
|
9736
|
+
isPostcssPluginCreator = (plugin) => typeof plugin === "function" && plugin.postcss === true;
|
|
9737
9737
|
getPostcssLoaderOptions = async ({
|
|
9738
9738
|
config,
|
|
9739
9739
|
root
|
|
@@ -9755,17 +9755,21 @@ var init_css = __esm({
|
|
|
9755
9755
|
postcssOptions: userPostcssConfig,
|
|
9756
9756
|
sourceMap: config.output.sourceMap.css
|
|
9757
9757
|
};
|
|
9758
|
-
const
|
|
9758
|
+
const merged = reduceConfigsWithContext({
|
|
9759
9759
|
initial: defaultPostcssConfig,
|
|
9760
9760
|
config: config.tools.postcss,
|
|
9761
9761
|
ctx: utils
|
|
9762
9762
|
});
|
|
9763
|
+
merged.postcssOptions ||= {};
|
|
9764
|
+
merged.postcssOptions.plugins ||= [];
|
|
9763
9765
|
if (extraPlugins.length) {
|
|
9764
|
-
|
|
9766
|
+
merged.postcssOptions.plugins.push(...extraPlugins);
|
|
9765
9767
|
}
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9768
|
+
merged.postcssOptions.plugins = merged.postcssOptions.plugins.map(
|
|
9769
|
+
(plugin) => isPostcssPluginCreator(plugin) ? plugin() : plugin
|
|
9770
|
+
);
|
|
9771
|
+
merged.postcssOptions.config = false;
|
|
9772
|
+
return merged;
|
|
9769
9773
|
};
|
|
9770
9774
|
getCSSLoaderOptions = ({
|
|
9771
9775
|
config,
|
|
@@ -13655,7 +13659,7 @@ var init_init = __esm({
|
|
|
13655
13659
|
|
|
13656
13660
|
// src/cli/commands.ts
|
|
13657
13661
|
function runCli() {
|
|
13658
|
-
program.name("rsbuild").usage("<command> [options]").version("1.0.
|
|
13662
|
+
program.name("rsbuild").usage("<command> [options]").version("1.0.13");
|
|
13659
13663
|
const devCommand = program.command("dev");
|
|
13660
13664
|
const buildCommand = program.command("build");
|
|
13661
13665
|
const previewCommand = program.command("preview");
|
|
@@ -13766,7 +13770,7 @@ function prepareCli() {
|
|
|
13766
13770
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
|
|
13767
13771
|
console.log();
|
|
13768
13772
|
}
|
|
13769
|
-
logger.greet(` ${`Rsbuild v${"1.0.
|
|
13773
|
+
logger.greet(` ${`Rsbuild v${"1.0.13"}`}
|
|
13770
13774
|
`);
|
|
13771
13775
|
}
|
|
13772
13776
|
var init_prepare = __esm({
|
|
@@ -13837,7 +13841,7 @@ init_mergeConfig();
|
|
|
13837
13841
|
init_helpers();
|
|
13838
13842
|
init_constants();
|
|
13839
13843
|
import { rspack as rspack10 } from "@rspack/core";
|
|
13840
|
-
var version = "1.0.
|
|
13844
|
+
var version = "1.0.13";
|
|
13841
13845
|
export {
|
|
13842
13846
|
PLUGIN_CSS_NAME,
|
|
13843
13847
|
PLUGIN_SWC_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"types.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rspack/core": "~1.0.
|
|
49
|
+
"@rspack/core": "~1.0.10",
|
|
50
50
|
"@rspack/lite-tapable": "~1.0.1",
|
|
51
51
|
"@swc/helpers": "^0.5.13",
|
|
52
52
|
"core-js": "~3.38.1"
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"sirv": "^2.0.4",
|
|
89
89
|
"style-loader": "3.3.4",
|
|
90
90
|
"tsc-alias": "^1.8.10",
|
|
91
|
-
"typescript": "^5.6.
|
|
91
|
+
"typescript": "^5.6.3",
|
|
92
92
|
"webpack": "^5.95.0",
|
|
93
93
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
94
94
|
"webpack-merge": "6.0.1",
|