@unpackjs/core 3.0.0 → 3.1.1
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 +22 -22
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.cjs +65 -32
- package/dist/index.js +63 -31
- package/dist-types/bundler-config/cache.d.ts.map +1 -1
- package/dist-types/bundler-config/css.d.ts.map +1 -1
- package/dist-types/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/bundler-config/loaders/typedCssModulesLoader.d.ts +1 -2
- package/dist-types/bundler-config/loaders/typedCssModulesLoader.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/jsMinify.d.ts +2 -3
- package/dist-types/bundler-config/plugins/jsMinify.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts +2 -2
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/progress/helpers.d.ts +1 -1
- package/dist-types/bundler-config/plugins/progress/helpers.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/progress/index.d.ts +4 -3
- package/dist-types/bundler-config/plugins/progress/index.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts +2 -3
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts.map +1 -1
- package/dist-types/prebundleDeps.d.ts.map +1 -1
- package/dist-types/reporter.d.ts +2 -2
- package/dist-types/reporter.d.ts.map +1 -1
- package/dist-types/run/build.d.ts.map +1 -1
- package/dist-types/types/chunkSplit.d.ts +3 -8
- package/dist-types/types/chunkSplit.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +10 -6
- package/dist-types/types/config.d.ts.map +1 -1
- package/package.json +3 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
8877: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(5255);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(6578).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
5255: (__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
15
|
var _package = _interopRequireDefault(__nccwpck_require__(444));
|
|
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__(9046));
|
|
18
|
+
var _plugins = __nccwpck_require__(8796);
|
|
19
|
+
var _utils = __nccwpck_require__(6578);
|
|
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
|
+
8796: (__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__(1639),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(8218),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1853));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
8218: (__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__(9028);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(6578);
|
|
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
|
+
1639: (__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__(2948),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(6578);
|
|
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
|
+
1853: (__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__(2948),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(6578);
|
|
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
|
+
6578: (__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;
|
|
@@ -7475,7 +7475,7 @@
|
|
|
7475
7475
|
module.exports = exports.default;
|
|
7476
7476
|
},
|
|
7477
7477
|
2948: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
7478
|
-
var parse = __nccwpck_require__(
|
|
7478
|
+
var parse = __nccwpck_require__(4020);
|
|
7479
7479
|
var walk = __nccwpck_require__(8483);
|
|
7480
7480
|
var stringify = __nccwpck_require__(169);
|
|
7481
7481
|
function ValueParser(value) {
|
|
@@ -7497,7 +7497,7 @@
|
|
|
7497
7497
|
ValueParser.stringify = stringify;
|
|
7498
7498
|
module.exports = ValueParser;
|
|
7499
7499
|
},
|
|
7500
|
-
|
|
7500
|
+
4020: (module) => {
|
|
7501
7501
|
var openParentheses = "(".charCodeAt(0);
|
|
7502
7502
|
var closeParentheses = ")".charCodeAt(0);
|
|
7503
7503
|
var singleQuote = "'".charCodeAt(0);
|
|
@@ -7964,7 +7964,7 @@
|
|
|
7964
7964
|
"use strict";
|
|
7965
7965
|
module.exports = require("util");
|
|
7966
7966
|
},
|
|
7967
|
-
|
|
7967
|
+
9046: (module) => {
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = JSON.parse(
|
|
7970
7970
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
@@ -7999,6 +7999,6 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8001
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8002
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(8877);
|
|
8003
8003
|
module.exports = __webpack_exports__;
|
|
8004
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
699: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(245)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
245: (__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 _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(248));
|
|
13
|
+
var _utils = __nccwpck_require__(832);
|
|
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
|
+
832: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
928: (module) => {
|
|
313
313
|
module.exports = require("path");
|
|
314
314
|
},
|
|
315
|
-
|
|
315
|
+
248: (module) => {
|
|
316
316
|
module.exports = JSON.parse(
|
|
317
317
|
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/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-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/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-contrib/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-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
318
318
|
);
|
|
@@ -340,6 +340,6 @@
|
|
|
340
340
|
}
|
|
341
341
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
342
342
|
__nccwpck_require__.ab = __dirname + "/";
|
|
343
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
343
|
+
var __webpack_exports__ = __nccwpck_require__(699);
|
|
344
344
|
module.exports = __webpack_exports__;
|
|
345
345
|
})();
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
7768: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(390)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
390: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5327
5327
|
"use strict";
|
|
5328
5328
|
var __webpack_unused_export__;
|
|
5329
5329
|
__webpack_unused_export__ = { value: true };
|
|
5330
5330
|
exports["default"] = loader;
|
|
5331
5331
|
var _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
5332
5332
|
var _package = _interopRequireDefault(__nccwpck_require__(444));
|
|
5333
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5334
|
-
var _utils = __nccwpck_require__(
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(779));
|
|
5334
|
+
var _utils = __nccwpck_require__(7847);
|
|
5335
5335
|
function _interopRequireDefault(obj) {
|
|
5336
5336
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
5337
5337
|
}
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
7847: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6607,7 +6607,7 @@
|
|
|
6607
6607
|
return keywords.has(word);
|
|
6608
6608
|
}
|
|
6609
6609
|
},
|
|
6610
|
-
|
|
6610
|
+
779: (module) => {
|
|
6611
6611
|
"use strict";
|
|
6612
6612
|
module.exports = JSON.parse(
|
|
6613
6613
|
'{"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}',
|
|
@@ -6717,6 +6717,6 @@
|
|
|
6717
6717
|
})();
|
|
6718
6718
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6719
6719
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6720
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6720
|
+
var __webpack_exports__ = __nccwpck_require__(7768);
|
|
6721
6721
|
module.exports = __webpack_exports__;
|
|
6722
6722
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
927: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(409);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
409: (__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 _url = _interopRequireDefault(__nccwpck_require__(16));
|
|
4808
4808
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(268));
|
|
4810
|
+
var _utils = __nccwpck_require__(964);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4917,7 +4917,7 @@
|
|
|
4917
4917
|
}
|
|
4918
4918
|
var _default = (exports["default"] = loader);
|
|
4919
4919
|
},
|
|
4920
|
-
|
|
4920
|
+
964: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
"use strict";
|
|
5583
5583
|
module.exports = require("url");
|
|
5584
5584
|
},
|
|
5585
|
-
|
|
5585
|
+
268: (module) => {
|
|
5586
5586
|
"use strict";
|
|
5587
5587
|
module.exports = JSON.parse(
|
|
5588
5588
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/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-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/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-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5612,6 +5612,6 @@
|
|
|
5612
5612
|
}
|
|
5613
5613
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5614
5614
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5615
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5615
|
+
var __webpack_exports__ = __nccwpck_require__(927);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -324,15 +324,15 @@ for(var __webpack_i__ in (()=>{
|
|
|
324
324
|
let root = (null == cliOptions ? void 0 : cliOptions.root) ? external_node_path_default().resolve(cliOptions.root) : process.cwd(), configFilePath = resolveConfigPath(root, null == cliOptions ? void 0 : cliOptions.config), configExport = {};
|
|
325
325
|
if (configFilePath) {
|
|
326
326
|
if (isNodeVersionAtLeast(23, 6) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
|
|
327
|
-
logger_logger.debug('
|
|
327
|
+
logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
|
|
328
328
|
try {
|
|
329
329
|
let configFileURL = (0, external_node_url_namespaceObject.pathToFileURL)(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
|
|
330
330
|
configExport = exportModule.default ? exportModule.default : exportModule;
|
|
331
331
|
} catch (err) {
|
|
332
|
-
throw logger_logger.error(
|
|
332
|
+
throw logger_logger.error('failed to load config file with native loader:', colors.dim(configFilePath)), err;
|
|
333
333
|
}
|
|
334
334
|
} else {
|
|
335
|
-
logger_logger.debug('
|
|
335
|
+
logger_logger.debug('loading config file with jiti:', colors.dim(configFilePath));
|
|
336
336
|
try {
|
|
337
337
|
let jiti = (0, external_jiti_namespaceObject.createJiti)(__filename, {
|
|
338
338
|
moduleCache: !1,
|
|
@@ -346,7 +346,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
346
346
|
default: !0
|
|
347
347
|
});
|
|
348
348
|
} catch (err) {
|
|
349
|
-
throw logger_logger.error(
|
|
349
|
+
throw logger_logger.error('failed to load config file with jiti:', colors.dim(configFilePath)), err;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
if ('function' == typeof configExport) {
|
|
@@ -354,7 +354,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
354
354
|
env: getNodeEnv(),
|
|
355
355
|
command: process.argv[2]
|
|
356
356
|
};
|
|
357
|
-
if (void 0 === (configExport = await configExport(params))) throw Error('
|
|
357
|
+
if (void 0 === (configExport = await configExport(params))) throw Error('unpack config function must return a config object.');
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
return (null == cliOptions ? void 0 : cliOptions.port) && setValueByPath(configExport, [
|
|
@@ -398,8 +398,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
398
398
|
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
399
399
|
}), Array.from(pluginMap.values());
|
|
400
400
|
}
|
|
401
|
-
let external_json5_namespaceObject = require("json5");
|
|
402
|
-
var external_json5_default = __webpack_require__.n(external_json5_namespaceObject);
|
|
403
401
|
let external_dotenv_expand_namespaceObject = require("dotenv-expand"), isFileSync = (filePath)=>{
|
|
404
402
|
try {
|
|
405
403
|
var _fs_statSync;
|
|
@@ -455,8 +453,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
455
453
|
};
|
|
456
454
|
}
|
|
457
455
|
async function applyCacheConfig({ config, unpackConfig, envFilePaths }) {
|
|
458
|
-
var _unpackConfig_build, _unpackConfig_dev;
|
|
459
|
-
if (!(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache) || utils_isDevServer() && (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation)) return config;
|
|
460
456
|
let cacheConfig = isPlainObject(unpackConfig.build.cache) ? unpackConfig.build.cache : {}, buildDependencies = await getBuildDependencies(unpackConfig.root, cacheConfig.buildDependencies || [], envFilePaths), cacheDirectory = cacheConfig.cacheDirectory;
|
|
461
457
|
return cacheDirectory && (cacheDirectory = external_node_path_default().resolve(unpackConfig.root, cacheDirectory)), logger_logger.info('persistent cache enabled'), config = mergeConfig(config, {
|
|
462
458
|
cache: !0,
|
|
@@ -646,7 +642,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
646
642
|
apply(compiler) {
|
|
647
643
|
let meta = JSON.stringify({
|
|
648
644
|
name: jsMinify_PLUGIN_NAME,
|
|
649
|
-
version: "3.
|
|
645
|
+
version: "3.1.1",
|
|
650
646
|
options: this.minifyOptions
|
|
651
647
|
});
|
|
652
648
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -869,6 +865,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
869
865
|
chunkGroupMap.CSS.chunks.push(chunk);
|
|
870
866
|
break;
|
|
871
867
|
case '.js':
|
|
868
|
+
case '.wasm':
|
|
872
869
|
chunkGroupMap.JS.chunks.push(chunk);
|
|
873
870
|
break;
|
|
874
871
|
default:
|
|
@@ -979,8 +976,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
979
976
|
}
|
|
980
977
|
let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
981
978
|
async function getBundlerConfig(unpackConfig) {
|
|
982
|
-
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments;
|
|
983
|
-
let tsconfigPath = external_node_path_default().resolve(unpackConfig.root, 'tsconfig.json'), isTs = external_node_fs_default().existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin,
|
|
979
|
+
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments, _unpackConfig_build9, _unpackConfig_dev1;
|
|
980
|
+
let circularCount, tsconfigPath = external_node_path_default().resolve(unpackConfig.root, 'tsconfig.json'), isTs = external_node_fs_default().existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
|
|
984
981
|
'PUBLIC_'
|
|
985
982
|
], processEnv = process.env } = {}) {
|
|
986
983
|
if ('local' === mode) throw Error(`${colors.yellow('local')} cannot be used as a value for env mode, because ${colors.yellow('.env.local')} represents a temporary local file. Please use another value.`);
|
|
@@ -1048,7 +1045,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1048
1045
|
crossOriginLoading: 'anonymous',
|
|
1049
1046
|
pathinfo: !1,
|
|
1050
1047
|
publicPath: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.publicPath,
|
|
1051
|
-
webassemblyModuleFilename:
|
|
1048
|
+
webassemblyModuleFilename: 'js/async/[hash].module.wasm',
|
|
1052
1049
|
assetModuleFilename: 'assets/[name].[contenthash:8][ext]'
|
|
1053
1050
|
},
|
|
1054
1051
|
infrastructureLogging: {
|
|
@@ -1058,20 +1055,17 @@ for(var __webpack_i__ in (()=>{
|
|
|
1058
1055
|
module: {
|
|
1059
1056
|
rules: [
|
|
1060
1057
|
{
|
|
1061
|
-
test: /\.(png|
|
|
1058
|
+
test: /\.(png|jpe?g|gif|webp)$/i,
|
|
1062
1059
|
type: 'asset'
|
|
1063
1060
|
},
|
|
1064
1061
|
{
|
|
1065
|
-
test: /\.(
|
|
1062
|
+
test: /\.(woff2?|eot|ttf|otf)$/i,
|
|
1066
1063
|
type: 'asset'
|
|
1067
1064
|
},
|
|
1068
1065
|
{
|
|
1069
1066
|
test: /\.wasm$/,
|
|
1070
1067
|
dependency: 'url',
|
|
1071
|
-
type: 'asset/resource'
|
|
1072
|
-
generator: {
|
|
1073
|
-
filename: wasmFilename
|
|
1074
|
-
}
|
|
1068
|
+
type: 'asset/resource'
|
|
1075
1069
|
}
|
|
1076
1070
|
]
|
|
1077
1071
|
},
|
|
@@ -1135,17 +1129,54 @@ for(var __webpack_i__ in (()=>{
|
|
|
1135
1129
|
}
|
|
1136
1130
|
}),
|
|
1137
1131
|
new ProgressPlugin(),
|
|
1138
|
-
unpackConfig.lint && new OxlintPlugin()
|
|
1132
|
+
unpackConfig.lint && new OxlintPlugin(),
|
|
1133
|
+
unpackConfig.detectCircular && (circularCount = 0, new core_namespaceObject.rspack.CircularDependencyRspackPlugin({
|
|
1134
|
+
exclude: /node_modules/,
|
|
1135
|
+
onStart () {
|
|
1136
|
+
circularCount = 0;
|
|
1137
|
+
},
|
|
1138
|
+
onDetected (_, modules) {
|
|
1139
|
+
circularCount++, console.log(''), logger_logger.warn('circular dependency detected:');
|
|
1140
|
+
let uniquePaths = modules.map((module)=>{
|
|
1141
|
+
let filePath = module.replace(/^.*!/, ''), relativePath = external_node_path_default().relative(unpackConfig.root, filePath);
|
|
1142
|
+
return relativePath.startsWith('..') ? filePath : relativePath;
|
|
1143
|
+
}).slice(0, -1), totalLength = 2 + uniquePaths.join(" \u2192 ").length;
|
|
1144
|
+
if (totalLength > (process.stdout.columns || 80)) {
|
|
1145
|
+
var paths = uniquePaths;
|
|
1146
|
+
console.log('');
|
|
1147
|
+
let arrow = "\u21B3 ", lastIndex = paths.length - 1;
|
|
1148
|
+
paths.forEach((p, i)=>{
|
|
1149
|
+
switch(i){
|
|
1150
|
+
case 0:
|
|
1151
|
+
console.log(` ${p}`);
|
|
1152
|
+
break;
|
|
1153
|
+
case lastIndex:
|
|
1154
|
+
console.log(` ${arrow}${p} ${colors.dim('(cycle introduced)')}`);
|
|
1155
|
+
break;
|
|
1156
|
+
default:
|
|
1157
|
+
console.log(` ${arrow}${p}`);
|
|
1158
|
+
}
|
|
1159
|
+
}), console.log(` ${arrow}${paths[0]}`), console.log('');
|
|
1160
|
+
} else {
|
|
1161
|
+
var paths1 = uniquePaths;
|
|
1162
|
+
let line1 = ' ', upArrowPos = 2, downArrowPos = 0;
|
|
1163
|
+
paths1.forEach((p, i)=>{
|
|
1164
|
+
line1 += p, i < paths1.length - 1 ? line1 += " \u2192 " : downArrowPos = line1.length - 1;
|
|
1165
|
+
});
|
|
1166
|
+
let lineLength = downArrowPos - upArrowPos;
|
|
1167
|
+
console.log(''), console.log(line1), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2191" + ' '.repeat(downArrowPos - upArrowPos - 1) + "\u2193"), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2514" + "\u2500".repeat(lineLength - 1) + "\u2518"), console.log('');
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
onEnd () {
|
|
1171
|
+
circularCount > 0 && console.log(`Found ${circularCount} circular ${1 === circularCount ? 'dependency' : 'dependencies'}.`);
|
|
1172
|
+
}
|
|
1173
|
+
}))
|
|
1139
1174
|
].filter(Boolean),
|
|
1140
1175
|
externals: unpackConfig.externals,
|
|
1141
1176
|
resolve: {
|
|
1177
|
+
tsConfig: isTs ? tsconfigPath : void 0,
|
|
1142
1178
|
alias: {
|
|
1143
1179
|
'@': external_node_path_default().resolve(unpackConfig.root, 'src'),
|
|
1144
|
-
...isTs ? (()=>{
|
|
1145
|
-
var _json5_parse_compilerOptions, _json5_parse;
|
|
1146
|
-
let paths = null == (_json5_parse = external_json5_default().parse(external_node_fs_default().readFileSync(tsconfigPath, 'utf-8'))) || null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
|
|
1147
|
-
return paths ? Object.keys(paths).reduce((acc, key)=>(acc[key.replace(/\/\*$/, '')] = external_node_path_default().resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, '')), acc), {}) : {};
|
|
1148
|
-
})() : {},
|
|
1149
1180
|
...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
|
|
1150
1181
|
},
|
|
1151
1182
|
extensionAlias: {
|
|
@@ -1175,7 +1206,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
1175
1206
|
entries: !!unpackConfig.mpa
|
|
1176
1207
|
},
|
|
1177
1208
|
css: !1,
|
|
1178
|
-
asyncWebAssembly: !0
|
|
1209
|
+
asyncWebAssembly: !0,
|
|
1210
|
+
nativeWatcher: !0
|
|
1179
1211
|
},
|
|
1180
1212
|
optimization: {
|
|
1181
1213
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1414,7 +1446,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
1414
1446
|
type: 'css',
|
|
1415
1447
|
hash: null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.filenameHash,
|
|
1416
1448
|
async: !0
|
|
1417
|
-
})
|
|
1449
|
+
}),
|
|
1450
|
+
ignoreOrder: !0
|
|
1418
1451
|
}));
|
|
1419
1452
|
let getCssLoader = ()=>{
|
|
1420
1453
|
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
|
|
@@ -1488,11 +1521,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
1488
1521
|
unpackConfig
|
|
1489
1522
|
}),
|
|
1490
1523
|
unpackConfig
|
|
1491
|
-
}), config = await applyCacheConfig({
|
|
1524
|
+
}), (null == (_unpackConfig_build9 = unpackConfig.build) ? void 0 : _unpackConfig_build9.cache) && !(utils_isDevServer() && (null == (_unpackConfig_dev1 = unpackConfig.dev) ? void 0 : _unpackConfig_dev1.lazyCompilation)) && (config = await applyCacheConfig({
|
|
1492
1525
|
config,
|
|
1493
1526
|
unpackConfig,
|
|
1494
1527
|
envFilePaths
|
|
1495
|
-
}), getNormalizedPluginsByHook('bundlerConfig', unpackConfig.plugins)))config = await plugin.bundlerConfig(config, {
|
|
1528
|
+
})), getNormalizedPluginsByHook('bundlerConfig', unpackConfig.plugins)))config = await plugin.bundlerConfig(config, {
|
|
1496
1529
|
...unpackConfig._context,
|
|
1497
1530
|
unpackConfig,
|
|
1498
1531
|
mergeConfig: mergeConfig
|
|
@@ -1828,7 +1861,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1828
1861
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1829
1862
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1830
1863
|
let server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
|
|
1831
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1864
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.1.1`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
|
|
1832
1865
|
let addressUrls = getAddressUrls({
|
|
1833
1866
|
port
|
|
1834
1867
|
});
|
|
@@ -1881,7 +1914,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1881
1914
|
]
|
|
1882
1915
|
}, _context = {
|
|
1883
1916
|
callerName,
|
|
1884
|
-
version: "3.
|
|
1917
|
+
version: "3.1.1"
|
|
1885
1918
|
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1886
1919
|
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1887
1920
|
..._context,
|
|
@@ -1898,7 +1931,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1898
1931
|
build: async ({ watch } = {})=>{
|
|
1899
1932
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1900
1933
|
let config = await resolveConfig();
|
|
1901
|
-
console.log(colors.rainbow(`${callerName} v3.
|
|
1934
|
+
console.log(colors.rainbow(`${callerName} v3.1.1`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
|
|
1902
1935
|
},
|
|
1903
1936
|
dev: async ()=>{
|
|
1904
1937
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,6 @@ import node_readline from "node:readline";
|
|
|
14
14
|
import node_net from "node:net";
|
|
15
15
|
import node_os, { platform } from "node:os";
|
|
16
16
|
import portfinder from "portfinder";
|
|
17
|
-
import json5 from "json5";
|
|
18
17
|
import { expand } from "dotenv-expand";
|
|
19
18
|
import { TsCheckerRspackPlugin } from "ts-checker-rspack-plugin";
|
|
20
19
|
import node_assert from "node:assert";
|
|
@@ -258,15 +257,15 @@ async function loadConfig({ cliOptions, command }) {
|
|
|
258
257
|
let root = (null == cliOptions ? void 0 : cliOptions.root) ? node_path.resolve(cliOptions.root) : process.cwd(), configFilePath = resolveConfigPath(root, null == cliOptions ? void 0 : cliOptions.config), configExport = {};
|
|
259
258
|
if (configFilePath) {
|
|
260
259
|
if (isNodeVersionAtLeast(23, 6) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
|
|
261
|
-
logger_logger.debug('
|
|
260
|
+
logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
|
|
262
261
|
try {
|
|
263
262
|
let configFileURL = pathToFileURL(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
|
|
264
263
|
configExport = exportModule.default ? exportModule.default : exportModule;
|
|
265
264
|
} catch (err) {
|
|
266
|
-
throw logger_logger.error(
|
|
265
|
+
throw logger_logger.error('failed to load config file with native loader:', colors.dim(configFilePath)), err;
|
|
267
266
|
}
|
|
268
267
|
} else {
|
|
269
|
-
logger_logger.debug('
|
|
268
|
+
logger_logger.debug('loading config file with jiti:', colors.dim(configFilePath));
|
|
270
269
|
try {
|
|
271
270
|
let jiti = createJiti(config_filename, {
|
|
272
271
|
moduleCache: !1,
|
|
@@ -280,7 +279,7 @@ async function loadConfig({ cliOptions, command }) {
|
|
|
280
279
|
default: !0
|
|
281
280
|
});
|
|
282
281
|
} catch (err) {
|
|
283
|
-
throw logger_logger.error(
|
|
282
|
+
throw logger_logger.error('failed to load config file with jiti:', colors.dim(configFilePath)), err;
|
|
284
283
|
}
|
|
285
284
|
}
|
|
286
285
|
if ('function' == typeof configExport) {
|
|
@@ -288,7 +287,7 @@ async function loadConfig({ cliOptions, command }) {
|
|
|
288
287
|
env: getNodeEnv(),
|
|
289
288
|
command: process.argv[2]
|
|
290
289
|
};
|
|
291
|
-
if (void 0 === (configExport = await configExport(params))) throw Error('
|
|
290
|
+
if (void 0 === (configExport = await configExport(params))) throw Error('unpack config function must return a config object.');
|
|
292
291
|
}
|
|
293
292
|
}
|
|
294
293
|
return (null == cliOptions ? void 0 : cliOptions.port) && setValueByPath(configExport, [
|
|
@@ -387,8 +386,6 @@ async function getBuildDependencies(root, userBuildDependencies, envFilePaths) {
|
|
|
387
386
|
};
|
|
388
387
|
}
|
|
389
388
|
async function applyCacheConfig({ config, unpackConfig, envFilePaths }) {
|
|
390
|
-
var _unpackConfig_build, _unpackConfig_dev;
|
|
391
|
-
if (!(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache) || utils_isDevServer() && (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation)) return config;
|
|
392
389
|
let cacheConfig = isPlainObject(unpackConfig.build.cache) ? unpackConfig.build.cache : {}, buildDependencies = await getBuildDependencies(unpackConfig.root, cacheConfig.buildDependencies || [], envFilePaths), cacheDirectory = cacheConfig.cacheDirectory;
|
|
393
390
|
return cacheDirectory && (cacheDirectory = node_path.resolve(unpackConfig.root, cacheDirectory)), logger_logger.info('persistent cache enabled'), config = mergeConfig(config, {
|
|
394
391
|
cache: !0,
|
|
@@ -575,7 +572,7 @@ class JsMinifyPlugin {
|
|
|
575
572
|
apply(compiler) {
|
|
576
573
|
let meta = JSON.stringify({
|
|
577
574
|
name: jsMinify_PLUGIN_NAME,
|
|
578
|
-
version: "3.
|
|
575
|
+
version: "3.1.1",
|
|
579
576
|
options: this.minifyOptions
|
|
580
577
|
});
|
|
581
578
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -796,6 +793,7 @@ async function printFileSize({ root, stats }) {
|
|
|
796
793
|
chunkGroupMap.CSS.chunks.push(chunk);
|
|
797
794
|
break;
|
|
798
795
|
case '.js':
|
|
796
|
+
case '.wasm':
|
|
799
797
|
chunkGroupMap.JS.chunks.push(chunk);
|
|
800
798
|
break;
|
|
801
799
|
default:
|
|
@@ -905,8 +903,8 @@ class ProgressRspackPlugin extends rspack.ProgressPlugin {
|
|
|
905
903
|
}
|
|
906
904
|
let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
907
905
|
async function getBundlerConfig(unpackConfig) {
|
|
908
|
-
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments;
|
|
909
|
-
let tsconfigPath = node_path.resolve(unpackConfig.root, 'tsconfig.json'), isTs = node_fs.existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin,
|
|
906
|
+
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments, _unpackConfig_build9, _unpackConfig_dev1;
|
|
907
|
+
let circularCount, tsconfigPath = node_path.resolve(unpackConfig.root, 'tsconfig.json'), isTs = node_fs.existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
|
|
910
908
|
'PUBLIC_'
|
|
911
909
|
], processEnv = process.env } = {}) {
|
|
912
910
|
if ('local' === mode) throw Error(`${colors.yellow('local')} cannot be used as a value for env mode, because ${colors.yellow('.env.local')} represents a temporary local file. Please use another value.`);
|
|
@@ -974,7 +972,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
974
972
|
crossOriginLoading: 'anonymous',
|
|
975
973
|
pathinfo: !1,
|
|
976
974
|
publicPath: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.publicPath,
|
|
977
|
-
webassemblyModuleFilename:
|
|
975
|
+
webassemblyModuleFilename: 'js/async/[hash].module.wasm',
|
|
978
976
|
assetModuleFilename: 'assets/[name].[contenthash:8][ext]'
|
|
979
977
|
},
|
|
980
978
|
infrastructureLogging: {
|
|
@@ -984,20 +982,17 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
984
982
|
module: {
|
|
985
983
|
rules: [
|
|
986
984
|
{
|
|
987
|
-
test: /\.(png|
|
|
985
|
+
test: /\.(png|jpe?g|gif|webp)$/i,
|
|
988
986
|
type: 'asset'
|
|
989
987
|
},
|
|
990
988
|
{
|
|
991
|
-
test: /\.(
|
|
989
|
+
test: /\.(woff2?|eot|ttf|otf)$/i,
|
|
992
990
|
type: 'asset'
|
|
993
991
|
},
|
|
994
992
|
{
|
|
995
993
|
test: /\.wasm$/,
|
|
996
994
|
dependency: 'url',
|
|
997
|
-
type: 'asset/resource'
|
|
998
|
-
generator: {
|
|
999
|
-
filename: wasmFilename
|
|
1000
|
-
}
|
|
995
|
+
type: 'asset/resource'
|
|
1001
996
|
}
|
|
1002
997
|
]
|
|
1003
998
|
},
|
|
@@ -1061,17 +1056,52 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1061
1056
|
}
|
|
1062
1057
|
}),
|
|
1063
1058
|
new ProgressPlugin(),
|
|
1064
|
-
unpackConfig.lint && new OxlintPlugin()
|
|
1059
|
+
unpackConfig.lint && new OxlintPlugin(),
|
|
1060
|
+
unpackConfig.detectCircular && (circularCount = 0, new rspack.CircularDependencyRspackPlugin({
|
|
1061
|
+
exclude: /node_modules/,
|
|
1062
|
+
onStart () {
|
|
1063
|
+
circularCount = 0;
|
|
1064
|
+
},
|
|
1065
|
+
onDetected (_, modules) {
|
|
1066
|
+
circularCount++, console.log(''), logger_logger.warn('circular dependency detected:');
|
|
1067
|
+
let uniquePaths = modules.map((module)=>{
|
|
1068
|
+
let filePath = module.replace(/^.*!/, ''), relativePath = node_path.relative(unpackConfig.root, filePath);
|
|
1069
|
+
return relativePath.startsWith('..') ? filePath : relativePath;
|
|
1070
|
+
}).slice(0, -1);
|
|
1071
|
+
if (2 + uniquePaths.join(" \u2192 ").length > (process.stdout.columns || 80)) {
|
|
1072
|
+
console.log('');
|
|
1073
|
+
let arrow = "\u21B3 ", lastIndex = uniquePaths.length - 1;
|
|
1074
|
+
uniquePaths.forEach((p, i)=>{
|
|
1075
|
+
switch(i){
|
|
1076
|
+
case 0:
|
|
1077
|
+
console.log(` ${p}`);
|
|
1078
|
+
break;
|
|
1079
|
+
case lastIndex:
|
|
1080
|
+
console.log(` ${arrow}${p} ${colors.dim('(cycle introduced)')}`);
|
|
1081
|
+
break;
|
|
1082
|
+
default:
|
|
1083
|
+
console.log(` ${arrow}${p}`);
|
|
1084
|
+
}
|
|
1085
|
+
}), console.log(` ${arrow}${uniquePaths[0]}`), console.log('');
|
|
1086
|
+
} else {
|
|
1087
|
+
let line1 = ' ', downArrowPos = 0;
|
|
1088
|
+
uniquePaths.forEach((p, i)=>{
|
|
1089
|
+
line1 += p, i < uniquePaths.length - 1 ? line1 += " \u2192 " : downArrowPos = line1.length - 1;
|
|
1090
|
+
});
|
|
1091
|
+
let lineLength = downArrowPos - 2;
|
|
1092
|
+
console.log(''), console.log(line1), console.log(' ' + ' '.repeat(0) + "\u2191" + ' '.repeat(downArrowPos - 2 - 1) + "\u2193"), console.log(' ' + ' '.repeat(0) + "\u2514" + "\u2500".repeat(lineLength - 1) + "\u2518"), console.log('');
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
onEnd () {
|
|
1096
|
+
circularCount > 0 && console.log(`Found ${circularCount} circular ${1 === circularCount ? 'dependency' : 'dependencies'}.`);
|
|
1097
|
+
}
|
|
1098
|
+
}))
|
|
1065
1099
|
].filter(Boolean),
|
|
1066
1100
|
externals: unpackConfig.externals,
|
|
1067
1101
|
resolve: {
|
|
1102
|
+
tsConfig: isTs ? tsconfigPath : void 0,
|
|
1068
1103
|
alias: {
|
|
1069
1104
|
'@': node_path.resolve(unpackConfig.root, 'src'),
|
|
1070
|
-
...isTs ? (()=>{
|
|
1071
|
-
var _json5_parse_compilerOptions, _json5_parse;
|
|
1072
|
-
let paths = null == (_json5_parse = json5.parse(node_fs.readFileSync(tsconfigPath, 'utf-8'))) || null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
|
|
1073
|
-
return paths ? Object.keys(paths).reduce((acc, key)=>(acc[key.replace(/\/\*$/, '')] = node_path.resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, '')), acc), {}) : {};
|
|
1074
|
-
})() : {},
|
|
1075
1105
|
...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
|
|
1076
1106
|
},
|
|
1077
1107
|
extensionAlias: {
|
|
@@ -1101,7 +1131,8 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1101
1131
|
entries: !!unpackConfig.mpa
|
|
1102
1132
|
},
|
|
1103
1133
|
css: !1,
|
|
1104
|
-
asyncWebAssembly: !0
|
|
1134
|
+
asyncWebAssembly: !0,
|
|
1135
|
+
nativeWatcher: !0
|
|
1105
1136
|
},
|
|
1106
1137
|
optimization: {
|
|
1107
1138
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1340,7 +1371,8 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1340
1371
|
type: 'css',
|
|
1341
1372
|
hash: null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.filenameHash,
|
|
1342
1373
|
async: !0
|
|
1343
|
-
})
|
|
1374
|
+
}),
|
|
1375
|
+
ignoreOrder: !0
|
|
1344
1376
|
}));
|
|
1345
1377
|
let getCssLoader = ()=>{
|
|
1346
1378
|
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
|
|
@@ -1414,11 +1446,11 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1414
1446
|
unpackConfig
|
|
1415
1447
|
}),
|
|
1416
1448
|
unpackConfig
|
|
1417
|
-
}), config = await applyCacheConfig({
|
|
1449
|
+
}), (null == (_unpackConfig_build9 = unpackConfig.build) ? void 0 : _unpackConfig_build9.cache) && !(utils_isDevServer() && (null == (_unpackConfig_dev1 = unpackConfig.dev) ? void 0 : _unpackConfig_dev1.lazyCompilation)) && (config = await applyCacheConfig({
|
|
1418
1450
|
config,
|
|
1419
1451
|
unpackConfig,
|
|
1420
1452
|
envFilePaths
|
|
1421
|
-
}), getNormalizedPluginsByHook('bundlerConfig', unpackConfig.plugins)))config = await plugin.bundlerConfig(config, {
|
|
1453
|
+
})), getNormalizedPluginsByHook('bundlerConfig', unpackConfig.plugins)))config = await plugin.bundlerConfig(config, {
|
|
1422
1454
|
...unpackConfig._context,
|
|
1423
1455
|
unpackConfig,
|
|
1424
1456
|
mergeConfig: mergeConfig
|
|
@@ -1746,7 +1778,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1746
1778
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1747
1779
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1748
1780
|
let server = new webpack_dev_server(devServerOptions, compiler);
|
|
1749
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1781
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.1.1`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), getAddressUrls({
|
|
1750
1782
|
port: port
|
|
1751
1783
|
}).forEach((addr)=>{
|
|
1752
1784
|
let url;
|
|
@@ -1796,7 +1828,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1796
1828
|
]
|
|
1797
1829
|
}, _context = {
|
|
1798
1830
|
callerName,
|
|
1799
|
-
version: "3.
|
|
1831
|
+
version: "3.1.1"
|
|
1800
1832
|
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1801
1833
|
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1802
1834
|
..._context,
|
|
@@ -1813,7 +1845,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1813
1845
|
build: async ({ watch } = {})=>{
|
|
1814
1846
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1815
1847
|
let config = await resolveConfig();
|
|
1816
|
-
console.log(colors.rainbow(`${callerName} v3.
|
|
1848
|
+
console.log(colors.rainbow(`${callerName} v3.1.1`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
|
|
1817
1849
|
},
|
|
1818
1850
|
dev: async ()=>{
|
|
1819
1851
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/bundler-config/cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA6CnE,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,YAAY,EACZ,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,GAAG,OAAO,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/bundler-config/cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA6CnE,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,YAAY,EACZ,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA0BhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAc3E,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAyIvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAe3E,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAgJvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAsBnE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA+UhG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { UnpackConfig } from '../../types';
|
|
1
|
+
import type { Rspack, UnpackConfig } from '../../types';
|
|
3
2
|
export default function (this: Rspack.LoaderContext<{
|
|
4
3
|
modules: NonNullable<UnpackConfig['css']>['modules'];
|
|
5
4
|
}>, content: string, ...rest: any[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedCssModulesLoader.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/loaders/typedCssModulesLoader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedCssModulesLoader.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/loaders/typedCssModulesLoader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA4GrD,MAAM,CAAC,OAAO,WACZ,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;CACrD,CAAC,EACF,OAAO,EAAE,MAAM,EACf,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,IAAI,CA+BN"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { OxcMinifyPluginOptions } from '../../types';
|
|
1
|
+
import type { OxcMinifyPluginOptions, Rspack } from '../../types';
|
|
3
2
|
export declare class JsMinifyPlugin {
|
|
4
3
|
private readonly minify;
|
|
5
4
|
private readonly minifyOptions;
|
|
6
5
|
constructor(options?: OxcMinifyPluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
6
|
+
apply(compiler: Rspack.Compiler): void;
|
|
8
7
|
private transformAssets;
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=jsMinify.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsMinify.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/plugins/jsMinify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsMinify.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/plugins/jsMinify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAM/D,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;gBAEjC,OAAO,GAAE,sBAA2B;IAMhD,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ;IAyB/B,OAAO,CAAC,eAAe;CA8BxB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Rspack } from '../../../types';
|
|
2
2
|
declare class OxlintPlugin {
|
|
3
3
|
private timeoutId;
|
|
4
4
|
private readonly debounceTime;
|
|
5
5
|
private getGitChangedFiles;
|
|
6
6
|
private runOxlint;
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
7
|
+
apply(compiler: Rspack.Compiler): void;
|
|
8
8
|
}
|
|
9
9
|
export { OxlintPlugin };
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/oxlint/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/oxlint/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,cAAM,YAAY;IAChB,OAAO,CAAC,SAAS,CAA8B;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAM;IAEnC,OAAO,CAAC,kBAAkB;IAmD1B,OAAO,CAAC,SAAS;IA+BjB,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI;CAyBvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { Rspack } from '../../../types';
|
|
2
2
|
export declare function printDevLog(compiler: Rspack.Compiler, root: string): void;
|
|
3
3
|
export declare function compileDone(compiler: Rspack.Compiler, stats: Rspack.Stats): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/progress/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/progress/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAyCvC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,QAclE;AAED,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,iBA4D/E"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rspack } from '@rspack/core';
|
|
2
2
|
import { ProgressBar } from '../../../progressBar';
|
|
3
|
+
import type { Rspack } from '../../../types';
|
|
3
4
|
export declare class ProgressLiteRspackPlugin {
|
|
4
|
-
apply(compiler: Compiler): void;
|
|
5
|
+
apply(compiler: Rspack.Compiler): void;
|
|
5
6
|
}
|
|
6
7
|
export declare class ProgressRspackPlugin extends rspack.ProgressPlugin {
|
|
7
8
|
progressBar: ProgressBar;
|
|
8
9
|
constructor();
|
|
9
|
-
apply(compiler: Compiler): void;
|
|
10
|
+
apply(compiler: Rspack.Compiler): void;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAKvC,qBAAa,wBAAwB;IACnC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI;CAYvC;AAED,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC7D,WAAW,cAAoB;;IAO/B,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI;CAUvC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UnpackConfig } from '../../types';
|
|
1
|
+
import type { Rspack, UnpackConfig } from '../../types';
|
|
3
2
|
type TypedCssModulesPluginOptions = {
|
|
4
3
|
modules?: NonNullable<UnpackConfig['css']>['modules'];
|
|
5
4
|
};
|
|
@@ -9,7 +8,7 @@ export declare class TypedCssModulesPlugin {
|
|
|
9
8
|
private globPattern;
|
|
10
9
|
userOptions: TypedCssModulesPluginOptions;
|
|
11
10
|
constructor(options: TypedCssModulesPluginOptions);
|
|
12
|
-
apply(compiler: Compiler): void;
|
|
11
|
+
apply(compiler: Rspack.Compiler): void;
|
|
13
12
|
private generateCssTypings;
|
|
14
13
|
}
|
|
15
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedCssModules.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/plugins/typedCssModules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedCssModules.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/plugins/typedCssModules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAmCrD,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;CACtD,CAAA;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,WAAW,CAA6B;IAChD,WAAW,EAAE,4BAA4B,CAAA;gBAE7B,OAAO,EAAE,4BAA4B;IAQjD,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YAqBjB,kBAAkB;CAQjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAyEnD,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CAwRvB,CAAA"}
|
package/dist-types/reporter.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Rspack } from './types';
|
|
2
2
|
type Options = {
|
|
3
3
|
root: string;
|
|
4
|
-
stats:
|
|
4
|
+
stats: Rspack.Stats;
|
|
5
5
|
};
|
|
6
6
|
export declare function printFileSize({ root, stats }: Options): Promise<void>;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAA;CACpB,CAAA;AA2BD,wBAAsB,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,iBAkG3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/run/build.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/run/build.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAIrD,wBAAsB,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA4B3E"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
optimization?: {
|
|
5
|
-
splitChunks?: infer P;
|
|
6
|
-
};
|
|
7
|
-
} ? P : never;
|
|
8
|
-
export type CacheGroups = Record<string, Rspack.OptimizationSplitChunksCacheGroup>;
|
|
1
|
+
import type { OptimizationSplitChunksCacheGroup, OptimizationSplitChunksOptions } from '@rspack/core';
|
|
2
|
+
export type SplitChunks = false | OptimizationSplitChunksOptions;
|
|
3
|
+
export type CacheGroups = Record<string, OptimizationSplitChunksCacheGroup>;
|
|
9
4
|
export type ForceSplitting = RegExp[] | Record<string, RegExp>;
|
|
10
5
|
export interface BaseSplitRules {
|
|
11
6
|
strategy?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkSplit.d.ts","sourceRoot":"","sources":["../../src/types/chunkSplit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"chunkSplit.d.ts","sourceRoot":"","sources":["../../src/types/chunkSplit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,8BAA8B,EAC/B,MAAM,cAAc,CAAA;AAErB,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,8BAA8B,CAAA;AAChE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,iCAAiC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE9D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,QAAQ,CAAC,EAAE,iBAAiB,GAAG,qBAAqB,GAAG,YAAY,GAAG,eAAe,CAAA;CACtF;AAED,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,QAAQ,EAAE,QAAQ,CAAA;IAClB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,WAAW,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as Rspack from '@rspack/core';
|
|
2
2
|
import type { AcceptedPlugin, ProcessOptions } from 'postcss';
|
|
3
3
|
import type { Options as SassOptions } from 'sass-embedded';
|
|
4
4
|
import type { ChunkSplit } from './chunkSplit';
|
|
5
5
|
import type { OxcMinifyPluginOptions } from './oxc';
|
|
6
6
|
import type { UnpackPlugin } from './plugin';
|
|
7
|
-
export type
|
|
7
|
+
export type { Rspack };
|
|
8
|
+
export type BundlerConfiguration = Rspack.Configuration;
|
|
8
9
|
type PostCSSOptions = ProcessOptions & {
|
|
9
10
|
/**
|
|
10
11
|
* Allows to set options using config files.
|
|
@@ -67,8 +68,8 @@ export type UnpackConfig = {
|
|
|
67
68
|
auto?: boolean | RegExp | ((resourcePath: string) => boolean);
|
|
68
69
|
localIdentName?: string;
|
|
69
70
|
};
|
|
70
|
-
postcss?: PostCSSOptions | ((loaderContext: LoaderContext) => PostCSSOptions);
|
|
71
|
-
lightningcss?: LightningcssLoaderOptions;
|
|
71
|
+
postcss?: PostCSSOptions | ((loaderContext: Rspack.LoaderContext) => PostCSSOptions);
|
|
72
|
+
lightningcss?: Rspack.LightningcssLoaderOptions;
|
|
72
73
|
less?: Less.Options;
|
|
73
74
|
sass?: SassOptions<'async'>;
|
|
74
75
|
};
|
|
@@ -149,7 +150,7 @@ export type UnpackConfig = {
|
|
|
149
150
|
* By default, it is set to `true` in production and `false` in development.
|
|
150
151
|
*/
|
|
151
152
|
minify?: boolean | {
|
|
152
|
-
lightningcss?: LightningCssMinimizerRspackPluginOptions;
|
|
153
|
+
lightningcss?: Rspack.LightningCssMinimizerRspackPluginOptions;
|
|
153
154
|
oxc?: OxcMinifyPluginOptions;
|
|
154
155
|
};
|
|
155
156
|
/**
|
|
@@ -272,6 +273,9 @@ export type UnpackConfig = {
|
|
|
272
273
|
* Prefix for environment variables.
|
|
273
274
|
*/
|
|
274
275
|
envPrefix?: string | string[];
|
|
276
|
+
/**
|
|
277
|
+
* Whether to detect circular dependencies in the project.
|
|
278
|
+
*/
|
|
279
|
+
detectCircular?: boolean;
|
|
275
280
|
};
|
|
276
|
-
export {};
|
|
277
281
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,15 +39,14 @@
|
|
|
39
39
|
"webpack-merge": "6.0.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rspack/core": "1.4.
|
|
42
|
+
"@rspack/core": "1.4.8",
|
|
43
43
|
"@types/less": "3.0.8",
|
|
44
44
|
"chokidar": "4.0.3",
|
|
45
45
|
"cors": "2.8.5",
|
|
46
46
|
"dotenv-expand": "12.0.2",
|
|
47
47
|
"express": "5.1.0",
|
|
48
48
|
"jiti": "2.4.2",
|
|
49
|
-
"
|
|
50
|
-
"oxc-minify": "0.77.0",
|
|
49
|
+
"oxc-minify": "0.77.1",
|
|
51
50
|
"picocolors": "1.1.1",
|
|
52
51
|
"portfinder": "1.0.37",
|
|
53
52
|
"postcss": "8.5.6",
|