@unpackjs/core 4.7.1 → 4.7.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/css-loader/index.js +46 -46
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +11 -11
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.js +64 -81
- package/dist/typedCssModulesLoader.js +2 -2
- package/dist-types/constants.d.ts +1 -0
- package/dist-types/constants.d.ts.map +1 -1
- package/dist-types/createUnpack.d.ts.map +1 -1
- package/dist-types/fs.d.ts +0 -2
- package/dist-types/fs.d.ts.map +1 -1
- package/dist-types/loadEnv.d.ts.map +1 -1
- package/dist-types/rspack-config/cache.d.ts +1 -1
- package/dist-types/rspack-config/cache.d.ts.map +1 -1
- package/dist-types/rspack-config/css.d.ts.map +1 -1
- package/dist-types/rspack-config/helpers.d.ts +1 -0
- package/dist-types/rspack-config/helpers.d.ts.map +1 -1
- package/dist-types/rspack-config/html.d.ts +1 -1
- package/dist-types/rspack-config/html.d.ts.map +1 -1
- package/dist-types/rspack-config/loaders/typedCssModulesLoader.d.ts.map +1 -1
- package/dist-types/rspack-config/nativeCss.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +1 -2
- package/dist-types/types/config.d.ts.map +1 -1
- package/package.json +28 -28
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
2614: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(4428);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(2517).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
4428: (__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__(1940));
|
|
15
|
-
var _package = _interopRequireDefault(__nccwpck_require__(
|
|
15
|
+
var _package = _interopRequireDefault(__nccwpck_require__(1970));
|
|
16
16
|
var _semver = __nccwpck_require__(5200);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(3316));
|
|
18
|
+
var _plugins = __nccwpck_require__(3411);
|
|
19
|
+
var _utils = __nccwpck_require__(2517);
|
|
20
20
|
function _interopRequireDefault(e) {
|
|
21
21
|
return e && e.__esModule ? e : { default: e };
|
|
22
22
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
3411: (__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__(6168),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(2381),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(2124));
|
|
274
274
|
function _interopRequireDefault(e) {
|
|
275
275
|
return e && e.__esModule ? e : { default: e };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
2381: (__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
|
-
var _icssUtils = __nccwpck_require__(
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
282
|
+
var _icssUtils = __nccwpck_require__(5827);
|
|
283
|
+
var _utils = __nccwpck_require__(2517);
|
|
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
|
+
6168: (__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__(5245),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(2517);
|
|
390
390
|
function _interopRequireDefault(e) {
|
|
391
391
|
return e && e.__esModule ? e : { default: e };
|
|
392
392
|
}
|
|
@@ -691,14 +691,14 @@
|
|
|
691
691
|
plugin.postcss = true;
|
|
692
692
|
var _default = (exports["default"] = plugin);
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
2124: (__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__(5245),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(2517);
|
|
702
702
|
function _interopRequireDefault(e) {
|
|
703
703
|
return e && e.__esModule ? e : { default: e };
|
|
704
704
|
}
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
plugin.postcss = true;
|
|
1042
1042
|
var _default = (exports["default"] = plugin);
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
2517: (__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;
|
|
@@ -1074,16 +1074,16 @@
|
|
|
1074
1074
|
var _url = __nccwpck_require__(7016);
|
|
1075
1075
|
var _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
1076
1076
|
var _postcssModulesValues = _interopRequireDefault(
|
|
1077
|
-
__nccwpck_require__(
|
|
1077
|
+
__nccwpck_require__(8707),
|
|
1078
1078
|
);
|
|
1079
1079
|
var _postcssModulesLocalByDefault = _interopRequireDefault(
|
|
1080
|
-
__nccwpck_require__(
|
|
1080
|
+
__nccwpck_require__(1325),
|
|
1081
1081
|
);
|
|
1082
1082
|
var _postcssModulesExtractImports = _interopRequireDefault(
|
|
1083
|
-
__nccwpck_require__(
|
|
1083
|
+
__nccwpck_require__(5135),
|
|
1084
1084
|
);
|
|
1085
1085
|
var _postcssModulesScope = _interopRequireDefault(
|
|
1086
|
-
__nccwpck_require__(
|
|
1086
|
+
__nccwpck_require__(1313),
|
|
1087
1087
|
);
|
|
1088
1088
|
function _interopRequireDefault(e) {
|
|
1089
1089
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2286,7 +2286,7 @@
|
|
|
2286
2286
|
cssesc.version = "3.0.0";
|
|
2287
2287
|
module.exports = cssesc;
|
|
2288
2288
|
},
|
|
2289
|
-
|
|
2289
|
+
7638: (module) => {
|
|
2290
2290
|
const createImports = (imports, postcss, mode = "rule") =>
|
|
2291
2291
|
Object.keys(imports).map((path) => {
|
|
2292
2292
|
const aliases = imports[path];
|
|
@@ -2338,7 +2338,7 @@
|
|
|
2338
2338
|
];
|
|
2339
2339
|
module.exports = createICSSRules;
|
|
2340
2340
|
},
|
|
2341
|
-
|
|
2341
|
+
2908: (module) => {
|
|
2342
2342
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
2343
2343
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
2344
2344
|
const getDeclsObject = (rule) => {
|
|
@@ -2396,11 +2396,11 @@
|
|
|
2396
2396
|
};
|
|
2397
2397
|
module.exports = extractICSS;
|
|
2398
2398
|
},
|
|
2399
|
-
|
|
2400
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2401
|
-
const replaceSymbols = __nccwpck_require__(
|
|
2402
|
-
const extractICSS = __nccwpck_require__(
|
|
2403
|
-
const createICSSRules = __nccwpck_require__(
|
|
2399
|
+
5827: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2400
|
+
const replaceValueSymbols = __nccwpck_require__(4677);
|
|
2401
|
+
const replaceSymbols = __nccwpck_require__(8414);
|
|
2402
|
+
const extractICSS = __nccwpck_require__(2908);
|
|
2403
|
+
const createICSSRules = __nccwpck_require__(7638);
|
|
2404
2404
|
module.exports = {
|
|
2405
2405
|
replaceValueSymbols,
|
|
2406
2406
|
replaceSymbols,
|
|
@@ -2408,8 +2408,8 @@
|
|
|
2408
2408
|
createICSSRules,
|
|
2409
2409
|
};
|
|
2410
2410
|
},
|
|
2411
|
-
|
|
2412
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2411
|
+
8414: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2412
|
+
const replaceValueSymbols = __nccwpck_require__(4677);
|
|
2413
2413
|
const replaceSymbols = (css, replacements) => {
|
|
2414
2414
|
css.walk((node) => {
|
|
2415
2415
|
if (node.type === "decl" && node.value) {
|
|
@@ -2432,7 +2432,7 @@
|
|
|
2432
2432
|
};
|
|
2433
2433
|
module.exports = replaceSymbols;
|
|
2434
2434
|
},
|
|
2435
|
-
|
|
2435
|
+
4677: (module) => {
|
|
2436
2436
|
const matchValueName = /[$]?[\w-]+/g;
|
|
2437
2437
|
const replaceValueSymbols = (value, replacements) => {
|
|
2438
2438
|
let matches;
|
|
@@ -2450,8 +2450,8 @@
|
|
|
2450
2450
|
};
|
|
2451
2451
|
module.exports = replaceValueSymbols;
|
|
2452
2452
|
},
|
|
2453
|
-
|
|
2454
|
-
const topologicalSort = __nccwpck_require__(
|
|
2453
|
+
5135: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2454
|
+
const topologicalSort = __nccwpck_require__(6736);
|
|
2455
2455
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
2456
2456
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
|
2457
2457
|
const VISITED_MARKER = 1;
|
|
@@ -2597,7 +2597,7 @@
|
|
|
2597
2597
|
};
|
|
2598
2598
|
module.exports.postcss = true;
|
|
2599
2599
|
},
|
|
2600
|
-
|
|
2600
|
+
6736: (module) => {
|
|
2601
2601
|
const PERMANENT_MARKER = 2;
|
|
2602
2602
|
const TEMPORARY_MARKER = 1;
|
|
2603
2603
|
function createError(node, graph) {
|
|
@@ -2646,11 +2646,11 @@
|
|
|
2646
2646
|
}
|
|
2647
2647
|
module.exports = topologicalSort;
|
|
2648
2648
|
},
|
|
2649
|
-
|
|
2649
|
+
1325: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2650
2650
|
"use strict";
|
|
2651
2651
|
const selectorParser = __nccwpck_require__(452);
|
|
2652
2652
|
const valueParser = __nccwpck_require__(5245);
|
|
2653
|
-
const { extractICSS } = __nccwpck_require__(
|
|
2653
|
+
const { extractICSS } = __nccwpck_require__(5827);
|
|
2654
2654
|
const IGNORE_FILE_MARKER = "cssmodules-pure-no-check";
|
|
2655
2655
|
const IGNORE_NEXT_LINE_MARKER = "cssmodules-pure-ignore";
|
|
2656
2656
|
const isSpacing = (node) =>
|
|
@@ -3256,7 +3256,7 @@
|
|
|
3256
3256
|
};
|
|
3257
3257
|
module.exports.postcss = true;
|
|
3258
3258
|
},
|
|
3259
|
-
|
|
3259
|
+
1313: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3260
3260
|
"use strict";
|
|
3261
3261
|
const selectorParser = __nccwpck_require__(452);
|
|
3262
3262
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3563,9 +3563,9 @@
|
|
|
3563
3563
|
};
|
|
3564
3564
|
module.exports = plugin;
|
|
3565
3565
|
},
|
|
3566
|
-
|
|
3566
|
+
8707: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3567
3567
|
"use strict";
|
|
3568
|
-
const ICSSUtils = __nccwpck_require__(
|
|
3568
|
+
const ICSSUtils = __nccwpck_require__(5827);
|
|
3569
3569
|
const matchImports =
|
|
3570
3570
|
/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
3571
3571
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
@@ -8095,16 +8095,16 @@
|
|
|
8095
8095
|
"use strict";
|
|
8096
8096
|
module.exports = require("util");
|
|
8097
8097
|
},
|
|
8098
|
-
|
|
8098
|
+
3316: (module) => {
|
|
8099
8099
|
"use strict";
|
|
8100
8100
|
module.exports = JSON.parse(
|
|
8101
8101
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack/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/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/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/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack/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/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack/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/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/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack/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/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack/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/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack/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/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack/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/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
8102
8102
|
);
|
|
8103
8103
|
},
|
|
8104
|
-
|
|
8104
|
+
1970: (module) => {
|
|
8105
8105
|
"use strict";
|
|
8106
8106
|
module.exports = JSON.parse(
|
|
8107
|
-
'{"name":"postcss","version":"8.5.
|
|
8107
|
+
'{"name":"postcss","version":"8.5.8","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"import":"./lib/postcss.mjs","require":"./lib/postcss.js"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.11","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
8108
8108
|
);
|
|
8109
8109
|
},
|
|
8110
8110
|
};
|
|
@@ -8130,6 +8130,6 @@
|
|
|
8130
8130
|
}
|
|
8131
8131
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8132
8132
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8133
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8133
|
+
var __webpack_exports__ = __nccwpck_require__(2614);
|
|
8134
8134
|
module.exports = __webpack_exports__;
|
|
8135
8135
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
271: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(865)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
865: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(345));
|
|
13
|
+
var _utils = __nccwpck_require__(916);
|
|
14
14
|
function _interopRequireDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : { default: e };
|
|
16
16
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
916: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
760: (module) => {
|
|
315
315
|
module.exports = require("node:path");
|
|
316
316
|
},
|
|
317
|
-
|
|
317
|
+
345: (module) => {
|
|
318
318
|
module.exports = JSON.parse(
|
|
319
319
|
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack/less-loader#webpackimporter","anyOf":[{"type":"boolean"},{"type":"string","enum":["only"]}]},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
320
320
|
);
|
|
@@ -342,6 +342,6 @@
|
|
|
342
342
|
}
|
|
343
343
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
344
344
|
__nccwpck_require__.ab = __dirname + "/";
|
|
345
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
345
|
+
var __webpack_exports__ = __nccwpck_require__(271);
|
|
346
346
|
module.exports = __webpack_exports__;
|
|
347
347
|
})();
|
|
@@ -5322,19 +5322,19 @@
|
|
|
5322
5322
|
module.exports = createColors();
|
|
5323
5323
|
module.exports.createColors = createColors;
|
|
5324
5324
|
},
|
|
5325
|
-
|
|
5325
|
+
5921: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5326
5326
|
"use strict";
|
|
5327
|
-
module.exports = __nccwpck_require__(
|
|
5327
|
+
module.exports = __nccwpck_require__(9267)["default"];
|
|
5328
5328
|
},
|
|
5329
|
-
|
|
5329
|
+
9267: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5330
5330
|
"use strict";
|
|
5331
5331
|
var __webpack_unused_export__;
|
|
5332
5332
|
__webpack_unused_export__ = { value: true };
|
|
5333
5333
|
exports["default"] = loader;
|
|
5334
5334
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(6760));
|
|
5335
|
-
var _package = _interopRequireDefault(__nccwpck_require__(
|
|
5336
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5337
|
-
var _utils = __nccwpck_require__(
|
|
5335
|
+
var _package = _interopRequireDefault(__nccwpck_require__(1970));
|
|
5336
|
+
var _options = _interopRequireDefault(__nccwpck_require__(1077));
|
|
5337
|
+
var _utils = __nccwpck_require__(430);
|
|
5338
5338
|
function _interopRequireDefault(e) {
|
|
5339
5339
|
return e && e.__esModule ? e : { default: e };
|
|
5340
5340
|
}
|
|
@@ -5512,7 +5512,7 @@
|
|
|
5512
5512
|
callback(null, result.css, map, { ast });
|
|
5513
5513
|
}
|
|
5514
5514
|
},
|
|
5515
|
-
|
|
5515
|
+
430: (module, exports, __nccwpck_require__) => {
|
|
5516
5516
|
"use strict";
|
|
5517
5517
|
module = __nccwpck_require__.nmd(module);
|
|
5518
5518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6629,16 +6629,16 @@
|
|
|
6629
6629
|
return keywords.has(word);
|
|
6630
6630
|
}
|
|
6631
6631
|
},
|
|
6632
|
-
|
|
6632
|
+
1077: (module) => {
|
|
6633
6633
|
"use strict";
|
|
6634
6634
|
module.exports = JSON.parse(
|
|
6635
6635
|
'{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack/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/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
|
|
6636
6636
|
);
|
|
6637
6637
|
},
|
|
6638
|
-
|
|
6638
|
+
1970: (module) => {
|
|
6639
6639
|
"use strict";
|
|
6640
6640
|
module.exports = JSON.parse(
|
|
6641
|
-
'{"name":"postcss","version":"8.5.
|
|
6641
|
+
'{"name":"postcss","version":"8.5.8","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"import":"./lib/postcss.mjs","require":"./lib/postcss.js"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.11","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
6642
6642
|
);
|
|
6643
6643
|
},
|
|
6644
6644
|
};
|
|
@@ -6739,6 +6739,6 @@
|
|
|
6739
6739
|
})();
|
|
6740
6740
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6741
6741
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6742
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6742
|
+
var __webpack_exports__ = __nccwpck_require__(5921);
|
|
6743
6743
|
module.exports = __webpack_exports__;
|
|
6744
6744
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
179: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(773);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
773: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4804
4804
|
"use strict";
|
|
4805
4805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4806
4806
|
exports["default"] = void 0;
|
|
4807
4807
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
4808
4808
|
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(617));
|
|
4810
|
+
var _utils = __nccwpck_require__(424);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
var _default = (exports["default"] = loader);
|
|
4916
4916
|
},
|
|
4917
|
-
|
|
4917
|
+
424: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4918
4918
|
"use strict";
|
|
4919
4919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4920
4920
|
exports.errorFactory = errorFactory;
|
|
@@ -5568,7 +5568,7 @@
|
|
|
5568
5568
|
"use strict";
|
|
5569
5569
|
module.exports = require("sass");
|
|
5570
5570
|
},
|
|
5571
|
-
|
|
5571
|
+
617: (module) => {
|
|
5572
5572
|
"use strict";
|
|
5573
5573
|
module.exports = JSON.parse(
|
|
5574
5574
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5598,6 +5598,6 @@
|
|
|
5598
5598
|
}
|
|
5599
5599
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5600
5600
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5601
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5601
|
+
var __webpack_exports__ = __nccwpck_require__(179);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
package/dist/index.js
CHANGED
|
@@ -1217,7 +1217,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
|
|
|
1217
1217
|
<body>
|
|
1218
1218
|
<div id="${mountId}"></div>
|
|
1219
1219
|
</body>
|
|
1220
|
-
</html>`, JS_REGEX = /\.[jt]s$/, JSX_REGEX = /\.[jt]sx$/, SCRIPT_REGEX = /\.[jt]sx?$/, CSS_REGEX = /\.css$/i, LESS_REGEX = /\.less$/i, SASS_REGEX = /\.s[ac]ss$/i
|
|
1220
|
+
</html>`, JS_REGEX = /\.[jt]s$/, JSX_REGEX = /\.[jt]sx$/, SCRIPT_REGEX = /\.[jt]sx?$/, CSS_REGEX = /\.css$/i, LESS_REGEX = /\.less$/i, SASS_REGEX = /\.s[ac]ss$/i, CSS_MODULES_RESOURCE_QUERY_REGEX = /[?&]module(?:[=&]|$)/;
|
|
1221
1221
|
var utils_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
1222
1222
|
let getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
|
|
1223
1223
|
process.env.NODE_ENV = env;
|
|
@@ -1606,14 +1606,7 @@ function isEmptyDir(path) {
|
|
|
1606
1606
|
let findExists = (files)=>{
|
|
1607
1607
|
for (let file of files)if (isFileSync(file)) return file;
|
|
1608
1608
|
return !1;
|
|
1609
|
-
}
|
|
1610
|
-
async function pathExists(path) {
|
|
1611
|
-
return node_fs.promises.access(path).then(()=>!0).catch(()=>!1);
|
|
1612
|
-
}
|
|
1613
|
-
async function isFileExists(file) {
|
|
1614
|
-
return node_fs.promises.access(file, node_fs.constants.F_OK).then(()=>!0).catch(()=>!1);
|
|
1615
|
-
}
|
|
1616
|
-
let removeDir = (dir)=>{
|
|
1609
|
+
}, removeDir = (dir)=>{
|
|
1617
1610
|
node_fs.rmSync(dir, {
|
|
1618
1611
|
recursive: !0,
|
|
1619
1612
|
force: !0
|
|
@@ -1873,44 +1866,6 @@ function applyPluginsByHookSync(hook, runner) {
|
|
|
1873
1866
|
}
|
|
1874
1867
|
}
|
|
1875
1868
|
}
|
|
1876
|
-
async function getBuildDependencies(root) {
|
|
1877
|
-
let rootPackageJson = node_path.join(root, 'package.json'), browserslistConfig = node_path.join(root, '.browserslistrc'), tsconfigPath = node_path.join(root, 'tsconfig.json'), buildDependencies = {};
|
|
1878
|
-
await isFileExists(rootPackageJson) && (buildDependencies.packageJson = [
|
|
1879
|
-
rootPackageJson
|
|
1880
|
-
]), await isFileExists(browserslistConfig) && (buildDependencies.browserslistrc = [
|
|
1881
|
-
browserslistConfig
|
|
1882
|
-
]), await isFileExists(tsconfigPath) && (buildDependencies.tsconfig = [
|
|
1883
|
-
tsconfigPath
|
|
1884
|
-
]);
|
|
1885
|
-
let unpackConfigPath = resolveConfigPath(root);
|
|
1886
|
-
unpackConfigPath && (buildDependencies.unpackConfig = [
|
|
1887
|
-
unpackConfigPath
|
|
1888
|
-
]);
|
|
1889
|
-
let tailwindConfig = findExists([
|
|
1890
|
-
'ts',
|
|
1891
|
-
'js',
|
|
1892
|
-
'cjs',
|
|
1893
|
-
'mjs'
|
|
1894
|
-
].map((ext)=>node_path.join(root, `tailwind.config.${ext}`)));
|
|
1895
|
-
return tailwindConfig && (buildDependencies.tailwindcss = [
|
|
1896
|
-
tailwindConfig
|
|
1897
|
-
]), buildDependencies;
|
|
1898
|
-
}
|
|
1899
|
-
async function applyCacheConfig({ config, unpackConfig, envFilePaths }) {
|
|
1900
|
-
let cacheConfig = isPlainObject(unpackConfig.performance.cache) ? unpackConfig.performance.cache : {}, buildDependencies = await getBuildDependencies(unpackConfig.root);
|
|
1901
|
-
buildDependencies.userBuildDependencies = cacheConfig.buildDependencies || [], buildDependencies.envFilePaths = envFilePaths;
|
|
1902
|
-
let cacheDirectory = node_path.resolve(unpackConfig.root, cacheConfig.cacheDirectory || `${unpackConfig._context.cachePath}/cache`, utils_isDevServer() ? 'dev' : 'build');
|
|
1903
|
-
return dist_default()(config, {
|
|
1904
|
-
cache: {
|
|
1905
|
-
type: 'persistent',
|
|
1906
|
-
buildDependencies: Object.values(buildDependencies).flat(),
|
|
1907
|
-
storage: {
|
|
1908
|
-
type: 'filesystem',
|
|
1909
|
-
directory: cacheDirectory
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
1869
|
async function getEntry(root, customEntry) {
|
|
1915
1870
|
let entry;
|
|
1916
1871
|
if (entry = customEntry ? node_path.resolve(root, customEntry) : (await external_tinyglobby_glob('(index|main).{js,ts,jsx,tsx}', {
|
|
@@ -1950,29 +1905,10 @@ let getOutputFilename = ({ type, hash, async })=>{
|
|
|
1950
1905
|
},
|
|
1951
1906
|
implementation: getUserDepPath(unpackConfig.root, 'less'),
|
|
1952
1907
|
sourceMap: unpackConfig.css?.sourceMap
|
|
1953
|
-
}, unpackConfig.css?.lessLoader || {})
|
|
1908
|
+
}, unpackConfig.css?.lessLoader || {}),
|
|
1909
|
+
parallel: !0
|
|
1954
1910
|
});
|
|
1955
|
-
var css_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
1956
|
-
async function applyHtmlConfig({ config, unpackConfig }) {
|
|
1957
|
-
let htmlConfig = unpackConfig.html || {}, { template, templateContent } = getHtmlTemplateOrContent(htmlConfig.template, unpackConfig.root), templateParameters = {
|
|
1958
|
-
mountId: htmlConfig.mountId,
|
|
1959
|
-
title: isFunction(htmlConfig.title) ? htmlConfig.title({
|
|
1960
|
-
entryName: 'index'
|
|
1961
|
-
}) : htmlConfig.title || '',
|
|
1962
|
-
headTag: htmlConfig.headTag || '',
|
|
1963
|
-
...htmlConfig.templateParameters
|
|
1964
|
-
};
|
|
1965
|
-
return config.plugins.push(new rspack.HtmlRspackPlugin({
|
|
1966
|
-
template,
|
|
1967
|
-
templateContent,
|
|
1968
|
-
templateParameters,
|
|
1969
|
-
minify: !1,
|
|
1970
|
-
chunks: [
|
|
1971
|
-
'main'
|
|
1972
|
-
]
|
|
1973
|
-
})), config;
|
|
1974
|
-
}
|
|
1975
|
-
var nativeCss_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
1911
|
+
var css_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url)), nativeCss_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
1976
1912
|
let { RawSource: RawSource, SourceMapSource: SourceMapSource } = rspack.sources, isJsFile = /\.[cm]?js(\?.*)?$/i, jsMinify_PLUGIN_NAME = 'JsMinifyPlugin';
|
|
1977
1913
|
class JsMinifyPlugin {
|
|
1978
1914
|
minifyOptions;
|
|
@@ -1984,7 +1920,7 @@ class JsMinifyPlugin {
|
|
|
1984
1920
|
apply(compiler) {
|
|
1985
1921
|
let meta = JSON.stringify({
|
|
1986
1922
|
name: jsMinify_PLUGIN_NAME,
|
|
1987
|
-
version: "4.7.
|
|
1923
|
+
version: "4.7.2",
|
|
1988
1924
|
options: this.minifyOptions
|
|
1989
1925
|
});
|
|
1990
1926
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -2431,7 +2367,7 @@ async function getRspackConfig(originalUnpackConfig) {
|
|
|
2431
2367
|
test,
|
|
2432
2368
|
oneOf: [
|
|
2433
2369
|
(({ use })=>({
|
|
2434
|
-
resourceQuery:
|
|
2370
|
+
resourceQuery: CSS_MODULES_RESOURCE_QUERY_REGEX,
|
|
2435
2371
|
use: [
|
|
2436
2372
|
isDev() && {
|
|
2437
2373
|
loader: node_path.resolve(nativeCss_dirname, './typedCssModulesLoader.js')
|
|
@@ -2482,7 +2418,7 @@ async function getRspackConfig(originalUnpackConfig) {
|
|
|
2482
2418
|
options: {
|
|
2483
2419
|
importLoaders,
|
|
2484
2420
|
modules: {
|
|
2485
|
-
auto: (_, resourceQuery)
|
|
2421
|
+
auto: (_, resourceQuery)=>!!resourceQuery && CSS_MODULES_RESOURCE_QUERY_REGEX.test(resourceQuery),
|
|
2486
2422
|
localIdentName: CSS_MODULES_LOCAL_IDENT_NAME,
|
|
2487
2423
|
exportLocalsConvention: CSS_MODULES_EXPORTS_CONVENTION,
|
|
2488
2424
|
namedExport: !1
|
|
@@ -2535,10 +2471,58 @@ async function getRspackConfig(originalUnpackConfig) {
|
|
|
2535
2471
|
}({
|
|
2536
2472
|
config,
|
|
2537
2473
|
unpackConfig
|
|
2538
|
-
}), unpackConfig.mpa || (config =
|
|
2474
|
+
}), unpackConfig.mpa || (config = function({ config, unpackConfig }) {
|
|
2475
|
+
let htmlConfig = unpackConfig.html || {}, { template, templateContent } = getHtmlTemplateOrContent(htmlConfig.template, unpackConfig.root), templateParameters = {
|
|
2476
|
+
mountId: htmlConfig.mountId,
|
|
2477
|
+
title: isFunction(htmlConfig.title) ? htmlConfig.title({
|
|
2478
|
+
entryName: 'index'
|
|
2479
|
+
}) : htmlConfig.title || '',
|
|
2480
|
+
headTag: htmlConfig.headTag || '',
|
|
2481
|
+
...htmlConfig.templateParameters
|
|
2482
|
+
};
|
|
2483
|
+
return config.plugins.push(new rspack.HtmlRspackPlugin({
|
|
2484
|
+
template,
|
|
2485
|
+
templateContent,
|
|
2486
|
+
templateParameters,
|
|
2487
|
+
minify: !1,
|
|
2488
|
+
chunks: [
|
|
2489
|
+
'main'
|
|
2490
|
+
]
|
|
2491
|
+
})), config;
|
|
2492
|
+
}({
|
|
2539
2493
|
config,
|
|
2540
2494
|
unpackConfig
|
|
2541
|
-
})), unpackConfig.performance?.cache && (config =
|
|
2495
|
+
})), unpackConfig.performance?.cache && (config = function({ config, unpackConfig, envFilePaths }) {
|
|
2496
|
+
var root;
|
|
2497
|
+
let rootPackageJson, browserslistConfig, tsconfigPath, buildDependencies, unpackConfigPath, tailwindConfig, cacheConfig = isPlainObject(unpackConfig.performance.cache) ? unpackConfig.performance.cache : {}, buildDependencies1 = (root = unpackConfig.root, rootPackageJson = node_path.join(root, 'package.json'), browserslistConfig = node_path.join(root, '.browserslistrc'), tsconfigPath = node_path.join(root, 'tsconfig.json'), buildDependencies = {}, node_fs.existsSync(rootPackageJson) && (buildDependencies.packageJson = [
|
|
2498
|
+
rootPackageJson
|
|
2499
|
+
]), node_fs.existsSync(browserslistConfig) && (buildDependencies.browserslistrc = [
|
|
2500
|
+
browserslistConfig
|
|
2501
|
+
]), node_fs.existsSync(tsconfigPath) && (buildDependencies.tsconfig = [
|
|
2502
|
+
tsconfigPath
|
|
2503
|
+
]), (unpackConfigPath = resolveConfigPath(root)) && (buildDependencies.unpackConfig = [
|
|
2504
|
+
unpackConfigPath
|
|
2505
|
+
]), (tailwindConfig = findExists([
|
|
2506
|
+
'ts',
|
|
2507
|
+
'js',
|
|
2508
|
+
'cjs',
|
|
2509
|
+
'mjs'
|
|
2510
|
+
].map((ext)=>node_path.join(root, `tailwind.config.${ext}`)))) && (buildDependencies.tailwindcss = [
|
|
2511
|
+
tailwindConfig
|
|
2512
|
+
]), buildDependencies);
|
|
2513
|
+
buildDependencies1.userBuildDependencies = cacheConfig.buildDependencies || [], buildDependencies1.envFilePaths = envFilePaths;
|
|
2514
|
+
let cacheDirectory = node_path.resolve(unpackConfig.root, cacheConfig.cacheDirectory || `${unpackConfig._context.cachePath}/cache`, utils_isDevServer() ? 'dev' : 'build');
|
|
2515
|
+
return dist_default()(config, {
|
|
2516
|
+
cache: {
|
|
2517
|
+
type: 'persistent',
|
|
2518
|
+
buildDependencies: Object.values(buildDependencies1).flat(),
|
|
2519
|
+
storage: {
|
|
2520
|
+
type: 'filesystem',
|
|
2521
|
+
directory: cacheDirectory
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
}({
|
|
2542
2526
|
config,
|
|
2543
2527
|
unpackConfig,
|
|
2544
2528
|
envFilePaths
|
|
@@ -2670,7 +2654,7 @@ async function unpackDev(originalConfig) {
|
|
|
2670
2654
|
...middlewares
|
|
2671
2655
|
]);
|
|
2672
2656
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
2673
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.7.
|
|
2657
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.7.2`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - getUnpackStartTime()))} ${colors.dim('ms')}\n`), printServerUrls({
|
|
2674
2658
|
port,
|
|
2675
2659
|
host: unpackConfig.server.host,
|
|
2676
2660
|
base: unpackConfig.base
|
|
@@ -2684,7 +2668,7 @@ async function unpackDev(originalConfig) {
|
|
|
2684
2668
|
function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'unpack' }) {
|
|
2685
2669
|
let _context = {
|
|
2686
2670
|
callerName,
|
|
2687
|
-
version: "4.7.
|
|
2671
|
+
version: "4.7.2",
|
|
2688
2672
|
cachePath: 'node_modules/.unpack'
|
|
2689
2673
|
}, resolveConfig = (mode)=>{
|
|
2690
2674
|
let rootPath, outputPath, basePath, cachedTraceMap, fs, isValidMethodName, parseFrame, formatOriginalLocation, formatFullStack, resolveErrorLocationAndStack, root, alias, shouldTransformDeepImport, preJsAssets, jsAssets, cssAssets, bundledDepsCachePath, deepImportPkgPattern, deepImportRegex, plugin, tsconfigPath, root1, uno, generated, configOrPath, defaults, VIRTUAL_UNO_CSS_ID, rootDir, isMpa, unoConfig, configFilePath, unpackConfigPath, tokens, requestedLayers, tasks, unocssCacheDir, tokensCachePath, layersCachePath, timeCachePath, configHashCachePath, generatedCachePath, bundlerCacheDir, cachedTokensSize, cachedLayersSize, isCompiling, resolveUnocssConfig, flushTasks, getVirtualModuleContent, hash, restoreSkipCode, applyUnoTransformers, options, rootPath1, registerCode, namesCode, defaultConfig = {
|
|
@@ -2714,7 +2698,6 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2714
2698
|
performance: {
|
|
2715
2699
|
printFileSize: !0
|
|
2716
2700
|
},
|
|
2717
|
-
typeCheck: !0,
|
|
2718
2701
|
envPrefix: [
|
|
2719
2702
|
'PUBLIC_',
|
|
2720
2703
|
'VITE_'
|
|
@@ -3357,7 +3340,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
3357
3340
|
}),
|
|
3358
3341
|
{
|
|
3359
3342
|
name: 'unpack:type-check',
|
|
3360
|
-
apply: (config, { command })=>(tsconfigPath = node_path.resolve(config.root, 'tsconfig.json'),
|
|
3343
|
+
apply: (config, { command })=>(tsconfigPath = node_path.resolve(config.root, 'tsconfig.json'), config.typeCheck && 'dev' === command && node_fs.existsSync(tsconfigPath)),
|
|
3361
3344
|
async rspackConfig (config, { unpackConfig }) {
|
|
3362
3345
|
let { TsCheckerRspackPlugin } = await import("ts-checker-rspack-plugin");
|
|
3363
3346
|
return config.plugins.push(new TsCheckerRspackPlugin({
|
|
@@ -3763,7 +3746,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
3763
3746
|
let mode = watch ? 'development' : 'production';
|
|
3764
3747
|
setNodeEnv(mode);
|
|
3765
3748
|
let config = resolveConfig(mode);
|
|
3766
|
-
console.log(colors.brand(`${callerName} v4.7.
|
|
3749
|
+
console.log(colors.brand(`${callerName} v4.7.2`), colors.cyan(`building for ${mode}...`)), await unpackBuild(config);
|
|
3767
3750
|
},
|
|
3768
3751
|
dev: async ()=>{
|
|
3769
3752
|
setUnpackStartTime(performance.now());
|
|
@@ -3917,8 +3900,8 @@ function runCLI() {
|
|
|
3917
3900
|
logger_logger.clear(), logger_logger.info(`${node_path.basename(file)} changed, restarting server...`), await watcher.close(), await cleanUpBeforeRestart(), startServer(options);
|
|
3918
3901
|
});
|
|
3919
3902
|
});
|
|
3920
|
-
devCommand.option('-o, --open [url]', 'Open browser on startup').option('--port <port>', 'Specify port').option('--host', 'Expose hostname').action(startServer), cli.help(), cli.version("4.7.
|
|
3903
|
+
devCommand.option('-o, --open [url]', 'Open browser on startup').option('--port <port>', 'Specify port').option('--host', 'Expose hostname').action(startServer), cli.help(), cli.version("4.7.2"), cli.parse();
|
|
3921
3904
|
}
|
|
3922
3905
|
let launch_editor = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/index.js");
|
|
3923
3906
|
var launch_editor_default_0 = __webpack_require__.n(launch_editor)(), src_CSS_MODULES_NAMED_EXPORT = !1;
|
|
3924
|
-
export { ALL_INTERFACES_IPV4, CSS_MODULES_EXPORTS_CONVENTION, CSS_MODULES_LOCAL_IDENT_NAME, CSS_REGEX, DEV_DEFAULT_FILENAME, JSX_REGEX, JS_REGEX, LESS_REGEX, LOCALHOST, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, SASS_REGEX, SCRIPT_REGEX, TEMPLATE_CONTENT, addRestartCleaner, applyHtmlTagDescriptors, cleanUpBeforeRestart, clearLine, colors, convertBasicAnsiColors, createChokidar, createUnpack, debounce, defineConfig, dist_default_0 as mergeConfig, emptyDir, ensureDir, esVersionToBrowserslist, external_tinyglobby_glob as glob, findExists, getAddressUrls, getCompiledPkgPath, getCurrentUnpackConfig, getDevServerPort, getFilesContentHash, getHtmlTemplateOrContent, getIpv4Interfaces, getNodeEnv, getOrSetDefault, getPathInJs, getPort, getTime, getUnpackStartTime, getUserDepPath, getUserDepVersion, globSync, isBoolean, isDebug, isDev, isEmptyDir,
|
|
3907
|
+
export { ALL_INTERFACES_IPV4, CSS_MODULES_EXPORTS_CONVENTION, CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_RESOURCE_QUERY_REGEX, CSS_REGEX, DEV_DEFAULT_FILENAME, JSX_REGEX, JS_REGEX, LESS_REGEX, LOCALHOST, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, SASS_REGEX, SCRIPT_REGEX, TEMPLATE_CONTENT, addRestartCleaner, applyHtmlTagDescriptors, cleanUpBeforeRestart, clearLine, colors, convertBasicAnsiColors, createChokidar, createUnpack, debounce, defineConfig, dist_default_0 as mergeConfig, emptyDir, ensureDir, esVersionToBrowserslist, external_tinyglobby_glob as glob, findExists, getAddressUrls, getCompiledPkgPath, getCurrentUnpackConfig, getDevServerPort, getFilesContentHash, getHtmlTemplateOrContent, getIpv4Interfaces, getNodeEnv, getOrSetDefault, getPathInJs, getPort, getTime, getUnpackStartTime, getUserDepPath, getUserDepVersion, globSync, isBoolean, isDebug, isDev, isEmptyDir, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isRegExp, isString, isUndefined, isWin, launch_editor_default_0 as launchEditor, loadConfig, loadConfigFromFile, logUpdate, logger_LogColor as LogColor, logger_logger as logger, normalizePublicPath, openBrowser, pLimit, pathToExportIdentifier, prettyTime, printServerUrls, removeDir, renderHtmlTagDescriptor, resolveConfigPath, rspack, runCLI, set, setCurrentUnpackConfig, setDevServer, setDevServerPort, setNodeEnv, setUnpackStartTime, src_CSS_MODULES_NAMED_EXPORT as CSS_MODULES_NAMED_EXPORT, trackPerformance, utils_isDevServer as isDevServer, utils_isProd as isProd };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import node_fs from "node:fs";
|
|
2
2
|
import node_path from "node:path";
|
|
3
3
|
import postcss from "postcss";
|
|
4
|
-
let NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
|
|
4
|
+
let NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, CSS_MODULES_RESOURCE_QUERY_REGEX = /[?&]module(?:[=&]|$)/, enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
|
|
5
5
|
function readUntilMatchingParen(input, openParenIndex) {
|
|
6
6
|
let depth = 0, quote = null;
|
|
7
7
|
for(let i = openParenIndex; i < input.length; i++){
|
|
@@ -31,7 +31,7 @@ export default function(content, ...rest) {
|
|
|
31
31
|
failed: (e)=>callback(e),
|
|
32
32
|
success: ()=>callback(null, content, ...rest)
|
|
33
33
|
}), { resourcePath, resourceQuery } = this;
|
|
34
|
-
if (!resourceQuery
|
|
34
|
+
if (!resourceQuery || !CSS_MODULES_RESOURCE_QUERY_REGEX.test(resourceQuery) || NODE_MODULES_REGEX.test(resourcePath)) return void success();
|
|
35
35
|
let { read, write } = (dirName = node_path.dirname(resourcePath), baseName = node_path.basename(resourcePath), filename = node_path.join(dirName, `${baseName}.d.ts`), {
|
|
36
36
|
read: (handler)=>node_fs.readFile(filename, {
|
|
37
37
|
encoding: 'utf-8'
|
|
@@ -27,4 +27,5 @@ export declare const SCRIPT_REGEX: RegExp;
|
|
|
27
27
|
export declare const CSS_REGEX: RegExp;
|
|
28
28
|
export declare const LESS_REGEX: RegExp;
|
|
29
29
|
export declare const SASS_REGEX: RegExp;
|
|
30
|
+
export declare const CSS_MODULES_RESOURCE_QUERY_REGEX: RegExp;
|
|
30
31
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,8BAA8B,eAAe,CAAA;AAC1D,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAC7C,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,mBAAmB,YAAY,CAAA;AAC5C,eAAO,MAAM,SAAS,cAAc,CAAA;AACpC,eAAO,MAAM,gBAAgB,GAAI;;;;CAA0C,WAa1E,CAAA;AACD,eAAO,MAAM,QAAQ,QAAa,CAAA;AAClC,eAAO,MAAM,SAAS,QAAc,CAAA;AACpC,eAAO,MAAM,YAAY,QAAe,CAAA;AACxC,eAAO,MAAM,SAAS,QAAY,CAAA;AAClC,eAAO,MAAM,UAAU,QAAa,CAAA;AACpC,eAAO,MAAM,UAAU,QAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,8BAA8B,eAAe,CAAA;AAC1D,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAC7C,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,mBAAmB,YAAY,CAAA;AAC5C,eAAO,MAAM,SAAS,cAAc,CAAA;AACpC,eAAO,MAAM,gBAAgB,GAAI;;;;CAA0C,WAa1E,CAAA;AACD,eAAO,MAAM,QAAQ,QAAa,CAAA;AAClC,eAAO,MAAM,SAAS,QAAc,CAAA;AACpC,eAAO,MAAM,YAAY,QAAe,CAAA;AACxC,eAAO,MAAM,SAAS,QAAY,CAAA;AAClC,eAAO,MAAM,UAAU,QAAa,CAAA;AACpC,eAAO,MAAM,UAAU,QAAgB,CAAA;AACvC,eAAO,MAAM,gCAAgC,QAAyB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAW,YAAY,EAAiB,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAW,YAAY,EAAiB,MAAM,SAAS,CAAA;AAmDnE,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EAAE,UAAU,EAClB,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;wBAkB4B;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;EA8B/C"}
|
package/dist-types/fs.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export declare function isEmptyDir(path: string): boolean;
|
|
|
6
6
|
* @returns The file path if exists, or false if no file exists.
|
|
7
7
|
*/
|
|
8
8
|
export declare const findExists: (files: string[]) => string | false;
|
|
9
|
-
export declare function pathExists(path: string): Promise<boolean>;
|
|
10
|
-
export declare function isFileExists(file: string): Promise<boolean>;
|
|
11
9
|
export declare const removeDir: (dir: string) => void;
|
|
12
10
|
export declare const emptyDir: (dir: string) => void;
|
|
13
11
|
export declare const ensureDir: (dir: string) => void;
|
package/dist-types/fs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../src/fs.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,OAAO,GAAG,SAMvD,CAAA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,KAAG,MAAM,GAAG,KAOrD,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../src/fs.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,OAAO,GAAG,SAMvD,CAAA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,KAAG,MAAM,GAAG,KAOrD,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,SAEpC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,SASnC,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,SAIpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadEnv.d.ts","sourceRoot":"","sources":["../src/loadEnv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loadEnv.d.ts","sourceRoot":"","sources":["../src/loadEnv.ts"],"names":[],"mappings":"AAiDA,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB;;;;;;;;;QASI;IACJ,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IACjD;;;;;;;;;;;;QAYI;IACJ,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,wBAAgB,OAAO,CAAC,EACtB,GAAmB,EACnB,IAAmB,EACnB,QAAsB,EACtB,UAAkD,GACnD,GAAE,cAAmB,GAAG,aAAa,CA0ErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/rspack-config/cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/rspack-config/cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAoC3D,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,YAAY,EACZ,YAAY,GACb,EAAE;IACD,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,EAAE,YAAY,CAAA;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,GAAG,YAAY,CAuBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/rspack-config/css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/rspack-config/css.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAU,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAUnE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,YAAY,CA4Ef"}
|
|
@@ -39,6 +39,7 @@ export declare const getSassLoader: (unpackConfig: UnpackConfig) => {
|
|
|
39
39
|
export declare const getLessLoader: (unpackConfig: UnpackConfig) => {
|
|
40
40
|
loader: string;
|
|
41
41
|
options: import("../types").LessLoaderOptions;
|
|
42
|
+
parallel: boolean;
|
|
42
43
|
};
|
|
43
44
|
export {};
|
|
44
45
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/rspack-config/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAA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3D,MAAM,CAAC,cAAc,EAAE,CAAA;AAElD,eAAO,MAAM,YAAY,GAAI,cAAc,YAAY;;;;;;;;;;;;;;;;CAatD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,cAAc,YAAY;;;;;;;;;;;CAUvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,cAAc,YAAY;;;;CAevD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/rspack-config/html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG3D,
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/rspack-config/html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG3D,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,YAAY,CA2Bf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedCssModulesLoader.d.ts","sourceRoot":"","sources":["../../../src/rspack-config/loaders/typedCssModulesLoader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedCssModulesLoader.d.ts","sourceRoot":"","sources":["../../../src/rspack-config/loaders/typedCssModulesLoader.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AA0RvC,MAAM,CAAC,OAAO,WAAW,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAwC1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeCss.d.ts","sourceRoot":"","sources":["../../src/rspack-config/nativeCss.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeCss.d.ts","sourceRoot":"","sources":["../../src/rspack-config/nativeCss.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAU,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAUnE,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,YAAY,CAyDf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,cAAc,CAAA;AAErB,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,YAAY,CAAA;AAElD,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,CAAA;AAErC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,aAAa,CAAA;AAE/C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,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EACA,OAAO,GACP;QACE;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;QACxB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.2",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"bin": {
|
|
7
8
|
"unpack": "./bin/unpack.js"
|
|
8
9
|
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist-types/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./package.json": "./package.json"
|
|
15
|
-
},
|
|
16
|
-
"types": "./dist-types/index.d.ts",
|
|
17
|
-
"sideEffects": false,
|
|
18
|
-
"keywords": [],
|
|
19
|
-
"authors": [],
|
|
20
|
-
"license": "MIT",
|
|
21
10
|
"files": [
|
|
22
11
|
"bin",
|
|
23
12
|
"static",
|
|
@@ -25,24 +14,23 @@
|
|
|
25
14
|
"compiled",
|
|
26
15
|
"dist-types"
|
|
27
16
|
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"types": "./dist-types/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist-types/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
28
27
|
"publishConfig": {
|
|
29
28
|
"access": "public"
|
|
30
29
|
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@unocss/core": "66.6.3",
|
|
33
|
-
"css-loader": "7.1.4",
|
|
34
|
-
"launch-editor": "2.13.1",
|
|
35
|
-
"less-loader": "12.3.1",
|
|
36
|
-
"postcss-loader": "8.2.1",
|
|
37
|
-
"sass-loader": "16.0.7",
|
|
38
|
-
"semver": "7.7.4",
|
|
39
|
-
"style-loader": "4.0.0",
|
|
40
|
-
"webpack-merge": "6.0.1"
|
|
41
|
-
},
|
|
42
30
|
"dependencies": {
|
|
43
31
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
44
32
|
"@rsdoctor/rspack-plugin": "1.5.2",
|
|
45
|
-
"@rspack/core": "2.0.0-beta.
|
|
33
|
+
"@rspack/core": "2.0.0-beta.5",
|
|
46
34
|
"@rspack/dev-server": "1.2.1",
|
|
47
35
|
"@tailwindcss/webpack": "4.2.1",
|
|
48
36
|
"cac": "7.0.0",
|
|
@@ -50,16 +38,28 @@
|
|
|
50
38
|
"dotenv-expand": "12.0.3",
|
|
51
39
|
"jiti": "2.6.1",
|
|
52
40
|
"magic-string": "0.30.21",
|
|
53
|
-
"oxc-minify": "0.
|
|
41
|
+
"oxc-minify": "0.116.0",
|
|
54
42
|
"portfinder": "1.0.38",
|
|
55
|
-
"postcss": "8.5.
|
|
43
|
+
"postcss": "8.5.8",
|
|
56
44
|
"stacktrace-parser": "0.1.11",
|
|
57
45
|
"tinyglobby": "0.2.15",
|
|
58
46
|
"ts-checker-rspack-plugin": "1.3.0"
|
|
59
47
|
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@unocss/core": "66.6.4",
|
|
50
|
+
"css-loader": "7.1.4",
|
|
51
|
+
"launch-editor": "2.13.1",
|
|
52
|
+
"less-loader": "12.3.1",
|
|
53
|
+
"postcss-loader": "8.2.1",
|
|
54
|
+
"sass-loader": "16.0.7",
|
|
55
|
+
"semver": "7.7.4",
|
|
56
|
+
"style-loader": "4.0.0",
|
|
57
|
+
"webpack-merge": "6.0.1"
|
|
58
|
+
},
|
|
60
59
|
"peerDependencies": {
|
|
61
60
|
"@unocss/core": "*"
|
|
62
61
|
},
|
|
62
|
+
"authors": [],
|
|
63
63
|
"scripts": {
|
|
64
64
|
"dev": "rslib build --watch",
|
|
65
65
|
"build": "pnpm run prebundle && rslib build",
|