@unpackjs/core 1.7.8 → 1.7.9

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.
Files changed (50) hide show
  1. package/compiled/css-loader/index.js +20 -20
  2. package/compiled/less-loader/index.js +8 -8
  3. package/compiled/portfinder/index.d.ts +22 -3
  4. package/compiled/portfinder/index.js +1413 -1529
  5. package/compiled/portfinder/package.json +1 -1
  6. package/compiled/postcss-loader/index.js +13 -86523
  7. package/compiled/sass-loader/index.js +8 -8
  8. package/compiled/style-loader/index.js +10 -10
  9. package/dist/bundler-config/chunkSplit.cjs +7 -13
  10. package/dist/bundler-config/chunkSplit.d.ts.map +1 -1
  11. package/dist/bundler-config/chunkSplit.js +3 -3
  12. package/dist/bundler-config/css.cjs +4 -10
  13. package/dist/bundler-config/experimentCss.cjs +4 -10
  14. package/dist/bundler-config/helper.cjs +7 -13
  15. package/dist/bundler-config/helper.js +1 -1
  16. package/dist/bundler-config/index.cjs +4 -10
  17. package/dist/bundler-config/jsMinify.cjs +5 -11
  18. package/dist/bundler-config/jsMinify.js +1 -1
  19. package/dist/colors.cjs +4 -10
  20. package/dist/config.cjs +7 -13
  21. package/dist/config.js +1 -1
  22. package/dist/constants.cjs +11 -13
  23. package/dist/createUnpack.cjs +6 -12
  24. package/dist/createUnpack.js +2 -2
  25. package/dist/global.cjs +2 -4
  26. package/dist/index.cjs +20 -26
  27. package/dist/lightningcss/loader.cjs +2 -4
  28. package/dist/lightningcss/minimizer.cjs +2 -4
  29. package/dist/logger.cjs +4 -10
  30. package/dist/openBrowser.cjs +4 -10
  31. package/dist/plugin-progress/rspack.cjs +4 -10
  32. package/dist/plugin-progress/webpack.cjs +4 -10
  33. package/dist/plugin.cjs +2 -4
  34. package/dist/prebundleDeps.cjs +8 -15
  35. package/dist/prebundleDeps.d.ts.map +1 -1
  36. package/dist/prebundleDeps.js +4 -5
  37. package/dist/progressBar.cjs +4 -10
  38. package/dist/reporter.cjs +4 -10
  39. package/dist/run/build.cjs +4 -10
  40. package/dist/run/dev.cjs +5 -11
  41. package/dist/run/dev.js +1 -1
  42. package/dist/run/index.cjs +4 -10
  43. package/dist/typed-css-modules/loader.cjs +6 -12
  44. package/dist/typed-css-modules/plugin.cjs +4 -10
  45. package/dist/typed-css-modules/utils.cjs +2 -4
  46. package/dist/types/index.cjs +4 -10
  47. package/dist/types/logger.cjs +2 -4
  48. package/dist/utils.cjs +26 -32
  49. package/dist/watchFiles.cjs +4 -10
  50. package/package.json +6 -6
@@ -1,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 5374: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 2479: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(7764);
5
+ const loader = __nccwpck_require__(1969);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(7661).defaultGetLocalIdent;
8
+ __nccwpck_require__(9772).defaultGetLocalIdent;
9
9
  },
10
- 7764: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 1969: (__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__(2357));
16
16
  var _semver = __nccwpck_require__(5200);
17
- var _options = _interopRequireDefault(__nccwpck_require__(173));
18
- var _plugins = __nccwpck_require__(5563);
19
- var _utils = __nccwpck_require__(7661);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(6084));
18
+ var _plugins = __nccwpck_require__(4686);
19
+ var _utils = __nccwpck_require__(9772);
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
- 5563: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 4686: (__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__(9424),
268
+ __nccwpck_require__(2821),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(5893),
271
+ __nccwpck_require__(3316),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1348));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(5875));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 5893: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 3316: (__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__(4531);
283
- var _utils = __nccwpck_require__(7661);
283
+ var _utils = __nccwpck_require__(9772);
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
- 9424: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 2821: (__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__(7661);
389
+ var _utils = __nccwpck_require__(9772);
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
- 1348: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 5875: (__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__(7661);
701
+ var _utils = __nccwpck_require__(9772);
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
- 7661: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 9772: (__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;
@@ -7964,7 +7964,7 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 173: (module) => {
7967
+ 6084: (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__(5374);
8002
+ var __webpack_exports__ = __nccwpck_require__(2479);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 897: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(531)["default"];
4
+ 598: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(692)["default"];
6
6
  },
7
- 531: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 692: (__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__(226));
13
- var _utils = __nccwpck_require__(254);
12
+ var _options = _interopRequireDefault(__nccwpck_require__(565));
13
+ var _utils = __nccwpck_require__(213);
14
14
  function _interopRequireDefault(obj) {
15
15
  return obj && obj.__esModule ? obj : { default: obj };
16
16
  }
@@ -112,7 +112,7 @@
112
112
  }
113
113
  var _default = (exports["default"] = lessLoader);
114
114
  },
115
- 254: (__unused_webpack_module, exports, __nccwpck_require__) => {
115
+ 213: (__unused_webpack_module, exports, __nccwpck_require__) => {
116
116
  Object.defineProperty(exports, "__esModule", { value: true });
117
117
  exports.errorFactory = errorFactory;
118
118
  exports.getLessImplementation = getLessImplementation;
@@ -307,7 +307,7 @@
307
307
  928: (module) => {
308
308
  module.exports = require("path");
309
309
  },
310
- 226: (module) => {
310
+ 565: (module) => {
311
311
  module.exports = JSON.parse(
312
312
  '{"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","type":"boolean"},"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}',
313
313
  );
@@ -335,6 +335,6 @@
335
335
  }
336
336
  if (typeof __nccwpck_require__ !== "undefined")
337
337
  __nccwpck_require__.ab = __dirname + "/";
338
- var __webpack_exports__ = __nccwpck_require__(897);
338
+ var __webpack_exports__ = __nccwpck_require__(598);
339
339
  module.exports = __webpack_exports__;
340
340
  })();
@@ -48,17 +48,36 @@ declare let highestPort: number;
48
48
  */
49
49
  declare function setHighestPort(port: number): void;
50
50
 
51
+ /**
52
+ * Default path to begin any socket search from.
53
+ */
54
+ declare let basePath: string;
55
+
56
+ /**
57
+ * Set the base path to begin any socket search from.
58
+ */
59
+ declare function setBasePath(path: string): void;
60
+
51
61
  /**
52
62
  * Responds with a unbound port on the current machine.
53
63
  */
54
64
  declare function getPort(callback: PortfinderCallback): void;
55
65
  declare function getPort(options: PortFinderOptions, callback: PortfinderCallback): void;
56
66
 
57
- declare function getPorts(count: number, options: PortFinderOptions, callback: (err: Error, ports: Array<number>) => void): void;
58
-
59
67
  /**
60
68
  * Responds a promise of an unbound port on the current machine.
61
69
  */
62
70
  declare function getPortPromise(options?: PortFinderOptions): Promise<number>;
63
71
 
64
- export { basePort, getPort, getPortPromise, getPorts, highestPort, setBasePort, setHighestPort };
72
+ /**
73
+ * Responds with an array of unbound ports on the current machine.
74
+ */
75
+ declare function getPorts(count: number, callback: (err: Error, ports: Array<number>) => void): void;
76
+ declare function getPorts(count: number, options: PortFinderOptions, callback: (err: Error, ports: Array<number>) => void): void;
77
+
78
+ /**
79
+ * Responds a promise that resolves to an array of unbound ports on the current machine.
80
+ */
81
+ declare function getPortsPromise(count: number, options?: PortFinderOptions): Promise<Array<number>>;
82
+
83
+ export { basePath, basePort, getPort, getPortPromise, getPorts, getPortsPromise, highestPort, setBasePath, setBasePort, setHighestPort };