@unpackjs/core 3.1.1 → 3.2.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 +42 -23
- package/dist/index.js +39 -18
- 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/constants.d.ts +0 -2
- package/dist-types/constants.d.ts.map +1 -1
- package/dist-types/createUnpack.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +13 -1
- package/dist-types/types/config.d.ts.map +1 -1
- package/dist-types/utils.d.ts +2 -1
- package/dist-types/utils.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
8954: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(968);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(6705).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
968: (__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__(8857));
|
|
18
|
+
var _plugins = __nccwpck_require__(2375);
|
|
19
|
+
var _utils = __nccwpck_require__(6705);
|
|
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
|
+
2375: (__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__(468),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(4817),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(2968));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
4817: (__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__(6705);
|
|
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
|
+
468: (__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__(6705);
|
|
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
|
+
2968: (__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__(6705);
|
|
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
|
+
6705: (__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__(1639);
|
|
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
|
+
1639: (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
|
+
8857: (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__(8954);
|
|
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
|
+
400: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(246)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
246: (__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__(59));
|
|
13
|
+
var _utils = __nccwpck_require__(895);
|
|
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
|
+
895: (__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
|
+
59: (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__(400);
|
|
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
|
+
2941: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(3511)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
3511: (__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__(2598));
|
|
5334
|
+
var _utils = __nccwpck_require__(5186);
|
|
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
|
+
5186: (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
|
+
2598: (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__(2941);
|
|
6721
6721
|
module.exports = __webpack_exports__;
|
|
6722
6722
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
52: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(114);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
114: (__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__(455));
|
|
4810
|
+
var _utils = __nccwpck_require__(779);
|
|
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
|
+
779: (__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
|
+
455: (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__(52);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -58,6 +58,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
58
58
|
loadConfig: ()=>loadConfig,
|
|
59
59
|
PROD_DEFAULT_FILENAME: ()=>PROD_DEFAULT_FILENAME,
|
|
60
60
|
prettyTime: ()=>prettyTime,
|
|
61
|
+
esVersionToBrowserslist: ()=>esVersionToBrowserslist,
|
|
61
62
|
mergeConfig: ()=>mergeConfig,
|
|
62
63
|
isString: ()=>isString,
|
|
63
64
|
getPathInJs: ()=>getPathInJs,
|
|
@@ -67,13 +68,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
67
68
|
EXPORT_LOCALS_CONVENTION: ()=>EXPORT_LOCALS_CONVENTION,
|
|
68
69
|
isProd: ()=>isProd,
|
|
69
70
|
isBoolean: ()=>isBoolean,
|
|
70
|
-
DEFAULT_ES_TARGET: ()=>DEFAULT_ES_TARGET,
|
|
71
71
|
createChokidar: ()=>createChokidar,
|
|
72
|
-
CSS_MODULES_LOCAL_IDENT_NAME: ()=>CSS_MODULES_LOCAL_IDENT_NAME,
|
|
73
72
|
setDevServer: ()=>setDevServer,
|
|
73
|
+
CSS_MODULES_LOCAL_IDENT_NAME: ()=>CSS_MODULES_LOCAL_IDENT_NAME,
|
|
74
74
|
findExists: ()=>findExists,
|
|
75
75
|
getUserDepVersion: ()=>getUserDepVersion,
|
|
76
|
-
DEFAULT_BROWSERSLIST: ()=>DEFAULT_BROWSERSLIST,
|
|
77
76
|
NODE_MODULES_REGEX: ()=>NODE_MODULES_REGEX,
|
|
78
77
|
getTime: ()=>getTime,
|
|
79
78
|
getValueByPath: ()=>getValueByPath,
|
|
@@ -136,12 +135,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
136
135
|
cssAsync: 'css/async/[name].[contenthash:8].css'
|
|
137
136
|
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, CSS_NAMED_EXPORT = !1, THREAD_OPTIONS = {
|
|
138
137
|
workers: 2
|
|
139
|
-
}, DEFAULT_DEV_HOST = '0.0.0.0',
|
|
140
|
-
'chrome >= 107',
|
|
141
|
-
'edge >= 107',
|
|
142
|
-
'firefox >= 104',
|
|
143
|
-
'safari >= 16'
|
|
144
|
-
], DEFAULT_ES_TARGET = 'es2022', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
138
|
+
}, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
145
139
|
<html lang="en">
|
|
146
140
|
|
|
147
141
|
<head>
|
|
@@ -274,6 +268,28 @@ for(var __webpack_i__ in (()=>{
|
|
|
274
268
|
isPlainObject(modules) || (modules = {});
|
|
275
269
|
let auto = modules.auto;
|
|
276
270
|
return !1 !== auto && (isRegExp(auto) ? auto.test(resourcePath) : isFunction(auto) ? auto(resourcePath) : CSS_MODULES_REGEX.test(resourcePath));
|
|
271
|
+
}, esVersionToBrowserslist = (esVersion)=>{
|
|
272
|
+
let browsers = {
|
|
273
|
+
es2015: [
|
|
274
|
+
'chrome >= 51',
|
|
275
|
+
'edge >= 15',
|
|
276
|
+
'firefox >= 54',
|
|
277
|
+
'safari >= 10'
|
|
278
|
+
],
|
|
279
|
+
es2022: [
|
|
280
|
+
'chrome >= 107',
|
|
281
|
+
'edge >= 107',
|
|
282
|
+
'firefox >= 104',
|
|
283
|
+
'safari >= 16'
|
|
284
|
+
],
|
|
285
|
+
esnext: [
|
|
286
|
+
'last 2 versions',
|
|
287
|
+
'not dead',
|
|
288
|
+
'> 0.5%'
|
|
289
|
+
]
|
|
290
|
+
}[esVersion];
|
|
291
|
+
if (!browsers) throw Error(`Unsupported ES version: ${esVersion}`);
|
|
292
|
+
return browsers;
|
|
277
293
|
}, logger_prefixes = {
|
|
278
294
|
wait: "\u25CB",
|
|
279
295
|
error: "\u2A2F",
|
|
@@ -642,7 +658,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
642
658
|
apply(compiler) {
|
|
643
659
|
let meta = JSON.stringify({
|
|
644
660
|
name: jsMinify_PLUGIN_NAME,
|
|
645
|
-
version: "3.
|
|
661
|
+
version: "3.2.1",
|
|
646
662
|
options: this.minifyOptions
|
|
647
663
|
});
|
|
648
664
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -1062,6 +1078,10 @@ for(var __webpack_i__ in (()=>{
|
|
|
1062
1078
|
test: /\.(woff2?|eot|ttf|otf)$/i,
|
|
1063
1079
|
type: 'asset'
|
|
1064
1080
|
},
|
|
1081
|
+
{
|
|
1082
|
+
test: /\.(mp4|m4v|webm|ogv|ogg|mp3|m4a|wav|flac|aac|opus)$/i,
|
|
1083
|
+
type: 'asset/resource'
|
|
1084
|
+
},
|
|
1065
1085
|
{
|
|
1066
1086
|
test: /\.wasm$/,
|
|
1067
1087
|
dependency: 'url',
|
|
@@ -1206,8 +1226,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1206
1226
|
entries: !!unpackConfig.mpa
|
|
1207
1227
|
},
|
|
1208
1228
|
css: !1,
|
|
1209
|
-
asyncWebAssembly: !0
|
|
1210
|
-
nativeWatcher: !0
|
|
1229
|
+
asyncWebAssembly: !0
|
|
1211
1230
|
},
|
|
1212
1231
|
optimization: {
|
|
1213
1232
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1215,12 +1234,12 @@ for(var __webpack_i__ in (()=>{
|
|
|
1215
1234
|
minimizer: [
|
|
1216
1235
|
new JsMinifyPlugin(mergeConfig({
|
|
1217
1236
|
compress: {
|
|
1218
|
-
target:
|
|
1237
|
+
target: unpackConfig.build.target
|
|
1219
1238
|
}
|
|
1220
1239
|
}, minifyOptions.oxc || {})),
|
|
1221
1240
|
new core_namespaceObject.rspack.LightningCssMinimizerRspackPlugin(mergeConfig({
|
|
1222
1241
|
minimizerOptions: {
|
|
1223
|
-
targets:
|
|
1242
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target)
|
|
1224
1243
|
}
|
|
1225
1244
|
}, minifyOptions.lightningcss || {}))
|
|
1226
1245
|
]
|
|
@@ -1318,7 +1337,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1318
1337
|
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1319
1338
|
loader: 'builtin:lightningcss-loader',
|
|
1320
1339
|
options: {
|
|
1321
|
-
targets:
|
|
1340
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target),
|
|
1322
1341
|
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1323
1342
|
}
|
|
1324
1343
|
} : {
|
|
@@ -1454,7 +1473,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1454
1473
|
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1455
1474
|
loader: 'builtin:lightningcss-loader',
|
|
1456
1475
|
options: {
|
|
1457
|
-
targets:
|
|
1476
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target),
|
|
1458
1477
|
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1459
1478
|
}
|
|
1460
1479
|
} : {
|
|
@@ -1861,7 +1880,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1861
1880
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1862
1881
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1863
1882
|
let server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
|
|
1864
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1883
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.1`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
|
|
1865
1884
|
let addressUrls = getAddressUrls({
|
|
1866
1885
|
port
|
|
1867
1886
|
});
|
|
@@ -1887,7 +1906,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
1887
1906
|
minify: isProd(),
|
|
1888
1907
|
sourceMap: !isProd() && 'cheap-module-source-map',
|
|
1889
1908
|
parallel: !0,
|
|
1890
|
-
filenameHash: !0
|
|
1909
|
+
filenameHash: !0,
|
|
1910
|
+
target: 'es2022'
|
|
1891
1911
|
},
|
|
1892
1912
|
dev: {
|
|
1893
1913
|
lazyCompilation: !0
|
|
@@ -1914,7 +1934,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1914
1934
|
]
|
|
1915
1935
|
}, _context = {
|
|
1916
1936
|
callerName,
|
|
1917
|
-
version: "3.
|
|
1937
|
+
version: "3.2.1"
|
|
1918
1938
|
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1919
1939
|
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1920
1940
|
..._context,
|
|
@@ -1931,7 +1951,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1931
1951
|
build: async ({ watch } = {})=>{
|
|
1932
1952
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1933
1953
|
let config = await resolveConfig();
|
|
1934
|
-
console.log(colors.rainbow(`${callerName} v3.
|
|
1954
|
+
console.log(colors.rainbow(`${callerName} v3.2.1`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
|
|
1935
1955
|
},
|
|
1936
1956
|
dev: async ()=>{
|
|
1937
1957
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
|
|
@@ -1956,13 +1976,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
1956
1976
|
...options
|
|
1957
1977
|
});
|
|
1958
1978
|
}
|
|
1959
|
-
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.
|
|
1979
|
+
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.TEMP_DIR = __webpack_exports__.TEMP_DIR, exports.THREAD_OPTIONS = __webpack_exports__.THREAD_OPTIONS, exports.clearLine = __webpack_exports__.clearLine, exports.colors = __webpack_exports__.colors, exports.createChokidar = __webpack_exports__.createChokidar, exports.createUnpack = __webpack_exports__.createUnpack, exports.debounce = __webpack_exports__.debounce, exports.defineConfig = __webpack_exports__.defineConfig, exports.esVersionToBrowserslist = __webpack_exports__.esVersionToBrowserslist, exports.findExists = __webpack_exports__.findExists, exports.getAddressUrls = __webpack_exports__.getAddressUrls, exports.getCompiledPkgPath = __webpack_exports__.getCompiledPkgPath, exports.getIpv4Interfaces = __webpack_exports__.getIpv4Interfaces, exports.getNodeEnv = __webpack_exports__.getNodeEnv, exports.getPathInJs = __webpack_exports__.getPathInJs, exports.getPort = __webpack_exports__.getPort, exports.getTime = __webpack_exports__.getTime, exports.getUserDepPath = __webpack_exports__.getUserDepPath, exports.getUserDepVersion = __webpack_exports__.getUserDepVersion, exports.getValueByPath = __webpack_exports__.getValueByPath, exports.isBoolean = __webpack_exports__.isBoolean, exports.isCI = __webpack_exports__.isCI, exports.isCSSModules = __webpack_exports__.isCSSModules, exports.isDebug = __webpack_exports__.isDebug, exports.isDev = __webpack_exports__.isDev, exports.isDevServer = __webpack_exports__.isDevServer, exports.isEmptyDir = __webpack_exports__.isEmptyDir, exports.isFileExists = __webpack_exports__.isFileExists, exports.isFileSync = __webpack_exports__.isFileSync, exports.isFunction = __webpack_exports__.isFunction, exports.isNodeVersionAtLeast = __webpack_exports__.isNodeVersionAtLeast, exports.isObject = __webpack_exports__.isObject, exports.isPlainObject = __webpack_exports__.isPlainObject, exports.isProd = __webpack_exports__.isProd, exports.isRegExp = __webpack_exports__.isRegExp, exports.isString = __webpack_exports__.isString, exports.isUndefined = __webpack_exports__.isUndefined, exports.isWatch = __webpack_exports__.isWatch, exports.isWin = __webpack_exports__.isWin, exports.loadConfig = __webpack_exports__.loadConfig, exports.logUpdate = __webpack_exports__.logUpdate, exports.logger = __webpack_exports__.logger, exports.mergeConfig = __webpack_exports__.mergeConfig, exports.pathExists = __webpack_exports__.pathExists, exports.prettyTime = __webpack_exports__.prettyTime, exports.removeDir = __webpack_exports__.removeDir, exports.resolveConfigPath = __webpack_exports__.resolveConfigPath, exports.restartCleaners = __webpack_exports__.restartCleaners, exports.rspack = __webpack_exports__.rspack, exports.setDevServer = __webpack_exports__.setDevServer, exports.setNodeEnv = __webpack_exports__.setNodeEnv, exports.setValueByPath = __webpack_exports__.setValueByPath, exports.trackPerformance = __webpack_exports__.trackPerformance, __webpack_exports__)-1 === [
|
|
1960
1980
|
"CSS_MODULES_LOCAL_IDENT_NAME",
|
|
1961
1981
|
"CSS_MODULES_REGEX",
|
|
1962
1982
|
"CSS_NAMED_EXPORT",
|
|
1963
|
-
"DEFAULT_BROWSERSLIST",
|
|
1964
1983
|
"DEFAULT_DEV_HOST",
|
|
1965
|
-
"DEFAULT_ES_TARGET",
|
|
1966
1984
|
"DEV_DEFAULT_FILENAME",
|
|
1967
1985
|
"EXPORT_LOCALS_CONVENTION",
|
|
1968
1986
|
"LogColor",
|
|
@@ -1977,6 +1995,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1977
1995
|
"createUnpack",
|
|
1978
1996
|
"debounce",
|
|
1979
1997
|
"defineConfig",
|
|
1998
|
+
"esVersionToBrowserslist",
|
|
1980
1999
|
"findExists",
|
|
1981
2000
|
"getAddressUrls",
|
|
1982
2001
|
"getCompiledPkgPath",
|
package/dist/index.js
CHANGED
|
@@ -66,12 +66,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
|
|
|
66
66
|
cssAsync: 'css/async/[name].[contenthash:8].css'
|
|
67
67
|
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, CSS_NAMED_EXPORT = !1, THREAD_OPTIONS = {
|
|
68
68
|
workers: 2
|
|
69
|
-
}, DEFAULT_DEV_HOST = '0.0.0.0',
|
|
70
|
-
'chrome >= 107',
|
|
71
|
-
'edge >= 107',
|
|
72
|
-
'firefox >= 104',
|
|
73
|
-
'safari >= 16'
|
|
74
|
-
], DEFAULT_ES_TARGET = 'es2022', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
69
|
+
}, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
75
70
|
<html lang="en">
|
|
76
71
|
|
|
77
72
|
<head>
|
|
@@ -206,6 +201,28 @@ let isCSSModules = ({ resourcePath, modules })=>{
|
|
|
206
201
|
isPlainObject(modules) || (modules = {});
|
|
207
202
|
let auto = modules.auto;
|
|
208
203
|
return !1 !== auto && (isRegExp(auto) ? auto.test(resourcePath) : isFunction(auto) ? auto(resourcePath) : CSS_MODULES_REGEX.test(resourcePath));
|
|
204
|
+
}, esVersionToBrowserslist = (esVersion)=>{
|
|
205
|
+
let browsers = {
|
|
206
|
+
es2015: [
|
|
207
|
+
'chrome >= 51',
|
|
208
|
+
'edge >= 15',
|
|
209
|
+
'firefox >= 54',
|
|
210
|
+
'safari >= 10'
|
|
211
|
+
],
|
|
212
|
+
es2022: [
|
|
213
|
+
'chrome >= 107',
|
|
214
|
+
'edge >= 107',
|
|
215
|
+
'firefox >= 104',
|
|
216
|
+
'safari >= 16'
|
|
217
|
+
],
|
|
218
|
+
esnext: [
|
|
219
|
+
'last 2 versions',
|
|
220
|
+
'not dead',
|
|
221
|
+
'> 0.5%'
|
|
222
|
+
]
|
|
223
|
+
}[esVersion];
|
|
224
|
+
if (!browsers) throw Error(`Unsupported ES version: ${esVersion}`);
|
|
225
|
+
return browsers;
|
|
209
226
|
}, logger_prefixes = {
|
|
210
227
|
wait: "\u25CB",
|
|
211
228
|
error: "\u2A2F",
|
|
@@ -572,7 +589,7 @@ class JsMinifyPlugin {
|
|
|
572
589
|
apply(compiler) {
|
|
573
590
|
let meta = JSON.stringify({
|
|
574
591
|
name: jsMinify_PLUGIN_NAME,
|
|
575
|
-
version: "3.
|
|
592
|
+
version: "3.2.1",
|
|
576
593
|
options: this.minifyOptions
|
|
577
594
|
});
|
|
578
595
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -989,6 +1006,10 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
989
1006
|
test: /\.(woff2?|eot|ttf|otf)$/i,
|
|
990
1007
|
type: 'asset'
|
|
991
1008
|
},
|
|
1009
|
+
{
|
|
1010
|
+
test: /\.(mp4|m4v|webm|ogv|ogg|mp3|m4a|wav|flac|aac|opus)$/i,
|
|
1011
|
+
type: 'asset/resource'
|
|
1012
|
+
},
|
|
992
1013
|
{
|
|
993
1014
|
test: /\.wasm$/,
|
|
994
1015
|
dependency: 'url',
|
|
@@ -1131,8 +1152,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1131
1152
|
entries: !!unpackConfig.mpa
|
|
1132
1153
|
},
|
|
1133
1154
|
css: !1,
|
|
1134
|
-
asyncWebAssembly: !0
|
|
1135
|
-
nativeWatcher: !0
|
|
1155
|
+
asyncWebAssembly: !0
|
|
1136
1156
|
},
|
|
1137
1157
|
optimization: {
|
|
1138
1158
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
@@ -1140,12 +1160,12 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1140
1160
|
minimizer: [
|
|
1141
1161
|
new JsMinifyPlugin(mergeConfig({
|
|
1142
1162
|
compress: {
|
|
1143
|
-
target:
|
|
1163
|
+
target: unpackConfig.build.target
|
|
1144
1164
|
}
|
|
1145
1165
|
}, minifyOptions.oxc || {})),
|
|
1146
1166
|
new rspack.LightningCssMinimizerRspackPlugin(mergeConfig({
|
|
1147
1167
|
minimizerOptions: {
|
|
1148
|
-
targets:
|
|
1168
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target)
|
|
1149
1169
|
}
|
|
1150
1170
|
}, minifyOptions.lightningcss || {}))
|
|
1151
1171
|
]
|
|
@@ -1243,7 +1263,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1243
1263
|
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1244
1264
|
loader: 'builtin:lightningcss-loader',
|
|
1245
1265
|
options: {
|
|
1246
|
-
targets:
|
|
1266
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target),
|
|
1247
1267
|
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1248
1268
|
}
|
|
1249
1269
|
} : {
|
|
@@ -1379,7 +1399,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
1379
1399
|
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1380
1400
|
loader: 'builtin:lightningcss-loader',
|
|
1381
1401
|
options: {
|
|
1382
|
-
targets:
|
|
1402
|
+
targets: esVersionToBrowserslist(unpackConfig.build.target),
|
|
1383
1403
|
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1384
1404
|
}
|
|
1385
1405
|
} : {
|
|
@@ -1778,7 +1798,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1778
1798
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1779
1799
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1780
1800
|
let server = new webpack_dev_server(devServerOptions, compiler);
|
|
1781
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1801
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.2.1`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), getAddressUrls({
|
|
1782
1802
|
port: port
|
|
1783
1803
|
}).forEach((addr)=>{
|
|
1784
1804
|
let url;
|
|
@@ -1801,7 +1821,8 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1801
1821
|
minify: isProd(),
|
|
1802
1822
|
sourceMap: !isProd() && 'cheap-module-source-map',
|
|
1803
1823
|
parallel: !0,
|
|
1804
|
-
filenameHash: !0
|
|
1824
|
+
filenameHash: !0,
|
|
1825
|
+
target: 'es2022'
|
|
1805
1826
|
},
|
|
1806
1827
|
dev: {
|
|
1807
1828
|
lazyCompilation: !0
|
|
@@ -1828,7 +1849,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1828
1849
|
]
|
|
1829
1850
|
}, _context = {
|
|
1830
1851
|
callerName,
|
|
1831
|
-
version: "3.
|
|
1852
|
+
version: "3.2.1"
|
|
1832
1853
|
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1833
1854
|
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1834
1855
|
..._context,
|
|
@@ -1845,7 +1866,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1845
1866
|
build: async ({ watch } = {})=>{
|
|
1846
1867
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1847
1868
|
let config = await resolveConfig();
|
|
1848
|
-
console.log(colors.rainbow(`${callerName} v3.
|
|
1869
|
+
console.log(colors.rainbow(`${callerName} v3.2.1`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
|
|
1849
1870
|
},
|
|
1850
1871
|
dev: async ()=>{
|
|
1851
1872
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
|
|
@@ -1865,4 +1886,4 @@ async function createChokidar(pathOrGlobs, root = process.cwd(), options) {
|
|
|
1865
1886
|
...options
|
|
1866
1887
|
});
|
|
1867
1888
|
}
|
|
1868
|
-
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, CSS_NAMED_EXPORT,
|
|
1889
|
+
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, CSS_NAMED_EXPORT, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT, TEMP_DIR, THREAD_OPTIONS, clearLine, colors, createChokidar, createUnpack, debounce, defineConfig, esVersionToBrowserslist, findExists, getAddressUrls, getCompiledPkgPath, getIpv4Interfaces, getNodeEnv, getPathInJs, getPort, getTime, getUserDepPath, getUserDepVersion, getValueByPath, isBoolean, isCI, isCSSModules, isDebug, isDev, utils_isDevServer as isDevServer, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isProd, isRegExp, isString, isUndefined, isWatch, isWin, loadConfig, logUpdate, logger_logger as logger, mergeConfig, pathExists, prettyTime, removeDir, resolveConfigPath, restartCleaners, rspack, setDevServer, setNodeEnv, setValueByPath, trackPerformance };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAe3E,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":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAgB3E,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":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAuBnE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAkVhG"}
|
|
@@ -20,8 +20,6 @@ export declare const THREAD_OPTIONS: {
|
|
|
20
20
|
workers: number;
|
|
21
21
|
};
|
|
22
22
|
export declare const DEFAULT_DEV_HOST = "0.0.0.0";
|
|
23
|
-
export declare const DEFAULT_BROWSERSLIST: string[];
|
|
24
|
-
export declare const DEFAULT_ES_TARGET = "es2022";
|
|
25
23
|
export declare const TEMPLATE_CONTENT: ({ title, headTag, mountId }: {
|
|
26
24
|
title?: string | undefined;
|
|
27
25
|
headTag?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,QAAQ,yBAAyB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,eAAO,MAAM,cAAc;;CAE1B,CAAA;AACD,eAAO,MAAM,gBAAgB,YAAY,CAAA;AACzC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,QAAQ,yBAAyB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,eAAO,MAAM,cAAc;;CAE1B,CAAA;AACD,eAAO,MAAM,gBAAgB,YAAY,CAAA;AACzC,eAAO,MAAM,gBAAgB,GAAI;;;;CAA0C,WAkB1E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAGA,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;
|
|
1
|
+
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAGA,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;wBAkD4B;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;;EAiB/C"}
|
|
@@ -6,6 +6,7 @@ import type { OxcMinifyPluginOptions } from './oxc';
|
|
|
6
6
|
import type { UnpackPlugin } from './plugin';
|
|
7
7
|
export type { Rspack };
|
|
8
8
|
export type BundlerConfiguration = Rspack.Configuration;
|
|
9
|
+
export type Target = 'es2015' | 'es2022' | 'esnext';
|
|
9
10
|
type PostCSSOptions = ProcessOptions & {
|
|
10
11
|
/**
|
|
11
12
|
* Allows to set options using config files.
|
|
@@ -19,6 +20,11 @@ type BundlerConfig = BundlerConfiguration | ((config: BundlerConfiguration, cont
|
|
|
19
20
|
mergeConfig: (...configs: BundlerConfiguration[]) => BundlerConfiguration;
|
|
20
21
|
}) => Promise<BundlerConfiguration> | BundlerConfiguration);
|
|
21
22
|
export type UnpackConfig = {
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* This property is for framework-internal use only and is not part of the public API.
|
|
26
|
+
* Do not reference or modify it in user configurations.
|
|
27
|
+
*/
|
|
22
28
|
_context?: {
|
|
23
29
|
/**
|
|
24
30
|
* The name of the framework or tool that is currently invoking Unpack,
|
|
@@ -56,7 +62,8 @@ export type UnpackConfig = {
|
|
|
56
62
|
*/
|
|
57
63
|
sourceMap?: boolean;
|
|
58
64
|
/**
|
|
59
|
-
* @default true
|
|
65
|
+
* @default true
|
|
66
|
+
* Enable CSS Modules for files matching `/\.module\.\w+$/i.test(filename)` regexp.
|
|
60
67
|
*/
|
|
61
68
|
modules?: boolean | {
|
|
62
69
|
/**
|
|
@@ -183,6 +190,11 @@ export type UnpackConfig = {
|
|
|
183
190
|
* Whether to show a progress bar during the build.
|
|
184
191
|
*/
|
|
185
192
|
progressBar?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Target ECMAScript version for the output.
|
|
195
|
+
* @default "es2022"
|
|
196
|
+
*/
|
|
197
|
+
target?: Target;
|
|
186
198
|
};
|
|
187
199
|
html?: {
|
|
188
200
|
/**
|
|
@@ -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,CAA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AEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
|
package/dist-types/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os from 'node:os';
|
|
2
|
-
import type { CompiledPkgName, NodeEnv, UnpackConfig } from './types';
|
|
2
|
+
import type { CompiledPkgName, NodeEnv, Target, UnpackConfig } from './types';
|
|
3
3
|
export declare const getNodeEnv: () => NodeEnv;
|
|
4
4
|
export declare const setNodeEnv: (env: NodeEnv) => void;
|
|
5
5
|
export declare const setDevServer: (isDevServer: boolean) => void;
|
|
@@ -50,5 +50,6 @@ export declare const isCSSModules: ({ resourcePath, modules, }: {
|
|
|
50
50
|
resourcePath: string;
|
|
51
51
|
modules: NonNullable<UnpackConfig["css"]>["modules"];
|
|
52
52
|
}) => boolean;
|
|
53
|
+
export declare const esVersionToBrowserslist: (esVersion: Target) => string[];
|
|
53
54
|
export {};
|
|
54
55
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,SAAS,CAAA;AAKxB,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,SAAS,CAAA;AAKxB,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI7E,eAAO,MAAM,UAAU,QAAiC,OAAO,CAAA;AAE/D,eAAO,MAAM,UAAU,GAAI,KAAK,OAAO,SAEtC,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,aAAa,OAAO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AAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;CACrD,KAAG,OAQH,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,WAAW,MAAM,KAAG,MAAM,EAajE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"webpack-merge": "6.0.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rspack/core": "1.4.
|
|
42
|
+
"@rspack/core": "1.4.9",
|
|
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
|
-
"oxc-minify": "0.77.
|
|
49
|
+
"oxc-minify": "0.77.3",
|
|
50
50
|
"picocolors": "1.1.1",
|
|
51
51
|
"portfinder": "1.0.37",
|
|
52
52
|
"postcss": "8.5.6",
|