@unpackjs/core 3.2.5 → 3.2.6
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 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +9 -9
- package/dist/index.cjs +66 -44
- package/dist/index.js +92 -74
- package/dist-types/bundler-config/index.d.ts +1 -1
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/createUnpack.d.ts.map +1 -1
- package/dist-types/prebundleDeps.d.ts.map +1 -1
- package/dist-types/run/dev.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +4 -1
- package/dist-types/types/config.d.ts.map +1 -1
- package/package.json +5 -5
- package/compiled/sass-loader/sass.node.js +0 -12
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
8166: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(1004);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(9093).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
1004: (__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__(3781));
|
|
18
|
+
var _plugins = __nccwpck_require__(1523);
|
|
19
|
+
var _utils = __nccwpck_require__(9093);
|
|
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
|
+
1523: (__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,20 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(3736),
|
|
269
269
|
);
|
|
270
|
-
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
|
|
270
|
+
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
+
__nccwpck_require__(4861),
|
|
272
|
+
);
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4156));
|
|
272
274
|
function _interopRequireDefault(obj) {
|
|
273
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
274
276
|
}
|
|
275
277
|
},
|
|
276
|
-
|
|
278
|
+
4861: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
277
279
|
"use strict";
|
|
278
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
279
281
|
exports["default"] = void 0;
|
|
280
282
|
var _icssUtils = __nccwpck_require__(9028);
|
|
281
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(9093);
|
|
282
284
|
const plugin = (options = {}) => ({
|
|
283
285
|
postcssPlugin: "postcss-icss-parser",
|
|
284
286
|
async OnceExit(root) {
|
|
@@ -377,14 +379,14 @@
|
|
|
377
379
|
plugin.postcss = true;
|
|
378
380
|
var _default = (exports["default"] = plugin);
|
|
379
381
|
},
|
|
380
|
-
|
|
382
|
+
3736: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
381
383
|
"use strict";
|
|
382
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
383
385
|
exports["default"] = void 0;
|
|
384
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
385
387
|
__nccwpck_require__(2948),
|
|
386
388
|
);
|
|
387
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(9093);
|
|
388
390
|
function _interopRequireDefault(obj) {
|
|
389
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
390
392
|
}
|
|
@@ -689,14 +691,14 @@
|
|
|
689
691
|
plugin.postcss = true;
|
|
690
692
|
var _default = (exports["default"] = plugin);
|
|
691
693
|
},
|
|
692
|
-
|
|
694
|
+
4156: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
693
695
|
"use strict";
|
|
694
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
695
697
|
exports["default"] = void 0;
|
|
696
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
697
699
|
__nccwpck_require__(2948),
|
|
698
700
|
);
|
|
699
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(9093);
|
|
700
702
|
function _interopRequireDefault(obj) {
|
|
701
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
702
704
|
}
|
|
@@ -1039,7 +1041,7 @@
|
|
|
1039
1041
|
plugin.postcss = true;
|
|
1040
1042
|
var _default = (exports["default"] = plugin);
|
|
1041
1043
|
},
|
|
1042
|
-
|
|
1044
|
+
9093: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1043
1045
|
"use strict";
|
|
1044
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1045
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7962,7 +7964,7 @@
|
|
|
7962
7964
|
"use strict";
|
|
7963
7965
|
module.exports = require("util");
|
|
7964
7966
|
},
|
|
7965
|
-
|
|
7967
|
+
3781: (module) => {
|
|
7966
7968
|
"use strict";
|
|
7967
7969
|
module.exports = JSON.parse(
|
|
7968
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"}',
|
|
@@ -7997,6 +7999,6 @@
|
|
|
7997
7999
|
}
|
|
7998
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
7999
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8000
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(8166);
|
|
8001
8003
|
module.exports = __webpack_exports__;
|
|
8002
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
516: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(986)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
986: (__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__(407));
|
|
13
|
+
var _utils = __nccwpck_require__(219);
|
|
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
|
+
219: (__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
|
+
407: (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__(516);
|
|
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
|
+
3425: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(627)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
627: (__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__(474));
|
|
5334
|
+
var _utils = __nccwpck_require__(1790);
|
|
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
|
+
1790: (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
|
+
474: (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__(3425);
|
|
6721
6721
|
module.exports = __webpack_exports__;
|
|
6722
6722
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
83: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(317);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
317: (__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__(264));
|
|
4810
|
+
var _utils = __nccwpck_require__(904);
|
|
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
|
+
904: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -4940,7 +4940,7 @@
|
|
|
4940
4940
|
sassImplPkg = "sass-embedded";
|
|
4941
4941
|
} catch (ignoreError) {
|
|
4942
4942
|
try {
|
|
4943
|
-
|
|
4943
|
+
require.resolve("sass");
|
|
4944
4944
|
} catch (_ignoreError) {
|
|
4945
4945
|
try {
|
|
4946
4946
|
require.resolve("node-sass");
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
"use strict";
|
|
5583
5583
|
module.exports = require("url");
|
|
5584
5584
|
},
|
|
5585
|
-
|
|
5585
|
+
264: (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__(83);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -44,16 +44,15 @@ for(var __webpack_i__ in (()=>{
|
|
|
44
44
|
restartCleaners: ()=>restartCleaners,
|
|
45
45
|
isFileExists: ()=>isFileExists,
|
|
46
46
|
getNodeEnv: ()=>getNodeEnv,
|
|
47
|
+
isWatch: ()=>isWatch,
|
|
47
48
|
isFunction: ()=>isFunction,
|
|
48
49
|
THREAD_OPTIONS: ()=>THREAD_OPTIONS,
|
|
49
50
|
debounce: ()=>debounce,
|
|
50
51
|
isDev: ()=>isDev,
|
|
51
|
-
isWatch: ()=>isWatch,
|
|
52
52
|
isNodeVersionAtLeast: ()=>isNodeVersionAtLeast,
|
|
53
53
|
setNodeEnv: ()=>setNodeEnv,
|
|
54
54
|
getCompiledPkgPath: ()=>getCompiledPkgPath,
|
|
55
55
|
LogColor: ()=>logger_LogColor,
|
|
56
|
-
isDebug: ()=>isDebug,
|
|
57
56
|
CSS_MODULES_REGEX: ()=>CSS_MODULES_REGEX,
|
|
58
57
|
loadConfig: ()=>loadConfig,
|
|
59
58
|
PROD_DEFAULT_FILENAME: ()=>PROD_DEFAULT_FILENAME,
|
|
@@ -74,7 +73,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
74
73
|
findExists: ()=>findExists,
|
|
75
74
|
getUserDepVersion: ()=>getUserDepVersion,
|
|
76
75
|
NODE_MODULES_REGEX: ()=>NODE_MODULES_REGEX,
|
|
77
|
-
|
|
76
|
+
getPort: ()=>getPort,
|
|
78
77
|
getValueByPath: ()=>getValueByPath,
|
|
79
78
|
getIpv4Interfaces: ()=>getIpv4Interfaces,
|
|
80
79
|
isCI: ()=>isCI,
|
|
@@ -95,9 +94,10 @@ for(var __webpack_i__ in (()=>{
|
|
|
95
94
|
isObject: ()=>isObject,
|
|
96
95
|
trackPerformance: ()=>trackPerformance,
|
|
97
96
|
createUnpack: ()=>createUnpack,
|
|
98
|
-
|
|
97
|
+
getTime: ()=>getTime,
|
|
99
98
|
getUserDepPath: ()=>getUserDepPath,
|
|
100
99
|
isCSSModules: ()=>isCSSModules,
|
|
100
|
+
isDebug: ()=>isDebug,
|
|
101
101
|
rspack: ()=>core_namespaceObject.rspack
|
|
102
102
|
});
|
|
103
103
|
let core_namespaceObject = require("@rspack/core"), external_picocolors_namespaceObject = require("picocolors"), colors = {
|
|
@@ -339,7 +339,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
339
339
|
'build' === command ? setNodeEnv((null == cliOptions ? void 0 : cliOptions.watch) ? 'development' : 'production') : (setNodeEnv('development'), setDevServer(!0));
|
|
340
340
|
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 = {};
|
|
341
341
|
if (configFilePath) {
|
|
342
|
-
if (isNodeVersionAtLeast(
|
|
342
|
+
if (isNodeVersionAtLeast(22, 18) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
|
|
343
343
|
logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
|
|
344
344
|
try {
|
|
345
345
|
let configFileURL = (0, external_node_url_namespaceObject.pathToFileURL)(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
|
|
@@ -408,12 +408,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
408
408
|
}
|
|
409
409
|
return null;
|
|
410
410
|
}
|
|
411
|
-
function getNormalizedPluginsByHook(hook, plugins) {
|
|
412
|
-
let pluginMap = new Map();
|
|
413
|
-
return null == plugins || plugins.forEach((plugin)=>{
|
|
414
|
-
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
415
|
-
}), Array.from(pluginMap.values());
|
|
416
|
-
}
|
|
417
411
|
let external_dotenv_expand_namespaceObject = require("dotenv-expand"), isFileSync = (filePath)=>{
|
|
418
412
|
try {
|
|
419
413
|
var _fs_statSync;
|
|
@@ -443,7 +437,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
443
437
|
recursive: !0,
|
|
444
438
|
force: !0
|
|
445
439
|
});
|
|
446
|
-
}, DOTENV_LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm
|
|
440
|
+
}, DOTENV_LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
441
|
+
function getNormalizedPluginsByHook(hook, plugins) {
|
|
442
|
+
let pluginMap = new Map();
|
|
443
|
+
return null == plugins || plugins.forEach((plugin)=>{
|
|
444
|
+
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
445
|
+
}), Array.from(pluginMap.values());
|
|
446
|
+
}
|
|
447
|
+
let external_ts_checker_rspack_plugin_namespaceObject = require("ts-checker-rspack-plugin");
|
|
447
448
|
async function getBuildDependencies(root, userBuildDependencies, envFilePaths) {
|
|
448
449
|
let rootPackageJson = external_node_path_default().join(root, 'package.json'), browserslistConfig = external_node_path_default().join(root, '.browserslistrc'), tsconfigPath = external_node_path_default().join(root, 'tsconfig.json'), buildDependencies = {};
|
|
449
450
|
await isFileExists(rootPackageJson) && (buildDependencies.packageJson = [
|
|
@@ -658,7 +659,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
658
659
|
apply(compiler) {
|
|
659
660
|
let meta = JSON.stringify({
|
|
660
661
|
name: jsMinify_PLUGIN_NAME,
|
|
661
|
-
version: "3.2.
|
|
662
|
+
version: "3.2.6",
|
|
662
663
|
options: this.minifyOptions
|
|
663
664
|
});
|
|
664
665
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -991,9 +992,18 @@ for(var __webpack_i__ in (()=>{
|
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
994
|
let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
994
|
-
async function getBundlerConfig(
|
|
995
|
+
async function getBundlerConfig(originalUnpackConfig) {
|
|
995
996
|
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;
|
|
996
|
-
let circularCount,
|
|
997
|
+
let circularCount, { plugins, bundlerConfig, ...rest } = originalUnpackConfig;
|
|
998
|
+
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
999
|
+
...originalUnpackConfig._context,
|
|
1000
|
+
mergeConfig: mergeConfig
|
|
1001
|
+
});
|
|
1002
|
+
let unpackConfig = {
|
|
1003
|
+
...rest,
|
|
1004
|
+
plugins,
|
|
1005
|
+
bundlerConfig
|
|
1006
|
+
}, 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 = [
|
|
997
1007
|
'PUBLIC_'
|
|
998
1008
|
], processEnv = process.env } = {}) {
|
|
999
1009
|
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.`);
|
|
@@ -1220,13 +1230,16 @@ for(var __webpack_i__ in (()=>{
|
|
|
1220
1230
|
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
1221
1231
|
]
|
|
1222
1232
|
},
|
|
1233
|
+
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && utils_isDevServer() && {
|
|
1234
|
+
imports: !0,
|
|
1235
|
+
entries: !!unpackConfig.mpa
|
|
1236
|
+
},
|
|
1223
1237
|
experiments: {
|
|
1224
|
-
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && utils_isDevServer() && {
|
|
1225
|
-
imports: !0,
|
|
1226
|
-
entries: !!unpackConfig.mpa
|
|
1227
|
-
},
|
|
1228
1238
|
css: !1,
|
|
1229
|
-
asyncWebAssembly: !0
|
|
1239
|
+
asyncWebAssembly: !0,
|
|
1240
|
+
lazyBarrel: !0,
|
|
1241
|
+
inlineEnum: !0,
|
|
1242
|
+
typeReexportsPresence: !0
|
|
1230
1243
|
},
|
|
1231
1244
|
optimization: {
|
|
1232
1245
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1835,15 +1848,20 @@ for(var __webpack_i__ in (()=>{
|
|
|
1835
1848
|
...unpackConfig.externals
|
|
1836
1849
|
}, unpackConfig.plugins.push({
|
|
1837
1850
|
name: 'unpack:prebundle',
|
|
1851
|
+
config: (config)=>{
|
|
1852
|
+
var _config_html;
|
|
1853
|
+
let originalHeadTag = (null == (_config_html = config.html) ? void 0 : _config_html.headTag) || '', sortedPreTags = preJsAssets.sort((a, b)=>a.order - b.order).map((item)=>item.path).map((item)=>`<script defer src="${item}"></script>`);
|
|
1854
|
+
return setValueByPath(config, [
|
|
1855
|
+
'html',
|
|
1856
|
+
'headTag'
|
|
1857
|
+
], `${sortedPreTags.join('')}${originalHeadTag}`), config;
|
|
1858
|
+
},
|
|
1838
1859
|
bundlerConfig: (config)=>{
|
|
1839
1860
|
let PLUGIN_NAME = 'PluginInjectAssets';
|
|
1840
1861
|
return config.plugins.push({
|
|
1841
1862
|
apply: (compiler)=>{
|
|
1842
1863
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
|
1843
|
-
core_namespaceObject.rspack.HtmlRspackPlugin.getCompilationHooks(compilation).beforeAssetTagGeneration.tapPromise(PLUGIN_NAME, async (args)=>
|
|
1844
|
-
let sortedPreJsAssets = preJsAssets.sort((a, b)=>a.order - b.order).map((item)=>item.path);
|
|
1845
|
-
return args.assets.js.unshift(...sortedPreJsAssets, ...jsAssets), args.assets.css.unshift(...cssAssets), args;
|
|
1846
|
-
});
|
|
1864
|
+
core_namespaceObject.rspack.HtmlRspackPlugin.getCompilationHooks(compilation).beforeAssetTagGeneration.tapPromise(PLUGIN_NAME, async (args)=>(args.assets.js.unshift(...jsAssets), args.assets.css.unshift(...cssAssets), args));
|
|
1847
1865
|
});
|
|
1848
1866
|
}
|
|
1849
1867
|
}), config;
|
|
@@ -1858,11 +1876,19 @@ for(var __webpack_i__ in (()=>{
|
|
|
1858
1876
|
unpackConfig
|
|
1859
1877
|
}));
|
|
1860
1878
|
let config = await getBundlerConfig(unpackConfig), compiler = (0, core_namespaceObject.rspack)(config), port = await getPort(null == (_unpackConfig_server = unpackConfig.server) ? void 0 : _unpackConfig_server.port), proxyConfig = null == (_unpackConfig_server1 = unpackConfig.server) ? void 0 : _unpackConfig_server1.proxy;
|
|
1861
|
-
isPlainObject(proxyConfig) && (proxyConfig = Object.entries(proxyConfig).map(([contextStr, target])=>
|
|
1879
|
+
isPlainObject(proxyConfig) && (proxyConfig = Object.entries(proxyConfig).map(([contextStr, target])=>{
|
|
1880
|
+
let baseConfig = {
|
|
1862
1881
|
context: contextStr.split(','),
|
|
1863
|
-
target,
|
|
1864
1882
|
changeOrigin: !0
|
|
1865
|
-
}
|
|
1883
|
+
};
|
|
1884
|
+
return isPlainObject(target) ? {
|
|
1885
|
+
...baseConfig,
|
|
1886
|
+
...target
|
|
1887
|
+
} : {
|
|
1888
|
+
...baseConfig,
|
|
1889
|
+
target
|
|
1890
|
+
};
|
|
1891
|
+
}));
|
|
1866
1892
|
let devServerOptions = {
|
|
1867
1893
|
hot: !0,
|
|
1868
1894
|
port,
|
|
@@ -1880,7 +1906,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1880
1906
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1881
1907
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1882
1908
|
let server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
|
|
1883
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.
|
|
1909
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.6`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
|
|
1884
1910
|
let addressUrls = getAddressUrls({
|
|
1885
1911
|
port
|
|
1886
1912
|
});
|
|
@@ -1898,7 +1924,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1898
1924
|
}
|
|
1899
1925
|
}
|
|
1900
1926
|
function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
1901
|
-
let resolveConfig =
|
|
1927
|
+
let resolveConfig = ()=>{
|
|
1902
1928
|
let defaultConfig = {
|
|
1903
1929
|
root: cwd,
|
|
1904
1930
|
build: {
|
|
@@ -1932,29 +1958,25 @@ for(var __webpack_i__ in (()=>{
|
|
|
1932
1958
|
envPrefix: [
|
|
1933
1959
|
'PUBLIC_'
|
|
1934
1960
|
]
|
|
1935
|
-
}
|
|
1936
|
-
callerName,
|
|
1937
|
-
version: "3.2.5"
|
|
1938
|
-
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1939
|
-
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1940
|
-
..._context,
|
|
1941
|
-
mergeConfig: mergeConfig
|
|
1942
|
-
});
|
|
1961
|
+
};
|
|
1943
1962
|
return {
|
|
1944
|
-
...
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1963
|
+
...mergeConfig(defaultConfig, config),
|
|
1964
|
+
_context: {
|
|
1965
|
+
callerName,
|
|
1966
|
+
version: "3.2.6"
|
|
1967
|
+
}
|
|
1948
1968
|
};
|
|
1949
1969
|
};
|
|
1950
1970
|
return {
|
|
1951
1971
|
build: async ({ watch } = {})=>{
|
|
1952
1972
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1953
|
-
let config =
|
|
1954
|
-
console.log(colors.rainbow(`${callerName} v3.2.
|
|
1973
|
+
let config = resolveConfig();
|
|
1974
|
+
console.log(colors.rainbow(`${callerName} v3.2.6`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1955
1975
|
},
|
|
1956
1976
|
dev: async ()=>{
|
|
1957
|
-
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0)
|
|
1977
|
+
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
1978
|
+
let config = resolveConfig();
|
|
1979
|
+
await unpackDev(config);
|
|
1958
1980
|
}
|
|
1959
1981
|
};
|
|
1960
1982
|
}
|
package/dist/index.js
CHANGED
|
@@ -273,7 +273,7 @@ async function loadConfig({ cliOptions, command }) {
|
|
|
273
273
|
'build' === command ? setNodeEnv((null == cliOptions ? void 0 : cliOptions.watch) ? 'development' : 'production') : (setNodeEnv('development'), setDevServer(!0));
|
|
274
274
|
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 = {};
|
|
275
275
|
if (configFilePath) {
|
|
276
|
-
if (isNodeVersionAtLeast(
|
|
276
|
+
if (isNodeVersionAtLeast(22, 18) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
|
|
277
277
|
logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
|
|
278
278
|
try {
|
|
279
279
|
let configFileURL = pathToFileURL(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
|
|
@@ -342,12 +342,6 @@ function resolveConfigPath(root, customConfig) {
|
|
|
342
342
|
}
|
|
343
343
|
return null;
|
|
344
344
|
}
|
|
345
|
-
function getNormalizedPluginsByHook(hook, plugins) {
|
|
346
|
-
let pluginMap = new Map();
|
|
347
|
-
return null == plugins || plugins.forEach((plugin)=>{
|
|
348
|
-
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
349
|
-
}), Array.from(pluginMap.values());
|
|
350
|
-
}
|
|
351
345
|
let isFileSync = (filePath)=>{
|
|
352
346
|
try {
|
|
353
347
|
var _fs_statSync;
|
|
@@ -378,6 +372,12 @@ let removeDir = (dir)=>{
|
|
|
378
372
|
force: !0
|
|
379
373
|
});
|
|
380
374
|
}, DOTENV_LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
375
|
+
function getNormalizedPluginsByHook(hook, plugins) {
|
|
376
|
+
let pluginMap = new Map();
|
|
377
|
+
return null == plugins || plugins.forEach((plugin)=>{
|
|
378
|
+
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
379
|
+
}), Array.from(pluginMap.values());
|
|
380
|
+
}
|
|
381
381
|
async function getBuildDependencies(root, userBuildDependencies, envFilePaths) {
|
|
382
382
|
let rootPackageJson = node_path.join(root, 'package.json'), browserslistConfig = node_path.join(root, '.browserslistrc'), tsconfigPath = node_path.join(root, 'tsconfig.json'), buildDependencies = {};
|
|
383
383
|
await isFileExists(rootPackageJson) && (buildDependencies.packageJson = [
|
|
@@ -589,7 +589,7 @@ class JsMinifyPlugin {
|
|
|
589
589
|
apply(compiler) {
|
|
590
590
|
let meta = JSON.stringify({
|
|
591
591
|
name: jsMinify_PLUGIN_NAME,
|
|
592
|
-
version: "3.2.
|
|
592
|
+
version: "3.2.6",
|
|
593
593
|
options: this.minifyOptions
|
|
594
594
|
});
|
|
595
595
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -919,9 +919,18 @@ class ProgressRspackPlugin extends rspack.ProgressPlugin {
|
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
922
|
-
async function getBundlerConfig(
|
|
922
|
+
async function getBundlerConfig(originalUnpackConfig) {
|
|
923
923
|
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;
|
|
924
|
-
let circularCount,
|
|
924
|
+
let circularCount, { plugins, bundlerConfig, ...rest } = originalUnpackConfig;
|
|
925
|
+
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
926
|
+
...originalUnpackConfig._context,
|
|
927
|
+
mergeConfig: mergeConfig
|
|
928
|
+
});
|
|
929
|
+
let unpackConfig = {
|
|
930
|
+
...rest,
|
|
931
|
+
plugins,
|
|
932
|
+
bundlerConfig
|
|
933
|
+
}, 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 = [
|
|
925
934
|
'PUBLIC_'
|
|
926
935
|
], processEnv = process.env } = {}) {
|
|
927
936
|
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.`);
|
|
@@ -1146,13 +1155,16 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1146
1155
|
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
1147
1156
|
]
|
|
1148
1157
|
},
|
|
1158
|
+
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && utils_isDevServer() && {
|
|
1159
|
+
imports: !0,
|
|
1160
|
+
entries: !!unpackConfig.mpa
|
|
1161
|
+
},
|
|
1149
1162
|
experiments: {
|
|
1150
|
-
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && utils_isDevServer() && {
|
|
1151
|
-
imports: !0,
|
|
1152
|
-
entries: !!unpackConfig.mpa
|
|
1153
|
-
},
|
|
1154
1163
|
css: !1,
|
|
1155
|
-
asyncWebAssembly: !0
|
|
1164
|
+
asyncWebAssembly: !0,
|
|
1165
|
+
lazyBarrel: !0,
|
|
1166
|
+
inlineEnum: !0,
|
|
1167
|
+
typeReexportsPresence: !0
|
|
1156
1168
|
},
|
|
1157
1169
|
optimization: {
|
|
1158
1170
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1754,15 +1766,20 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1754
1766
|
...unpackConfig.externals
|
|
1755
1767
|
}, unpackConfig.plugins.push({
|
|
1756
1768
|
name: 'unpack:prebundle',
|
|
1769
|
+
config: (config)=>{
|
|
1770
|
+
var _config_html;
|
|
1771
|
+
let originalHeadTag = (null == (_config_html = config.html) ? void 0 : _config_html.headTag) || '', sortedPreTags = preJsAssets.sort((a, b)=>a.order - b.order).map((item)=>item.path).map((item)=>`<script defer src="${item}"></script>`);
|
|
1772
|
+
return setValueByPath(config, [
|
|
1773
|
+
'html',
|
|
1774
|
+
'headTag'
|
|
1775
|
+
], `${sortedPreTags.join('')}${originalHeadTag}`), config;
|
|
1776
|
+
},
|
|
1757
1777
|
bundlerConfig: (config)=>{
|
|
1758
1778
|
let PLUGIN_NAME = 'PluginInjectAssets';
|
|
1759
1779
|
return config.plugins.push({
|
|
1760
1780
|
apply: (compiler)=>{
|
|
1761
1781
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
|
1762
|
-
rspack.HtmlRspackPlugin.getCompilationHooks(compilation).beforeAssetTagGeneration.tapPromise(PLUGIN_NAME, async (args)=>
|
|
1763
|
-
let sortedPreJsAssets = preJsAssets.sort((a, b)=>a.order - b.order).map((item)=>item.path);
|
|
1764
|
-
return args.assets.js.unshift(...sortedPreJsAssets, ...jsAssets), args.assets.css.unshift(...cssAssets), args;
|
|
1765
|
-
});
|
|
1782
|
+
rspack.HtmlRspackPlugin.getCompilationHooks(compilation).beforeAssetTagGeneration.tapPromise(PLUGIN_NAME, async (args)=>(args.assets.js.unshift(...jsAssets), args.assets.css.unshift(...cssAssets), args));
|
|
1766
1783
|
});
|
|
1767
1784
|
}
|
|
1768
1785
|
}), config;
|
|
@@ -1776,11 +1793,19 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1776
1793
|
unpackConfig
|
|
1777
1794
|
}));
|
|
1778
1795
|
let compiler = rspack(await getBundlerConfig(unpackConfig)), port = await getPort(null == (_unpackConfig_server = unpackConfig.server) ? void 0 : _unpackConfig_server.port), proxyConfig = null == (_unpackConfig_server1 = unpackConfig.server) ? void 0 : _unpackConfig_server1.proxy;
|
|
1779
|
-
isPlainObject(proxyConfig) && (proxyConfig = Object.entries(proxyConfig).map(([contextStr, target])=>
|
|
1796
|
+
isPlainObject(proxyConfig) && (proxyConfig = Object.entries(proxyConfig).map(([contextStr, target])=>{
|
|
1797
|
+
let baseConfig = {
|
|
1780
1798
|
context: contextStr.split(','),
|
|
1781
|
-
target,
|
|
1782
1799
|
changeOrigin: !0
|
|
1783
|
-
}
|
|
1800
|
+
};
|
|
1801
|
+
return isPlainObject(target) ? {
|
|
1802
|
+
...baseConfig,
|
|
1803
|
+
...target
|
|
1804
|
+
} : {
|
|
1805
|
+
...baseConfig,
|
|
1806
|
+
target
|
|
1807
|
+
};
|
|
1808
|
+
}));
|
|
1784
1809
|
let devServerOptions = {
|
|
1785
1810
|
hot: !0,
|
|
1786
1811
|
port,
|
|
@@ -1798,7 +1823,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1798
1823
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1799
1824
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1800
1825
|
let server = new webpack_dev_server(devServerOptions, compiler);
|
|
1801
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.
|
|
1826
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.6`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), getAddressUrls({
|
|
1802
1827
|
port: port
|
|
1803
1828
|
}).forEach((addr)=>{
|
|
1804
1829
|
let url;
|
|
@@ -1813,63 +1838,56 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1813
1838
|
}
|
|
1814
1839
|
}
|
|
1815
1840
|
function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
1816
|
-
let resolveConfig =
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
..._context,
|
|
1856
|
-
mergeConfig: mergeConfig
|
|
1841
|
+
let resolveConfig = ()=>({
|
|
1842
|
+
...mergeConfig({
|
|
1843
|
+
root: cwd,
|
|
1844
|
+
build: {
|
|
1845
|
+
outDir: 'dist',
|
|
1846
|
+
minify: isProd(),
|
|
1847
|
+
sourceMap: !isProd() && 'cheap-module-source-map',
|
|
1848
|
+
parallel: !0,
|
|
1849
|
+
filenameHash: !0,
|
|
1850
|
+
target: 'es2022'
|
|
1851
|
+
},
|
|
1852
|
+
dev: {
|
|
1853
|
+
lazyCompilation: !0
|
|
1854
|
+
},
|
|
1855
|
+
server: {
|
|
1856
|
+
port: 3000
|
|
1857
|
+
},
|
|
1858
|
+
html: {
|
|
1859
|
+
mountId: 'root'
|
|
1860
|
+
},
|
|
1861
|
+
css: {
|
|
1862
|
+
modules: !0,
|
|
1863
|
+
transformer: 'postcss',
|
|
1864
|
+
sourceMap: !1
|
|
1865
|
+
},
|
|
1866
|
+
performance: {
|
|
1867
|
+
chunkSplit: {
|
|
1868
|
+
strategy: 'split-by-experience'
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
typeCheck: !0,
|
|
1872
|
+
envPrefix: [
|
|
1873
|
+
'PUBLIC_'
|
|
1874
|
+
]
|
|
1875
|
+
}, config),
|
|
1876
|
+
_context: {
|
|
1877
|
+
callerName,
|
|
1878
|
+
version: "3.2.6"
|
|
1879
|
+
}
|
|
1857
1880
|
});
|
|
1858
|
-
return {
|
|
1859
|
-
...rest,
|
|
1860
|
-
plugins,
|
|
1861
|
-
bundlerConfig,
|
|
1862
|
-
_context
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
1881
|
return {
|
|
1866
1882
|
build: async ({ watch } = {})=>{
|
|
1867
1883
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1868
|
-
let config =
|
|
1869
|
-
console.log(colors.rainbow(`${callerName} v3.2.
|
|
1884
|
+
let config = resolveConfig();
|
|
1885
|
+
console.log(colors.rainbow(`${callerName} v3.2.6`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1870
1886
|
},
|
|
1871
1887
|
dev: async ()=>{
|
|
1872
|
-
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0)
|
|
1888
|
+
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
1889
|
+
let config = resolveConfig();
|
|
1890
|
+
await unpackDev(config);
|
|
1873
1891
|
}
|
|
1874
1892
|
};
|
|
1875
1893
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BundlerConfiguration, UnpackConfig } from '../types';
|
|
2
|
-
export declare function getBundlerConfig(
|
|
2
|
+
export declare function getBundlerConfig(originalUnpackConfig: UnpackConfig): Promise<BundlerConfiguration>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAuBnE,wBAAsB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAuBnE,wBAAsB,gBAAgB,CACpC,oBAAoB,EAAE,YAAY,GACjC,OAAO,CAAC,oBAAoB,CAAC,CA8V/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EACN,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;wBA6C4B;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;;EAiB/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AA0EnD,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CA6RvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/run/dev.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,WAAW,CAAA;AAKnE,wBAAsB,SAAS,CAAC,oBAAoB,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/run/dev.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,WAAW,CAAA;AAKnE,wBAAsB,SAAS,CAAC,oBAAoB,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6EjF"}
|
|
@@ -106,7 +106,10 @@ export type UnpackConfig = {
|
|
|
106
106
|
/**
|
|
107
107
|
* Proxy configuration for the dev server.
|
|
108
108
|
*/
|
|
109
|
-
proxy?: NonNullable<BundlerConfiguration['devServer']>['proxy'] | Record<string, string
|
|
109
|
+
proxy?: NonNullable<BundlerConfiguration['devServer']>['proxy'] | Record<string, string | {
|
|
110
|
+
target?: string;
|
|
111
|
+
pathRewrite?: Record<string, string>;
|
|
112
|
+
}>;
|
|
110
113
|
};
|
|
111
114
|
dev?: {
|
|
112
115
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,YAAY,EAAE,MAAM,EAAE,CAAA;AAEtB,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAA;AAEvD,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnD,KAAK,cAAc,GAAG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,CAAC,EAAE;QACZ;;;WAGG;QACH,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B;;WAEG;QACH,UAAU,CAAC,EAAE,UAAU,CAAA;KACxB,CAAA;IACD,WAAW,CAAC,EAAE;QACZ;;WAEG;QACH,GAAG,CAAC,EAAE,OAAO,CAAA;KACd,CAAA;IACD;;OAEG;IACH,GAAG,CAAC,EACA,OAAO,GACP;QACE;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"css-loader": "7.1.2",
|
|
32
32
|
"less-loader": "12.3.0",
|
|
33
33
|
"postcss-loader": "8.1.1",
|
|
34
|
-
"sass-embedded": "1.
|
|
34
|
+
"sass-embedded": "1.91.0",
|
|
35
35
|
"sass-loader": "16.0.5",
|
|
36
36
|
"semver": "7.7.2",
|
|
37
37
|
"style-loader": "4.0.0",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"webpack-merge": "6.0.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rspack/core": "1.
|
|
42
|
+
"@rspack/core": "1.5.0",
|
|
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.5.1",
|
|
49
|
-
"oxc-minify": "0.
|
|
49
|
+
"oxc-minify": "0.82.3",
|
|
50
50
|
"picocolors": "1.1.1",
|
|
51
51
|
"portfinder": "1.0.37",
|
|
52
52
|
"postcss": "8.5.6",
|
|
53
53
|
"thread-loader": "4.0.4",
|
|
54
54
|
"tinyglobby": "0.2.14",
|
|
55
|
-
"ts-checker-rspack-plugin": "1.1.
|
|
55
|
+
"ts-checker-rspack-plugin": "1.1.5",
|
|
56
56
|
"typed-css-modules": "0.9.1",
|
|
57
57
|
"webpack-dev-server": "5.2.2"
|
|
58
58
|
},
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
require('./sass.dart.js');
|
|
2
|
-
const library = globalThis._cliPkgExports.pop();
|
|
3
|
-
if (globalThis._cliPkgExports.length === 0) delete globalThis._cliPkgExports;
|
|
4
|
-
library.load({
|
|
5
|
-
util: require("util"),
|
|
6
|
-
stream: require("stream"),
|
|
7
|
-
nodeModule: require("module"),
|
|
8
|
-
fs: require("fs"),
|
|
9
|
-
immutable: require("immutable"),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
module.exports = library;
|