@unpackjs/core 3.0.0 → 3.1.0

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.
@@ -1,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 587: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 8877: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(2677);
5
+ const loader = __nccwpck_require__(5255);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(6336).defaultGetLocalIdent;
8
+ __nccwpck_require__(6578).defaultGetLocalIdent;
9
9
  },
10
- 2677: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 5255: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
14
  var _postcss = _interopRequireDefault(__nccwpck_require__(1940));
15
15
  var _package = _interopRequireDefault(__nccwpck_require__(444));
16
16
  var _semver = __nccwpck_require__(5200);
17
- var _options = _interopRequireDefault(__nccwpck_require__(2608));
18
- var _plugins = __nccwpck_require__(1930);
19
- var _utils = __nccwpck_require__(6336);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(9046));
18
+ var _plugins = __nccwpck_require__(8796);
19
+ var _utils = __nccwpck_require__(6578);
20
20
  function _interopRequireDefault(obj) {
21
21
  return obj && obj.__esModule ? obj : { default: obj };
22
22
  }
@@ -243,7 +243,7 @@
243
243
  callback(null, `${importCode}${moduleCode}${exportCode}`);
244
244
  }
245
245
  },
246
- 1930: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 8796: (__unused_webpack_module, exports, __nccwpck_require__) => {
247
247
  "use strict";
248
248
  Object.defineProperty(exports, "__esModule", { value: true });
249
249
  Object.defineProperty(exports, "icssParser", {
@@ -265,22 +265,22 @@
265
265
  },
266
266
  });
267
267
  var _postcssImportParser = _interopRequireDefault(
268
- __nccwpck_require__(6473),
268
+ __nccwpck_require__(1639),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(8016),
271
+ __nccwpck_require__(8218),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4279));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1853));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 8016: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 8218: (__unused_webpack_module, exports, __nccwpck_require__) => {
279
279
  "use strict";
280
280
  Object.defineProperty(exports, "__esModule", { value: true });
281
281
  exports["default"] = void 0;
282
282
  var _icssUtils = __nccwpck_require__(9028);
283
- var _utils = __nccwpck_require__(6336);
283
+ var _utils = __nccwpck_require__(6578);
284
284
  const plugin = (options = {}) => ({
285
285
  postcssPlugin: "postcss-icss-parser",
286
286
  async OnceExit(root) {
@@ -379,14 +379,14 @@
379
379
  plugin.postcss = true;
380
380
  var _default = (exports["default"] = plugin);
381
381
  },
382
- 6473: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 1639: (__unused_webpack_module, exports, __nccwpck_require__) => {
383
383
  "use strict";
384
384
  Object.defineProperty(exports, "__esModule", { value: true });
385
385
  exports["default"] = void 0;
386
386
  var _postcssValueParser = _interopRequireDefault(
387
387
  __nccwpck_require__(2948),
388
388
  );
389
- var _utils = __nccwpck_require__(6336);
389
+ var _utils = __nccwpck_require__(6578);
390
390
  function _interopRequireDefault(obj) {
391
391
  return obj && obj.__esModule ? obj : { default: obj };
392
392
  }
@@ -691,14 +691,14 @@
691
691
  plugin.postcss = true;
692
692
  var _default = (exports["default"] = plugin);
693
693
  },
694
- 4279: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 1853: (__unused_webpack_module, exports, __nccwpck_require__) => {
695
695
  "use strict";
696
696
  Object.defineProperty(exports, "__esModule", { value: true });
697
697
  exports["default"] = void 0;
698
698
  var _postcssValueParser = _interopRequireDefault(
699
699
  __nccwpck_require__(2948),
700
700
  );
701
- var _utils = __nccwpck_require__(6336);
701
+ var _utils = __nccwpck_require__(6578);
702
702
  function _interopRequireDefault(obj) {
703
703
  return obj && obj.__esModule ? obj : { default: obj };
704
704
  }
@@ -1041,7 +1041,7 @@
1041
1041
  plugin.postcss = true;
1042
1042
  var _default = (exports["default"] = plugin);
1043
1043
  },
1044
- 6336: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 6578: (__unused_webpack_module, exports, __nccwpck_require__) => {
1045
1045
  "use strict";
1046
1046
  Object.defineProperty(exports, "__esModule", { value: true });
1047
1047
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -7475,7 +7475,7 @@
7475
7475
  module.exports = exports.default;
7476
7476
  },
7477
7477
  2948: (module, __unused_webpack_exports, __nccwpck_require__) => {
7478
- var parse = __nccwpck_require__(1639);
7478
+ var parse = __nccwpck_require__(4020);
7479
7479
  var walk = __nccwpck_require__(8483);
7480
7480
  var stringify = __nccwpck_require__(169);
7481
7481
  function ValueParser(value) {
@@ -7497,7 +7497,7 @@
7497
7497
  ValueParser.stringify = stringify;
7498
7498
  module.exports = ValueParser;
7499
7499
  },
7500
- 1639: (module) => {
7500
+ 4020: (module) => {
7501
7501
  var openParentheses = "(".charCodeAt(0);
7502
7502
  var closeParentheses = ")".charCodeAt(0);
7503
7503
  var singleQuote = "'".charCodeAt(0);
@@ -7964,7 +7964,7 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 2608: (module) => {
7967
+ 9046: (module) => {
7968
7968
  "use strict";
7969
7969
  module.exports = JSON.parse(
7970
7970
  '{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
@@ -7999,6 +7999,6 @@
7999
7999
  }
8000
8000
  if (typeof __nccwpck_require__ !== "undefined")
8001
8001
  __nccwpck_require__.ab = __dirname + "/";
8002
- var __webpack_exports__ = __nccwpck_require__(587);
8002
+ var __webpack_exports__ = __nccwpck_require__(8877);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 353: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(883)["default"];
4
+ 699: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(245)["default"];
6
6
  },
7
- 883: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 245: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = void 0;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(928));
12
- var _options = _interopRequireDefault(__nccwpck_require__(82));
13
- var _utils = __nccwpck_require__(158);
12
+ var _options = _interopRequireDefault(__nccwpck_require__(248));
13
+ var _utils = __nccwpck_require__(832);
14
14
  function _interopRequireDefault(e) {
15
15
  return e && e.__esModule ? e : { default: e };
16
16
  }
@@ -112,7 +112,7 @@
112
112
  }
113
113
  var _default = (exports["default"] = lessLoader);
114
114
  },
115
- 158: (__unused_webpack_module, exports, __nccwpck_require__) => {
115
+ 832: (__unused_webpack_module, exports, __nccwpck_require__) => {
116
116
  Object.defineProperty(exports, "__esModule", { value: true });
117
117
  exports.errorFactory = errorFactory;
118
118
  exports.getLessImplementation = getLessImplementation;
@@ -312,7 +312,7 @@
312
312
  928: (module) => {
313
313
  module.exports = require("path");
314
314
  },
315
- 82: (module) => {
315
+ 248: (module) => {
316
316
  module.exports = JSON.parse(
317
317
  '{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","anyOf":[{"type":"boolean"},{"type":"string","enum":["only"]}]},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
318
318
  );
@@ -340,6 +340,6 @@
340
340
  }
341
341
  if (typeof __nccwpck_require__ !== "undefined")
342
342
  __nccwpck_require__.ab = __dirname + "/";
343
- var __webpack_exports__ = __nccwpck_require__(353);
343
+ var __webpack_exports__ = __nccwpck_require__(699);
344
344
  module.exports = __webpack_exports__;
345
345
  })();
@@ -5319,19 +5319,19 @@
5319
5319
  module.exports = createColors();
5320
5320
  module.exports.createColors = createColors;
5321
5321
  },
5322
- 4774: (module, __unused_webpack_exports, __nccwpck_require__) => {
5322
+ 7768: (module, __unused_webpack_exports, __nccwpck_require__) => {
5323
5323
  "use strict";
5324
- module.exports = __nccwpck_require__(8764)["default"];
5324
+ module.exports = __nccwpck_require__(390)["default"];
5325
5325
  },
5326
- 8764: (__unused_webpack_module, exports, __nccwpck_require__) => {
5326
+ 390: (__unused_webpack_module, exports, __nccwpck_require__) => {
5327
5327
  "use strict";
5328
5328
  var __webpack_unused_export__;
5329
5329
  __webpack_unused_export__ = { value: true };
5330
5330
  exports["default"] = loader;
5331
5331
  var _path = _interopRequireDefault(__nccwpck_require__(6928));
5332
5332
  var _package = _interopRequireDefault(__nccwpck_require__(444));
5333
- var _options = _interopRequireDefault(__nccwpck_require__(4933));
5334
- var _utils = __nccwpck_require__(6853);
5333
+ var _options = _interopRequireDefault(__nccwpck_require__(779));
5334
+ var _utils = __nccwpck_require__(7847);
5335
5335
  function _interopRequireDefault(obj) {
5336
5336
  return obj && obj.__esModule ? obj : { default: obj };
5337
5337
  }
@@ -5509,7 +5509,7 @@
5509
5509
  callback(null, result.css, map, { ast });
5510
5510
  }
5511
5511
  },
5512
- 6853: (module, exports, __nccwpck_require__) => {
5512
+ 7847: (module, exports, __nccwpck_require__) => {
5513
5513
  "use strict";
5514
5514
  module = __nccwpck_require__.nmd(module);
5515
5515
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6607,7 +6607,7 @@
6607
6607
  return keywords.has(word);
6608
6608
  }
6609
6609
  },
6610
- 4933: (module) => {
6610
+ 779: (module) => {
6611
6611
  "use strict";
6612
6612
  module.exports = JSON.parse(
6613
6613
  '{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
@@ -6717,6 +6717,6 @@
6717
6717
  })();
6718
6718
  if (typeof __nccwpck_require__ !== "undefined")
6719
6719
  __nccwpck_require__.ab = __dirname + "/";
6720
- var __webpack_exports__ = __nccwpck_require__(4774);
6720
+ var __webpack_exports__ = __nccwpck_require__(7768);
6721
6721
  module.exports = __webpack_exports__;
6722
6722
  })();
@@ -4795,19 +4795,19 @@
4795
4795
  }
4796
4796
  });
4797
4797
  },
4798
- 385: (module, __unused_webpack_exports, __nccwpck_require__) => {
4798
+ 927: (module, __unused_webpack_exports, __nccwpck_require__) => {
4799
4799
  "use strict";
4800
- const loader = __nccwpck_require__(699);
4800
+ const loader = __nccwpck_require__(409);
4801
4801
  module.exports = loader.default;
4802
4802
  },
4803
- 699: (__unused_webpack_module, exports, __nccwpck_require__) => {
4803
+ 409: (__unused_webpack_module, exports, __nccwpck_require__) => {
4804
4804
  "use strict";
4805
4805
  Object.defineProperty(exports, "__esModule", { value: true });
4806
4806
  exports["default"] = void 0;
4807
4807
  var _url = _interopRequireDefault(__nccwpck_require__(16));
4808
4808
  var _path = _interopRequireDefault(__nccwpck_require__(928));
4809
- var _options = _interopRequireDefault(__nccwpck_require__(50));
4810
- var _utils = __nccwpck_require__(326);
4809
+ var _options = _interopRequireDefault(__nccwpck_require__(268));
4810
+ var _utils = __nccwpck_require__(964);
4811
4811
  function _interopRequireDefault(e) {
4812
4812
  return e && e.__esModule ? e : { default: e };
4813
4813
  }
@@ -4917,7 +4917,7 @@
4917
4917
  }
4918
4918
  var _default = (exports["default"] = loader);
4919
4919
  },
4920
- 326: (__unused_webpack_module, exports, __nccwpck_require__) => {
4920
+ 964: (__unused_webpack_module, exports, __nccwpck_require__) => {
4921
4921
  "use strict";
4922
4922
  Object.defineProperty(exports, "__esModule", { value: true });
4923
4923
  exports.errorFactory = errorFactory;
@@ -5582,7 +5582,7 @@
5582
5582
  "use strict";
5583
5583
  module.exports = require("url");
5584
5584
  },
5585
- 50: (module) => {
5585
+ 268: (module) => {
5586
5586
  "use strict";
5587
5587
  module.exports = JSON.parse(
5588
5588
  '{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
@@ -5612,6 +5612,6 @@
5612
5612
  }
5613
5613
  if (typeof __nccwpck_require__ !== "undefined")
5614
5614
  __nccwpck_require__.ab = __dirname + "/";
5615
- var __webpack_exports__ = __nccwpck_require__(385);
5615
+ var __webpack_exports__ = __nccwpck_require__(927);
5616
5616
  module.exports = __webpack_exports__;
5617
5617
  })();
package/dist/index.cjs CHANGED
@@ -324,15 +324,15 @@ for(var __webpack_i__ in (()=>{
324
324
  let root = (null == cliOptions ? void 0 : cliOptions.root) ? external_node_path_default().resolve(cliOptions.root) : process.cwd(), configFilePath = resolveConfigPath(root, null == cliOptions ? void 0 : cliOptions.config), configExport = {};
325
325
  if (configFilePath) {
326
326
  if (isNodeVersionAtLeast(23, 6) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
327
- logger_logger.debug('Loading config file with native loader:', colors.dim(configFilePath));
327
+ logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
328
328
  try {
329
329
  let configFileURL = (0, external_node_url_namespaceObject.pathToFileURL)(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
330
330
  configExport = exportModule.default ? exportModule.default : exportModule;
331
331
  } catch (err) {
332
- throw logger_logger.error(`Failed to load config file with native loader: ${colors.dim(configFilePath)}`), err;
332
+ throw logger_logger.error('failed to load config file with native loader:', colors.dim(configFilePath)), err;
333
333
  }
334
334
  } else {
335
- logger_logger.debug('Loading config file with jiti:', colors.dim(configFilePath));
335
+ logger_logger.debug('loading config file with jiti:', colors.dim(configFilePath));
336
336
  try {
337
337
  let jiti = (0, external_jiti_namespaceObject.createJiti)(__filename, {
338
338
  moduleCache: !1,
@@ -346,7 +346,7 @@ for(var __webpack_i__ in (()=>{
346
346
  default: !0
347
347
  });
348
348
  } catch (err) {
349
- throw logger_logger.error(`Failed to load config file with jiti: ${colors.dim(configFilePath)}`), err;
349
+ throw logger_logger.error('failed to load config file with jiti:', colors.dim(configFilePath)), err;
350
350
  }
351
351
  }
352
352
  if ('function' == typeof configExport) {
@@ -354,7 +354,7 @@ for(var __webpack_i__ in (()=>{
354
354
  env: getNodeEnv(),
355
355
  command: process.argv[2]
356
356
  };
357
- if (void 0 === (configExport = await configExport(params))) throw Error('Unpack config function must return a config object.');
357
+ if (void 0 === (configExport = await configExport(params))) throw Error('unpack config function must return a config object.');
358
358
  }
359
359
  }
360
360
  return (null == cliOptions ? void 0 : cliOptions.port) && setValueByPath(configExport, [
@@ -398,8 +398,6 @@ for(var __webpack_i__ in (()=>{
398
398
  plugin[hook] && pluginMap.set(plugin.name, plugin);
399
399
  }), Array.from(pluginMap.values());
400
400
  }
401
- let external_json5_namespaceObject = require("json5");
402
- var external_json5_default = __webpack_require__.n(external_json5_namespaceObject);
403
401
  let external_dotenv_expand_namespaceObject = require("dotenv-expand"), isFileSync = (filePath)=>{
404
402
  try {
405
403
  var _fs_statSync;
@@ -646,7 +644,7 @@ for(var __webpack_i__ in (()=>{
646
644
  apply(compiler) {
647
645
  let meta = JSON.stringify({
648
646
  name: jsMinify_PLUGIN_NAME,
649
- version: "3.0.0",
647
+ version: "3.1.0",
650
648
  options: this.minifyOptions
651
649
  });
652
650
  compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
@@ -869,6 +867,7 @@ for(var __webpack_i__ in (()=>{
869
867
  chunkGroupMap.CSS.chunks.push(chunk);
870
868
  break;
871
869
  case '.js':
870
+ case '.wasm':
872
871
  chunkGroupMap.JS.chunks.push(chunk);
873
872
  break;
874
873
  default:
@@ -980,7 +979,7 @@ for(var __webpack_i__ in (()=>{
980
979
  let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
981
980
  async function getBundlerConfig(unpackConfig) {
982
981
  var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments;
983
- let tsconfigPath = external_node_path_default().resolve(unpackConfig.root, 'tsconfig.json'), isTs = external_node_fs_default().existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, wasmFilename = 'js/[hash].module.wasm', { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
982
+ let circularCount, tsconfigPath = external_node_path_default().resolve(unpackConfig.root, 'tsconfig.json'), isTs = external_node_fs_default().existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
984
983
  'PUBLIC_'
985
984
  ], processEnv = process.env } = {}) {
986
985
  if ('local' === mode) throw Error(`${colors.yellow('local')} cannot be used as a value for env mode, because ${colors.yellow('.env.local')} represents a temporary local file. Please use another value.`);
@@ -1048,7 +1047,7 @@ for(var __webpack_i__ in (()=>{
1048
1047
  crossOriginLoading: 'anonymous',
1049
1048
  pathinfo: !1,
1050
1049
  publicPath: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.publicPath,
1051
- webassemblyModuleFilename: wasmFilename,
1050
+ webassemblyModuleFilename: 'js/async/[hash].module.wasm',
1052
1051
  assetModuleFilename: 'assets/[name].[contenthash:8][ext]'
1053
1052
  },
1054
1053
  infrastructureLogging: {
@@ -1058,20 +1057,17 @@ for(var __webpack_i__ in (()=>{
1058
1057
  module: {
1059
1058
  rules: [
1060
1059
  {
1061
- test: /\.(png|jpg|jpeg|gif)$/i,
1060
+ test: /\.(png|jpe?g|gif|webp)$/i,
1062
1061
  type: 'asset'
1063
1062
  },
1064
1063
  {
1065
- test: /\.(woff|woff2|eot|ttf|otf)$/i,
1064
+ test: /\.(woff2?|eot|ttf|otf)$/i,
1066
1065
  type: 'asset'
1067
1066
  },
1068
1067
  {
1069
1068
  test: /\.wasm$/,
1070
1069
  dependency: 'url',
1071
- type: 'asset/resource',
1072
- generator: {
1073
- filename: wasmFilename
1074
- }
1070
+ type: 'asset/resource'
1075
1071
  }
1076
1072
  ]
1077
1073
  },
@@ -1135,17 +1131,54 @@ for(var __webpack_i__ in (()=>{
1135
1131
  }
1136
1132
  }),
1137
1133
  new ProgressPlugin(),
1138
- unpackConfig.lint && new OxlintPlugin()
1134
+ unpackConfig.lint && new OxlintPlugin(),
1135
+ unpackConfig.detectCircular && (circularCount = 0, new core_namespaceObject.rspack.CircularDependencyRspackPlugin({
1136
+ exclude: /node_modules/,
1137
+ onStart () {
1138
+ circularCount = 0;
1139
+ },
1140
+ onDetected (_, modules) {
1141
+ circularCount++, console.log(''), logger_logger.warn('circular dependency detected:');
1142
+ let uniquePaths = modules.map((module)=>{
1143
+ let filePath = module.replace(/^.*!/, ''), relativePath = external_node_path_default().relative(unpackConfig.root, filePath);
1144
+ return relativePath.startsWith('..') ? filePath : relativePath;
1145
+ }).slice(0, -1), totalLength = 2 + uniquePaths.join(" \u2192 ").length;
1146
+ if (totalLength > (process.stdout.columns || 80)) {
1147
+ var paths = uniquePaths;
1148
+ console.log('');
1149
+ let arrow = "\u21B3 ", lastIndex = paths.length - 1;
1150
+ paths.forEach((p, i)=>{
1151
+ switch(i){
1152
+ case 0:
1153
+ console.log(` ${p}`);
1154
+ break;
1155
+ case lastIndex:
1156
+ console.log(` ${arrow}${p} ${colors.dim('(cycle introduced)')}`);
1157
+ break;
1158
+ default:
1159
+ console.log(` ${arrow}${p}`);
1160
+ }
1161
+ }), console.log(` ${arrow}${paths[0]}`), console.log('');
1162
+ } else {
1163
+ var paths1 = uniquePaths;
1164
+ let line1 = ' ', upArrowPos = 2, downArrowPos = 0;
1165
+ paths1.forEach((p, i)=>{
1166
+ line1 += p, i < paths1.length - 1 ? line1 += " \u2192 " : downArrowPos = line1.length - 1;
1167
+ });
1168
+ let lineLength = downArrowPos - upArrowPos;
1169
+ console.log(''), console.log(line1), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2191" + ' '.repeat(downArrowPos - upArrowPos - 1) + "\u2193"), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2514" + "\u2500".repeat(lineLength - 1) + "\u2518"), console.log('');
1170
+ }
1171
+ },
1172
+ onEnd () {
1173
+ circularCount > 0 && console.log(`Found ${circularCount} circular ${1 === circularCount ? 'dependency' : 'dependencies'}.`);
1174
+ }
1175
+ }))
1139
1176
  ].filter(Boolean),
1140
1177
  externals: unpackConfig.externals,
1141
1178
  resolve: {
1179
+ tsConfig: isTs ? tsconfigPath : void 0,
1142
1180
  alias: {
1143
1181
  '@': external_node_path_default().resolve(unpackConfig.root, 'src'),
1144
- ...isTs ? (()=>{
1145
- var _json5_parse_compilerOptions, _json5_parse;
1146
- let paths = null == (_json5_parse = external_json5_default().parse(external_node_fs_default().readFileSync(tsconfigPath, 'utf-8'))) || null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
1147
- return paths ? Object.keys(paths).reduce((acc, key)=>(acc[key.replace(/\/\*$/, '')] = external_node_path_default().resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, '')), acc), {}) : {};
1148
- })() : {},
1149
1182
  ...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
1150
1183
  },
1151
1184
  extensionAlias: {
@@ -1414,7 +1447,8 @@ for(var __webpack_i__ in (()=>{
1414
1447
  type: 'css',
1415
1448
  hash: null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.filenameHash,
1416
1449
  async: !0
1417
- })
1450
+ }),
1451
+ ignoreOrder: !0
1418
1452
  }));
1419
1453
  let getCssLoader = ()=>{
1420
1454
  var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
@@ -1828,7 +1862,7 @@ for(var __webpack_i__ in (()=>{
1828
1862
  (null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
1829
1863
  }), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
1830
1864
  let server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
1831
- await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.0.0`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
1865
+ await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.1.0`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
1832
1866
  let addressUrls = getAddressUrls({
1833
1867
  port
1834
1868
  });
@@ -1881,7 +1915,7 @@ for(var __webpack_i__ in (()=>{
1881
1915
  ]
1882
1916
  }, _context = {
1883
1917
  callerName,
1884
- version: "3.0.0"
1918
+ version: "3.1.0"
1885
1919
  }, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
1886
1920
  for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
1887
1921
  ..._context,
@@ -1898,7 +1932,7 @@ for(var __webpack_i__ in (()=>{
1898
1932
  build: async ({ watch } = {})=>{
1899
1933
  setNodeEnv(watch ? 'development' : 'production');
1900
1934
  let config = await resolveConfig();
1901
- console.log(colors.rainbow(`${callerName} v3.0.0`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
1935
+ console.log(colors.rainbow(`${callerName} v3.1.0`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
1902
1936
  },
1903
1937
  dev: async ()=>{
1904
1938
  global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ import node_readline from "node:readline";
14
14
  import node_net from "node:net";
15
15
  import node_os, { platform } from "node:os";
16
16
  import portfinder from "portfinder";
17
- import json5 from "json5";
18
17
  import { expand } from "dotenv-expand";
19
18
  import { TsCheckerRspackPlugin } from "ts-checker-rspack-plugin";
20
19
  import node_assert from "node:assert";
@@ -258,15 +257,15 @@ async function loadConfig({ cliOptions, command }) {
258
257
  let root = (null == cliOptions ? void 0 : cliOptions.root) ? node_path.resolve(cliOptions.root) : process.cwd(), configFilePath = resolveConfigPath(root, null == cliOptions ? void 0 : cliOptions.config), configExport = {};
259
258
  if (configFilePath) {
260
259
  if (isNodeVersionAtLeast(23, 6) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
261
- logger_logger.debug('Loading config file with native loader:', colors.dim(configFilePath));
260
+ logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
262
261
  try {
263
262
  let configFileURL = pathToFileURL(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
264
263
  configExport = exportModule.default ? exportModule.default : exportModule;
265
264
  } catch (err) {
266
- throw logger_logger.error(`Failed to load config file with native loader: ${colors.dim(configFilePath)}`), err;
265
+ throw logger_logger.error('failed to load config file with native loader:', colors.dim(configFilePath)), err;
267
266
  }
268
267
  } else {
269
- logger_logger.debug('Loading config file with jiti:', colors.dim(configFilePath));
268
+ logger_logger.debug('loading config file with jiti:', colors.dim(configFilePath));
270
269
  try {
271
270
  let jiti = createJiti(config_filename, {
272
271
  moduleCache: !1,
@@ -280,7 +279,7 @@ async function loadConfig({ cliOptions, command }) {
280
279
  default: !0
281
280
  });
282
281
  } catch (err) {
283
- throw logger_logger.error(`Failed to load config file with jiti: ${colors.dim(configFilePath)}`), err;
282
+ throw logger_logger.error('failed to load config file with jiti:', colors.dim(configFilePath)), err;
284
283
  }
285
284
  }
286
285
  if ('function' == typeof configExport) {
@@ -288,7 +287,7 @@ async function loadConfig({ cliOptions, command }) {
288
287
  env: getNodeEnv(),
289
288
  command: process.argv[2]
290
289
  };
291
- if (void 0 === (configExport = await configExport(params))) throw Error('Unpack config function must return a config object.');
290
+ if (void 0 === (configExport = await configExport(params))) throw Error('unpack config function must return a config object.');
292
291
  }
293
292
  }
294
293
  return (null == cliOptions ? void 0 : cliOptions.port) && setValueByPath(configExport, [
@@ -575,7 +574,7 @@ class JsMinifyPlugin {
575
574
  apply(compiler) {
576
575
  let meta = JSON.stringify({
577
576
  name: jsMinify_PLUGIN_NAME,
578
- version: "3.0.0",
577
+ version: "3.1.0",
579
578
  options: this.minifyOptions
580
579
  });
581
580
  compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
@@ -796,6 +795,7 @@ async function printFileSize({ root, stats }) {
796
795
  chunkGroupMap.CSS.chunks.push(chunk);
797
796
  break;
798
797
  case '.js':
798
+ case '.wasm':
799
799
  chunkGroupMap.JS.chunks.push(chunk);
800
800
  break;
801
801
  default:
@@ -906,7 +906,7 @@ class ProgressRspackPlugin extends rspack.ProgressPlugin {
906
906
  let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
907
907
  async function getBundlerConfig(unpackConfig) {
908
908
  var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments;
909
- let tsconfigPath = node_path.resolve(unpackConfig.root, 'tsconfig.json'), isTs = node_fs.existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, wasmFilename = 'js/[hash].module.wasm', { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
909
+ let circularCount, tsconfigPath = node_path.resolve(unpackConfig.root, 'tsconfig.json'), isTs = node_fs.existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
910
910
  'PUBLIC_'
911
911
  ], processEnv = process.env } = {}) {
912
912
  if ('local' === mode) throw Error(`${colors.yellow('local')} cannot be used as a value for env mode, because ${colors.yellow('.env.local')} represents a temporary local file. Please use another value.`);
@@ -974,7 +974,7 @@ async function getBundlerConfig(unpackConfig) {
974
974
  crossOriginLoading: 'anonymous',
975
975
  pathinfo: !1,
976
976
  publicPath: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.publicPath,
977
- webassemblyModuleFilename: wasmFilename,
977
+ webassemblyModuleFilename: 'js/async/[hash].module.wasm',
978
978
  assetModuleFilename: 'assets/[name].[contenthash:8][ext]'
979
979
  },
980
980
  infrastructureLogging: {
@@ -984,20 +984,17 @@ async function getBundlerConfig(unpackConfig) {
984
984
  module: {
985
985
  rules: [
986
986
  {
987
- test: /\.(png|jpg|jpeg|gif)$/i,
987
+ test: /\.(png|jpe?g|gif|webp)$/i,
988
988
  type: 'asset'
989
989
  },
990
990
  {
991
- test: /\.(woff|woff2|eot|ttf|otf)$/i,
991
+ test: /\.(woff2?|eot|ttf|otf)$/i,
992
992
  type: 'asset'
993
993
  },
994
994
  {
995
995
  test: /\.wasm$/,
996
996
  dependency: 'url',
997
- type: 'asset/resource',
998
- generator: {
999
- filename: wasmFilename
1000
- }
997
+ type: 'asset/resource'
1001
998
  }
1002
999
  ]
1003
1000
  },
@@ -1061,17 +1058,52 @@ async function getBundlerConfig(unpackConfig) {
1061
1058
  }
1062
1059
  }),
1063
1060
  new ProgressPlugin(),
1064
- unpackConfig.lint && new OxlintPlugin()
1061
+ unpackConfig.lint && new OxlintPlugin(),
1062
+ unpackConfig.detectCircular && (circularCount = 0, new rspack.CircularDependencyRspackPlugin({
1063
+ exclude: /node_modules/,
1064
+ onStart () {
1065
+ circularCount = 0;
1066
+ },
1067
+ onDetected (_, modules) {
1068
+ circularCount++, console.log(''), logger_logger.warn('circular dependency detected:');
1069
+ let uniquePaths = modules.map((module)=>{
1070
+ let filePath = module.replace(/^.*!/, ''), relativePath = node_path.relative(unpackConfig.root, filePath);
1071
+ return relativePath.startsWith('..') ? filePath : relativePath;
1072
+ }).slice(0, -1);
1073
+ if (2 + uniquePaths.join(" \u2192 ").length > (process.stdout.columns || 80)) {
1074
+ console.log('');
1075
+ let arrow = "\u21B3 ", lastIndex = uniquePaths.length - 1;
1076
+ uniquePaths.forEach((p, i)=>{
1077
+ switch(i){
1078
+ case 0:
1079
+ console.log(` ${p}`);
1080
+ break;
1081
+ case lastIndex:
1082
+ console.log(` ${arrow}${p} ${colors.dim('(cycle introduced)')}`);
1083
+ break;
1084
+ default:
1085
+ console.log(` ${arrow}${p}`);
1086
+ }
1087
+ }), console.log(` ${arrow}${uniquePaths[0]}`), console.log('');
1088
+ } else {
1089
+ let line1 = ' ', downArrowPos = 0;
1090
+ uniquePaths.forEach((p, i)=>{
1091
+ line1 += p, i < uniquePaths.length - 1 ? line1 += " \u2192 " : downArrowPos = line1.length - 1;
1092
+ });
1093
+ let lineLength = downArrowPos - 2;
1094
+ console.log(''), console.log(line1), console.log(' ' + ' '.repeat(0) + "\u2191" + ' '.repeat(downArrowPos - 2 - 1) + "\u2193"), console.log(' ' + ' '.repeat(0) + "\u2514" + "\u2500".repeat(lineLength - 1) + "\u2518"), console.log('');
1095
+ }
1096
+ },
1097
+ onEnd () {
1098
+ circularCount > 0 && console.log(`Found ${circularCount} circular ${1 === circularCount ? 'dependency' : 'dependencies'}.`);
1099
+ }
1100
+ }))
1065
1101
  ].filter(Boolean),
1066
1102
  externals: unpackConfig.externals,
1067
1103
  resolve: {
1104
+ tsConfig: isTs ? tsconfigPath : void 0,
1068
1105
  alias: {
1069
1106
  '@': node_path.resolve(unpackConfig.root, 'src'),
1070
- ...isTs ? (()=>{
1071
- var _json5_parse_compilerOptions, _json5_parse;
1072
- let paths = null == (_json5_parse = json5.parse(node_fs.readFileSync(tsconfigPath, 'utf-8'))) || null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
1073
- return paths ? Object.keys(paths).reduce((acc, key)=>(acc[key.replace(/\/\*$/, '')] = node_path.resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, '')), acc), {}) : {};
1074
- })() : {},
1075
1107
  ...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
1076
1108
  },
1077
1109
  extensionAlias: {
@@ -1340,7 +1372,8 @@ async function getBundlerConfig(unpackConfig) {
1340
1372
  type: 'css',
1341
1373
  hash: null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.filenameHash,
1342
1374
  async: !0
1343
- })
1375
+ }),
1376
+ ignoreOrder: !0
1344
1377
  }));
1345
1378
  let getCssLoader = ()=>{
1346
1379
  var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
@@ -1746,7 +1779,7 @@ async function unpackDev(originalUnpackConfig) {
1746
1779
  (null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
1747
1780
  }), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
1748
1781
  let server = new webpack_dev_server(devServerOptions, compiler);
1749
- await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.0.0`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), getAddressUrls({
1782
+ await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.1.0`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), getAddressUrls({
1750
1783
  port: port
1751
1784
  }).forEach((addr)=>{
1752
1785
  let url;
@@ -1796,7 +1829,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
1796
1829
  ]
1797
1830
  }, _context = {
1798
1831
  callerName,
1799
- version: "3.0.0"
1832
+ version: "3.1.0"
1800
1833
  }, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
1801
1834
  for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
1802
1835
  ..._context,
@@ -1813,7 +1846,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
1813
1846
  build: async ({ watch } = {})=>{
1814
1847
  setNodeEnv(watch ? 'development' : 'production');
1815
1848
  let config = await resolveConfig();
1816
- console.log(colors.rainbow(`${callerName} v3.0.0`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
1849
+ console.log(colors.rainbow(`${callerName} v3.1.0`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
1817
1850
  },
1818
1851
  dev: async ()=>{
1819
1852
  global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
@@ -1 +1 @@
1
- {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcnE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAwIvB"}
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcnE,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":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAsBnE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAsOhG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAsBnE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA6UhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAKxD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AA2BD,wBAAsB,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,iBAiG3D"}
1
+ {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAKxD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AA2BD,wBAAsB,aAAa,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,iBAoG3D"}
@@ -272,6 +272,10 @@ export type UnpackConfig = {
272
272
  * Prefix for environment variables.
273
273
  */
274
274
  envPrefix?: string | string[];
275
+ /**
276
+ * Whether to detect circular dependencies in the project.
277
+ */
278
+ detectCircular?: boolean;
275
279
  };
276
280
  export {};
277
281
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,wCAAwC,EACxC,yBAAyB,EACzB,aAAa,EACd,MAAM,cAAc,CAAA;AACrB,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,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAA;AAEhD,KAAK,cAAc,GAAG,cAAc,GAAG;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;CAC3B,CAAA;AAED,KAAK,aAAa,GACd,oBAAoB,GACpB,CAAC,CACC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE;IACP,WAAW,EAAE,CAAC,GAAG,OAAO,EAAE,oBAAoB,EAAE,KAAK,oBAAoB,CAAA;CAC1E,KACE,OAAO,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC,CAAA;AAE9D,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE;QACT;;;WAGG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HANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "An Rspack-based build tool",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,14 +39,13 @@
39
39
  "webpack-merge": "6.0.1"
40
40
  },
41
41
  "dependencies": {
42
- "@rspack/core": "1.4.6",
42
+ "@rspack/core": "1.4.8",
43
43
  "@types/less": "3.0.8",
44
44
  "chokidar": "4.0.3",
45
45
  "cors": "2.8.5",
46
46
  "dotenv-expand": "12.0.2",
47
47
  "express": "5.1.0",
48
48
  "jiti": "2.4.2",
49
- "json5": "2.2.3",
50
49
  "oxc-minify": "0.77.0",
51
50
  "picocolors": "1.1.1",
52
51
  "portfinder": "1.0.37",