@unpackjs/core 1.7.2 → 1.7.3

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
- 6536: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 559: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(5567);
5
+ const loader = __nccwpck_require__(5482);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(9878).defaultGetLocalIdent;
8
+ __nccwpck_require__(1917).defaultGetLocalIdent;
9
9
  },
10
- 5567: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 5482: (__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__(977));
15
15
  var _package = _interopRequireDefault(__nccwpck_require__(7337));
16
16
  var _semver = __nccwpck_require__(5204);
17
- var _options = _interopRequireDefault(__nccwpck_require__(6899));
18
- var _plugins = __nccwpck_require__(5630);
19
- var _utils = __nccwpck_require__(9878);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(3450));
18
+ var _plugins = __nccwpck_require__(4900);
19
+ var _utils = __nccwpck_require__(1917);
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
- 5630: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 4900: (__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__(6791),
268
+ __nccwpck_require__(253),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(5280),
271
+ __nccwpck_require__(3776),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4353));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(8216));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 5280: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 3776: (__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__(4508);
283
- var _utils = __nccwpck_require__(9878);
283
+ var _utils = __nccwpck_require__(1917);
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
- 6791: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 253: (__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__(7555),
388
388
  );
389
- var _utils = __nccwpck_require__(9878);
389
+ var _utils = __nccwpck_require__(1917);
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
- 4353: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 8216: (__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__(7555),
700
700
  );
701
- var _utils = __nccwpck_require__(9878);
701
+ var _utils = __nccwpck_require__(1917);
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
- 9878: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 1917: (__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;
@@ -3637,7 +3637,7 @@
3637
3637
  exports["default"] = _default;
3638
3638
  module.exports = exports.default;
3639
3639
  },
3640
- 3450: (module, exports, __nccwpck_require__) => {
3640
+ 5591: (module, exports, __nccwpck_require__) => {
3641
3641
  "use strict";
3642
3642
  exports.__esModule = true;
3643
3643
  exports["default"] = void 0;
@@ -4913,7 +4913,7 @@
4913
4913
  "use strict";
4914
4914
  exports.__esModule = true;
4915
4915
  exports["default"] = void 0;
4916
- var _parser = _interopRequireDefault(__nccwpck_require__(3450));
4916
+ var _parser = _interopRequireDefault(__nccwpck_require__(5591));
4917
4917
  function _interopRequireDefault(obj) {
4918
4918
  return obj && obj.__esModule ? obj : { default: obj };
4919
4919
  }
@@ -7964,7 +7964,7 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 6899: (module) => {
7967
+ 3450: (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__(6536);
8002
+ var __webpack_exports__ = __nccwpck_require__(559);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 697: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(82)["default"];
4
+ 772: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(940)["default"];
6
6
  },
7
- 82: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 940: (__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__(17));
12
- var _options = _interopRequireDefault(__nccwpck_require__(353));
13
- var _utils = __nccwpck_require__(98);
12
+ var _options = _interopRequireDefault(__nccwpck_require__(746));
13
+ var _utils = __nccwpck_require__(72);
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
- 98: (__unused_webpack_module, exports, __nccwpck_require__) => {
115
+ 72: (__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
  17: (module) => {
308
308
  module.exports = require("path");
309
309
  },
310
- 353: (module) => {
310
+ 746: (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__(697);
338
+ var __webpack_exports__ = __nccwpck_require__(772);
339
339
  module.exports = __webpack_exports__;
340
340
  })();
@@ -91800,19 +91800,19 @@
91800
91800
  module.exports = createColors();
91801
91801
  module.exports.createColors = createColors;
91802
91802
  },
91803
- 7656: (module, __unused_webpack_exports, __nccwpck_require__) => {
91803
+ 6133: (module, __unused_webpack_exports, __nccwpck_require__) => {
91804
91804
  "use strict";
91805
- module.exports = __nccwpck_require__(3732)["default"];
91805
+ module.exports = __nccwpck_require__(7317)["default"];
91806
91806
  },
91807
- 3732: (__unused_webpack_module, exports, __nccwpck_require__) => {
91807
+ 7317: (__unused_webpack_module, exports, __nccwpck_require__) => {
91808
91808
  "use strict";
91809
91809
  var __webpack_unused_export__;
91810
91810
  __webpack_unused_export__ = { value: true };
91811
91811
  exports["default"] = loader;
91812
91812
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
91813
91813
  var _package = _interopRequireDefault(__nccwpck_require__(7337));
91814
- var _options = _interopRequireDefault(__nccwpck_require__(5934));
91815
- var _utils = __nccwpck_require__(8479);
91814
+ var _options = _interopRequireDefault(__nccwpck_require__(5204));
91815
+ var _utils = __nccwpck_require__(9847);
91816
91816
  function _interopRequireDefault(obj) {
91817
91817
  return obj && obj.__esModule ? obj : { default: obj };
91818
91818
  }
@@ -91883,7 +91883,7 @@
91883
91883
  meta &&
91884
91884
  meta.ast &&
91885
91885
  meta.ast.type === "postcss" &&
91886
- __nccwpck_require__(5204).satisfies(
91886
+ __nccwpck_require__(5768).satisfies(
91887
91887
  meta.ast.version,
91888
91888
  `^${_package.default.version}`,
91889
91889
  )
@@ -91990,7 +91990,7 @@
91990
91990
  callback(null, result.css, map, { ast });
91991
91991
  }
91992
91992
  },
91993
- 8479: (module, exports, __nccwpck_require__) => {
91993
+ 9847: (module, exports, __nccwpck_require__) => {
91994
91994
  "use strict";
91995
91995
  module = __nccwpck_require__.nmd(module);
91996
91996
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -92541,7 +92541,7 @@
92541
92541
  webpackEmptyAsyncContext.id = 7922;
92542
92542
  module.exports = webpackEmptyAsyncContext;
92543
92543
  },
92544
- 5204: (module) => {
92544
+ 5768: (module) => {
92545
92545
  "use strict";
92546
92546
  module.exports = require("../semver");
92547
92547
  },
@@ -93112,7 +93112,7 @@
93112
93112
  return keywords.has(word);
93113
93113
  }
93114
93114
  },
93115
- 5934: (module) => {
93115
+ 5204: (module) => {
93116
93116
  "use strict";
93117
93117
  module.exports = JSON.parse(
93118
93118
  '{"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}',
@@ -93222,6 +93222,6 @@
93222
93222
  })();
93223
93223
  if (typeof __nccwpck_require__ !== "undefined")
93224
93224
  __nccwpck_require__.ab = __dirname + "/";
93225
- var __webpack_exports__ = __nccwpck_require__(7656);
93225
+ var __webpack_exports__ = __nccwpck_require__(6133);
93226
93226
  module.exports = __webpack_exports__;
93227
93227
  })();
@@ -4795,19 +4795,19 @@
4795
4795
  }
4796
4796
  });
4797
4797
  },
4798
- 465: (module, __unused_webpack_exports, __nccwpck_require__) => {
4798
+ 637: (module, __unused_webpack_exports, __nccwpck_require__) => {
4799
4799
  "use strict";
4800
- const loader = __nccwpck_require__(442);
4800
+ const loader = __nccwpck_require__(562);
4801
4801
  module.exports = loader.default;
4802
4802
  },
4803
- 442: (__unused_webpack_module, exports, __nccwpck_require__) => {
4803
+ 562: (__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__(310));
4808
4808
  var _path = _interopRequireDefault(__nccwpck_require__(17));
4809
- var _options = _interopRequireDefault(__nccwpck_require__(798));
4810
- var _utils = __nccwpck_require__(611);
4809
+ var _options = _interopRequireDefault(__nccwpck_require__(737));
4810
+ var _utils = __nccwpck_require__(702);
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
- 611: (__unused_webpack_module, exports, __nccwpck_require__) => {
4920
+ 702: (__unused_webpack_module, exports, __nccwpck_require__) => {
4921
4921
  "use strict";
4922
4922
  Object.defineProperty(exports, "__esModule", { value: true });
4923
4923
  exports.errorFactory = errorFactory;
@@ -5577,7 +5577,7 @@
5577
5577
  "use strict";
5578
5578
  module.exports = require("url");
5579
5579
  },
5580
- 798: (module) => {
5580
+ 737: (module) => {
5581
5581
  "use strict";
5582
5582
  module.exports = JSON.parse(
5583
5583
  '{"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}',
@@ -5607,6 +5607,6 @@
5607
5607
  }
5608
5608
  if (typeof __nccwpck_require__ !== "undefined")
5609
5609
  __nccwpck_require__.ab = __dirname + "/";
5610
- var __webpack_exports__ = __nccwpck_require__(465);
5610
+ var __webpack_exports__ = __nccwpck_require__(637);
5611
5611
  module.exports = __webpack_exports__;
5612
5612
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 151: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- const loader = __nccwpck_require__(118);
4
+ 948: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(193);
6
6
  module.exports = loader.default;
7
7
  },
8
- 118: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
+ 193: (__unused_webpack_module, exports, __nccwpck_require__) => {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports["default"] = void 0;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(17));
12
- var _utils = __nccwpck_require__(171);
13
- var _options = _interopRequireDefault(__nccwpck_require__(861));
12
+ var _utils = __nccwpck_require__(394);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(785));
14
14
  function _interopRequireDefault(obj) {
15
15
  return obj && obj.__esModule ? obj : { default: obj };
16
16
  }
@@ -95,7 +95,7 @@
95
95
  };
96
96
  var _default = (exports["default"] = loader);
97
97
  },
98
- 548: (module) => {
98
+ 157: (module) => {
99
99
  function isEqualLocals(a, b, isNamedExport) {
100
100
  if ((!a && b) || (a && !b)) {
101
101
  return false;
@@ -121,7 +121,7 @@
121
121
  }
122
122
  module.exports = isEqualLocals;
123
123
  },
124
- 171: (__unused_webpack_module, exports, __nccwpck_require__) => {
124
+ 394: (__unused_webpack_module, exports, __nccwpck_require__) => {
125
125
  Object.defineProperty(exports, "__esModule", { value: true });
126
126
  exports.getExportLazyStyleCode = getExportLazyStyleCode;
127
127
  exports.getExportStyleCode = getExportStyleCode;
@@ -142,7 +142,7 @@
142
142
  exports.getdomAPI = getdomAPI;
143
143
  exports.stringifyRequest = stringifyRequest;
144
144
  var _path = _interopRequireDefault(__nccwpck_require__(17));
145
- var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(548));
145
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(157));
146
146
  function _interopRequireDefault(obj) {
147
147
  return obj && obj.__esModule ? obj : { default: obj };
148
148
  }
@@ -337,7 +337,7 @@
337
337
  17: (module) => {
338
338
  module.exports = require("path");
339
339
  },
340
- 861: (module) => {
340
+ 785: (module) => {
341
341
  module.exports = JSON.parse(
342
342
  '{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","type":"string"},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","type":"string"}},"additionalProperties":false}',
343
343
  );
@@ -365,6 +365,6 @@
365
365
  }
366
366
  if (typeof __nccwpck_require__ !== "undefined")
367
367
  __nccwpck_require__.ab = __dirname + "/";
368
- var __webpack_exports__ = __nccwpck_require__(151);
368
+ var __webpack_exports__ = __nccwpck_require__(948);
369
369
  module.exports = __webpack_exports__;
370
370
  })();
@@ -35,8 +35,6 @@ var import_node_path = __toESM(require("node:path"));
35
35
  var import_core = require("@rspack/core");
36
36
  var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"));
37
37
  var import_utils = require("../utils.cjs");
38
- var import_esbuild = __toESM(require("esbuild"));
39
- var import_esbuild_loader = require("esbuild-loader");
40
38
  var import_json5 = __toESM(require("json5"));
41
39
  var import_constants = require("../constants.cjs");
42
40
  var import_minimizer = require("../lightningcss/minimizer.cjs");
@@ -49,13 +47,14 @@ var import_chunkSplit = require("./chunkSplit.cjs");
49
47
  var import_css = require("./css.cjs");
50
48
  var import_experimentCss = require("./experimentCss.cjs");
51
49
  var import_helper = require("./helper.cjs");
50
+ var import_jsMinify = require("./jsMinify.cjs");
52
51
  const { TsCheckerRspackPlugin } = require("ts-checker-rspack-plugin");
53
52
  const BundleAnalyzerPlugin = require("../../compiled/webpack-bundle-analyzer/index.js").BundleAnalyzerPlugin;
54
53
  const CopyWebpackPlugin = require("copy-webpack-plugin");
55
54
  async function getBundlerConfig(unpackConfig) {
56
55
  const isRspack = unpackConfig.bundler === "rspack";
57
56
  const HtmlPlugin = isRspack ? import_core.rspack.HtmlRspackPlugin : import_html_webpack_plugin.default;
58
- const definePlugin = (define) => isRspack ? new import_core.rspack.DefinePlugin(define) : new import_esbuild_loader.EsbuildPlugin({ define, implementation: import_esbuild.default });
57
+ const definePlugin = (define) => isRspack ? new import_core.rspack.DefinePlugin(define) : new import_webpack2.default.DefinePlugin(define);
59
58
  const JS_FILENAME = (0, import_helper.getOutputFilename)({ type: "js", hash: unpackConfig.build?.filenameHash });
60
59
  const IgnorePlugin = isRspack ? import_core.rspack.IgnorePlugin : import_webpack2.default.IgnorePlugin;
61
60
  const CopyPlugin = isRspack ? import_core.rspack.CopyRspackPlugin : CopyWebpackPlugin;
@@ -167,14 +166,14 @@ async function getBundlerConfig(unpackConfig) {
167
166
  },
168
167
  experiments: {
169
168
  lazyCompilation: unpackConfig.dev?.lazyCompilation && (0, import_utils.isDevServer)(),
170
- css: false
169
+ css: false,
170
+ ...isRspack && (0, import_utils.isDev)() && unpackConfig.experiments?.incremental ? { incremental: true } : {}
171
171
  },
172
172
  optimization: {
173
173
  moduleIds: (0, import_utils.isDev)() ? "named" : "deterministic",
174
174
  minimize: Boolean(unpackConfig.build?.minify),
175
175
  minimizer: [
176
- new import_esbuild_loader.EsbuildPlugin({
177
- implementation: import_esbuild.default,
176
+ new import_jsMinify.JsMinifyPlugin({
178
177
  target: import_constants.ESBUILD_TARGET
179
178
  }),
180
179
  new import_minimizer.LightningcssMinifyPlugin(minifyOptions.lightningcss)
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAqBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiLhG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAoBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiLhG"}
@@ -15,8 +15,6 @@ import { isDev, isDevServer, isFunction, isPlainObject, isProd, mergeConfig } fr
15
15
  const { TsCheckerRspackPlugin } = require("ts-checker-rspack-plugin");
16
16
  const BundleAnalyzerPlugin = require("../../compiled/webpack-bundle-analyzer/index.js").BundleAnalyzerPlugin;
17
17
  const CopyWebpackPlugin = require("copy-webpack-plugin");
18
- import esbuild from "esbuild";
19
- import { EsbuildPlugin } from "esbuild-loader";
20
18
  import json5 from "json5";
21
19
  import { ESBUILD_TARGET, NODE_MODULES_REGEX, TEMPLATE_CONTENT } from "../constants.js";
22
20
  import { LightningcssMinifyPlugin } from "../lightningcss/minimizer.js";
@@ -29,10 +27,11 @@ import { applyChunkSplitConfig } from "./chunkSplit.js";
29
27
  import { applyCssConfig } from "./css.js";
30
28
  import { applyExperimentCssConfig } from "./experimentCss.js";
31
29
  import { getEntry, getOutputFilename } from "./helper.js";
30
+ import { JsMinifyPlugin } from "./jsMinify.js";
32
31
  async function getBundlerConfig(unpackConfig) {
33
32
  const isRspack = unpackConfig.bundler === "rspack";
34
33
  const HtmlPlugin = isRspack ? rspack.HtmlRspackPlugin : HtmlWebpackPlugin;
35
- const definePlugin = (define) => isRspack ? new rspack.DefinePlugin(define) : new EsbuildPlugin({ define, implementation: esbuild });
34
+ const definePlugin = (define) => isRspack ? new rspack.DefinePlugin(define) : new webpack.DefinePlugin(define);
36
35
  const JS_FILENAME = getOutputFilename({ type: "js", hash: unpackConfig.build?.filenameHash });
37
36
  const IgnorePlugin = isRspack ? rspack.IgnorePlugin : webpack.IgnorePlugin;
38
37
  const CopyPlugin = isRspack ? rspack.CopyRspackPlugin : CopyWebpackPlugin;
@@ -144,14 +143,14 @@ async function getBundlerConfig(unpackConfig) {
144
143
  },
145
144
  experiments: {
146
145
  lazyCompilation: unpackConfig.dev?.lazyCompilation && isDevServer(),
147
- css: false
146
+ css: false,
147
+ ...isRspack && isDev() && unpackConfig.experiments?.incremental ? { incremental: true } : {}
148
148
  },
149
149
  optimization: {
150
150
  moduleIds: isDev() ? "named" : "deterministic",
151
151
  minimize: Boolean(unpackConfig.build?.minify),
152
152
  minimizer: [
153
- new EsbuildPlugin({
154
- implementation: esbuild,
153
+ new JsMinifyPlugin({
155
154
  target: ESBUILD_TARGET
156
155
  }),
157
156
  new LightningcssMinifyPlugin(minifyOptions.lightningcss)
@@ -0,0 +1,101 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var jsMinify_exports = {};
29
+ __export(jsMinify_exports, {
30
+ JsMinifyPlugin: () => JsMinifyPlugin
31
+ });
32
+ module.exports = __toCommonJS(jsMinify_exports);
33
+ var import_esbuild = require("esbuild");
34
+ var import_webpack = __toESM(require("webpack"));
35
+ const { RawSource, SourceMapSource } = import_webpack.default.sources;
36
+ const isJsFile = /\.[cm]?js(\?.*)?$/i;
37
+ const PLUGIN_NAME = "JsMinifyPlugin";
38
+ class JsMinifyPlugin {
39
+ constructor(options = {}) {
40
+ this.options = {};
41
+ const { implementation } = options;
42
+ this.transform = implementation?.transform ?? import_esbuild.transform;
43
+ this.options = options;
44
+ }
45
+ apply(compiler) {
46
+ const { implementation, ...transformOptions } = this.options;
47
+ const meta = JSON.stringify({
48
+ name: PLUGIN_NAME,
49
+ version: "1.7.3",
50
+ options: transformOptions
51
+ });
52
+ compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
53
+ compilation.hooks.chunkHash.tap(PLUGIN_NAME, (_, hash) => hash.update(meta));
54
+ compilation.hooks.processAssets.tapPromise(
55
+ {
56
+ name: PLUGIN_NAME,
57
+ stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE,
58
+ additionalAssets: true
59
+ },
60
+ () => this.transformAssets(compilation)
61
+ );
62
+ compilation.hooks.statsPrinter.tap(PLUGIN_NAME, (stats) => {
63
+ stats.hooks.print.for("asset.info.minimized").tap(
64
+ PLUGIN_NAME,
65
+ (minimized, { green, formatFlag }) => minimized && green && formatFlag ? green(formatFlag("minimized")) : ""
66
+ );
67
+ });
68
+ });
69
+ }
70
+ async transformAssets(compilation) {
71
+ const {
72
+ options: { devtool }
73
+ } = compilation.compiler;
74
+ const sourceMap = !!devtool && devtool.includes("source-map");
75
+ const assets = compilation.getAssets().filter((asset) => !asset.info.minimized && isJsFile.test(asset.name));
76
+ const { implementation, ...transformOptions } = this.options;
77
+ await Promise.all(
78
+ assets.map(async (asset) => {
79
+ const { source, map } = asset.source.sourceAndMap();
80
+ const output = await this.transform(Buffer.isBuffer(source) ? source.toString() : source, {
81
+ ...transformOptions,
82
+ minify: true,
83
+ sourcemap: sourceMap,
84
+ sourcefile: asset.name
85
+ });
86
+ let newMap = void 0;
87
+ if (output.map) {
88
+ newMap = JSON.parse(output.map);
89
+ newMap.sources = [asset.name];
90
+ }
91
+ const newSource = sourceMap && newMap ? new SourceMapSource(output.code, asset.name, newMap, source, map, true) : new RawSource(output.code);
92
+ const newInfo = { ...asset.info, minimized: true };
93
+ compilation.updateAsset(asset.name, newSource, newInfo);
94
+ })
95
+ );
96
+ }
97
+ }
98
+ // Annotate the CommonJS export names for ESM import in node:
99
+ 0 && (module.exports = {
100
+ JsMinifyPlugin
101
+ });
@@ -0,0 +1,18 @@
1
+ import { type TransformOptions, transform } from 'esbuild';
2
+ import webpack from 'webpack';
3
+ type Implementation = {
4
+ transform: typeof transform;
5
+ };
6
+ export type EsbuildPluginOptions = Omit<TransformOptions, 'sourcemap' | 'sourcefile'> & {
7
+ /** Pass a custom esbuild implementation */
8
+ implementation?: Implementation;
9
+ };
10
+ export declare class JsMinifyPlugin {
11
+ private readonly options;
12
+ private readonly transform;
13
+ constructor(options?: EsbuildPluginOptions);
14
+ apply(compiler: webpack.Compiler): void;
15
+ private transformAssets;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=jsMinify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsMinify.d.ts","sourceRoot":"","sources":["../../src/bundler-config/jsMinify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,OAAO,SAAS,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,YAAY,CAAC,GAAG;IACtF,2CAA2C;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC,CAAA;AAGD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IACnD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;gBAEhC,OAAO,GAAE,oBAAyB;IAM9C,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YA2BlB,eAAe;CAkC9B"}
@@ -0,0 +1,77 @@
1
+ import { createRequire } from 'node:module';
2
+ var require = createRequire(import.meta['url']);
3
+
4
+ import path from "path";
5
+ import { fileURLToPath } from "url";
6
+ var getFilename = () => fileURLToPath(import.meta.url);
7
+ var getDirname = () => path.dirname(getFilename());
8
+ var __dirname = /* @__PURE__ */ getDirname();
9
+ var __filename = /* @__PURE__ */ getFilename();
10
+ import { transform } from "esbuild";
11
+ import webpack from "webpack";
12
+ const { RawSource, SourceMapSource } = webpack.sources;
13
+ const isJsFile = /\.[cm]?js(\?.*)?$/i;
14
+ const PLUGIN_NAME = "JsMinifyPlugin";
15
+ class JsMinifyPlugin {
16
+ constructor(options = {}) {
17
+ this.options = {};
18
+ const { implementation } = options;
19
+ this.transform = implementation?.transform ?? transform;
20
+ this.options = options;
21
+ }
22
+ apply(compiler) {
23
+ const { implementation, ...transformOptions } = this.options;
24
+ const meta = JSON.stringify({
25
+ name: PLUGIN_NAME,
26
+ version: "1.7.3",
27
+ options: transformOptions
28
+ });
29
+ compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
30
+ compilation.hooks.chunkHash.tap(PLUGIN_NAME, (_, hash) => hash.update(meta));
31
+ compilation.hooks.processAssets.tapPromise(
32
+ {
33
+ name: PLUGIN_NAME,
34
+ stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE,
35
+ additionalAssets: true
36
+ },
37
+ () => this.transformAssets(compilation)
38
+ );
39
+ compilation.hooks.statsPrinter.tap(PLUGIN_NAME, (stats) => {
40
+ stats.hooks.print.for("asset.info.minimized").tap(
41
+ PLUGIN_NAME,
42
+ (minimized, { green, formatFlag }) => minimized && green && formatFlag ? green(formatFlag("minimized")) : ""
43
+ );
44
+ });
45
+ });
46
+ }
47
+ async transformAssets(compilation) {
48
+ const {
49
+ options: { devtool }
50
+ } = compilation.compiler;
51
+ const sourceMap = !!devtool && devtool.includes("source-map");
52
+ const assets = compilation.getAssets().filter((asset) => !asset.info.minimized && isJsFile.test(asset.name));
53
+ const { implementation, ...transformOptions } = this.options;
54
+ await Promise.all(
55
+ assets.map(async (asset) => {
56
+ const { source, map } = asset.source.sourceAndMap();
57
+ const output = await this.transform(Buffer.isBuffer(source) ? source.toString() : source, {
58
+ ...transformOptions,
59
+ minify: true,
60
+ sourcemap: sourceMap,
61
+ sourcefile: asset.name
62
+ });
63
+ let newMap = void 0;
64
+ if (output.map) {
65
+ newMap = JSON.parse(output.map);
66
+ newMap.sources = [asset.name];
67
+ }
68
+ const newSource = sourceMap && newMap ? new SourceMapSource(output.code, asset.name, newMap, source, map, true) : new RawSource(output.code);
69
+ const newInfo = { ...asset.info, minimized: true };
70
+ compilation.updateAsset(asset.name, newSource, newInfo);
71
+ })
72
+ );
73
+ }
74
+ }
75
+ export {
76
+ JsMinifyPlugin
77
+ };
@@ -60,6 +60,11 @@ function createUnpack() {
60
60
  modules: true,
61
61
  transformer: "postcss",
62
62
  sourceMap: false
63
+ },
64
+ performance: {
65
+ chunkSplit: {
66
+ strategy: "split-by-experience"
67
+ }
63
68
  }
64
69
  };
65
70
  let { plugins, bundlerConfig, ...rest } = (0, import_utils.mergeConfig)(defaultConfig, unpackConfig);
@@ -76,7 +81,7 @@ function createUnpack() {
76
81
  build: async (unpackConfig) => {
77
82
  (0, import_utils.setNodeEnv)("production");
78
83
  console.log(
79
- import_colors.default.rainbow(`unpack v${"1.7.2"}`),
84
+ import_colors.default.rainbow(`unpack v${"1.7.3"}`),
80
85
  import_colors.default.green("building for production...")
81
86
  );
82
87
  const config = await resolveConfig(unpackConfig);
@@ -92,7 +97,7 @@ function createUnpack() {
92
97
  watch: async (unpackConfig) => {
93
98
  (0, import_utils.setNodeEnv)("development");
94
99
  console.log(
95
- import_colors.default.rainbow(`unpack v${"1.7.2"}`),
100
+ import_colors.default.rainbow(`unpack v${"1.7.3"}`),
96
101
  import_colors.default.green("building for development...")
97
102
  );
98
103
  const config = await resolveConfig(unpackConfig);
@@ -1 +1 @@
1
- {"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD,wBAAgB,YAAY;0BAuCI,YAAY;0BASZ,YAAY;0BAOZ,YAAY;EAU3C"}
1
+ {"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD,wBAAgB,YAAY;0BA4CI,YAAY;0BASZ,YAAY;0BAOZ,YAAY;EAU3C"}
@@ -37,6 +37,11 @@ function createUnpack() {
37
37
  modules: true,
38
38
  transformer: "postcss",
39
39
  sourceMap: false
40
+ },
41
+ performance: {
42
+ chunkSplit: {
43
+ strategy: "split-by-experience"
44
+ }
40
45
  }
41
46
  };
42
47
  let { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, unpackConfig);
@@ -53,7 +58,7 @@ function createUnpack() {
53
58
  build: async (unpackConfig) => {
54
59
  setNodeEnv("production");
55
60
  console.log(
56
- colors.rainbow(`unpack v${"1.7.2"}`),
61
+ colors.rainbow(`unpack v${"1.7.3"}`),
57
62
  colors.green("building for production...")
58
63
  );
59
64
  const config = await resolveConfig(unpackConfig);
@@ -69,7 +74,7 @@ function createUnpack() {
69
74
  watch: async (unpackConfig) => {
70
75
  setNodeEnv("development");
71
76
  console.log(
72
- colors.rainbow(`unpack v${"1.7.2"}`),
77
+ colors.rainbow(`unpack v${"1.7.3"}`),
73
78
  colors.green("building for development...")
74
79
  );
75
80
  const config = await resolveConfig(unpackConfig);
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(minimizer_exports);
34
34
  var import_node_buffer = require("node:buffer");
35
35
  var lightningcss = __toESM(require("lightningcss"));
36
36
  var import_cache = require("./cache.cjs");
37
- const PLUGIN_NAME = "PluginLightningcssMinify";
37
+ const PLUGIN_NAME = "LightningcssMinifyPlugin";
38
38
  class LightningcssMinifyPlugin {
39
39
  constructor(opts = {}) {
40
40
  this.transform = opts.implementation?.transform ?? lightningcss.transform;
@@ -10,7 +10,7 @@ var __filename = /* @__PURE__ */ getFilename();
10
10
  import { Buffer } from "node:buffer";
11
11
  import * as lightningcss from "lightningcss";
12
12
  import { getLightningcssTargets } from "./cache.js";
13
- const PLUGIN_NAME = "PluginLightningcssMinify";
13
+ const PLUGIN_NAME = "LightningcssMinifyPlugin";
14
14
  class LightningcssMinifyPlugin {
15
15
  constructor(opts = {}) {
16
16
  this.transform = opts.implementation?.transform ?? lightningcss.transform;
package/dist/run/dev.cjs CHANGED
@@ -62,7 +62,7 @@ async function bundlerDev(originalUnpackConfig) {
62
62
  };
63
63
  const server = new import_webpack_dev_server.default(devServerOptions, compiler);
64
64
  import_logger.logger.greet(
65
- ` ${import_colors.default.green(`${import_colors.default.bold("UNPACK")} v${"1.7.2"}`)} ${import_colors.default.dim(
65
+ ` ${import_colors.default.green(`${import_colors.default.bold("UNPACK")} v${"1.7.3"}`)} ${import_colors.default.dim(
66
66
  `ready in ${import_colors.default.reset(
67
67
  import_colors.default.bold(Math.ceil(performance.now() - global.__unpack_start_time))
68
68
  )}ms`
package/dist/run/dev.js CHANGED
@@ -39,7 +39,7 @@ async function bundlerDev(originalUnpackConfig) {
39
39
  };
40
40
  const server = new WebpackDevServer(devServerOptions, compiler);
41
41
  logger.greet(
42
- ` ${colors.green(`${colors.bold("UNPACK")} v${"1.7.2"}`)} ${colors.dim(
42
+ ` ${colors.green(`${colors.bold("UNPACK")} v${"1.7.3"}`)} ${colors.dim(
43
43
  `ready in ${colors.reset(
44
44
  colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))
45
45
  )}ms`
@@ -177,6 +177,10 @@ export type UnpackConfig = {
177
177
  * @default false
178
178
  */
179
179
  css?: boolean;
180
+ /**
181
+ * @default false
182
+ */
183
+ incremental?: boolean;
180
184
  };
181
185
  mpa?: boolean | {
182
186
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,+BAA+B,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AACnG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,oBAAoB,CAAA;AAE7E,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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AAE,CAAA;QACvB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -82,12 +82,11 @@
82
82
  "webpack-merge": "6.0.1"
83
83
  },
84
84
  "dependencies": {
85
- "@rspack/core": "1.1.4",
85
+ "@rspack/core": "1.1.5",
86
86
  "@types/less": "3.0.7",
87
87
  "copy-webpack-plugin": "12.0.2",
88
88
  "cors": "2.8.5",
89
89
  "esbuild": "0.24.0",
90
- "esbuild-loader": "4.2.2",
91
90
  "express": "4.21.1",
92
91
  "html-webpack-plugin": "5.6.3",
93
92
  "json5": "2.2.3",
@@ -99,9 +98,9 @@
99
98
  "picocolors": "1.1.1",
100
99
  "postcss": "8.4.49",
101
100
  "tinyglobby": "0.2.10",
102
- "ts-checker-rspack-plugin": "1.0.1",
101
+ "ts-checker-rspack-plugin": "1.0.2",
103
102
  "typed-css-modules": "0.9.1",
104
- "webpack": "5.96.1",
103
+ "webpack": "5.97.0",
105
104
  "webpack-dev-server": "5.1.0"
106
105
  },
107
106
  "scripts": {