@unpackjs/core 1.6.4 → 1.7.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.
Files changed (40) hide show
  1. package/compiled/css-loader/index.js +46 -46
  2. package/compiled/less-loader/index.js +8 -8
  3. package/compiled/postcss-loader/index.js +11 -11
  4. package/compiled/sass-loader/index.js +8 -8
  5. package/dist/bundler-config/index.cjs +9 -6
  6. package/dist/bundler-config/index.d.ts.map +1 -1
  7. package/dist/bundler-config/index.js +12 -9
  8. package/dist/createUnpack.cjs +6 -3
  9. package/dist/createUnpack.d.ts.map +1 -1
  10. package/dist/createUnpack.js +7 -4
  11. package/dist/index.cjs +3 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +2 -0
  15. package/dist/plugin-progress/rspack.cjs +3 -1
  16. package/dist/plugin-progress/rspack.d.ts.map +1 -1
  17. package/dist/plugin-progress/rspack.js +3 -1
  18. package/dist/plugin-progress/webpack.cjs +3 -1
  19. package/dist/plugin-progress/webpack.d.ts.map +1 -1
  20. package/dist/plugin-progress/webpack.js +3 -1
  21. package/dist/prebundleDeps.cjs +340 -0
  22. package/dist/prebundleDeps.d.ts +5 -0
  23. package/dist/prebundleDeps.d.ts.map +1 -0
  24. package/dist/prebundleDeps.js +324 -0
  25. package/dist/run/dev.cjs +22 -39
  26. package/dist/run/dev.d.ts +1 -1
  27. package/dist/run/dev.d.ts.map +1 -1
  28. package/dist/run/dev.js +23 -40
  29. package/dist/thread-loader/worker.js +1 -1
  30. package/dist/types/config.d.ts +29 -6
  31. package/dist/types/config.d.ts.map +1 -1
  32. package/dist/utils.cjs +2 -0
  33. package/dist/utils.d.ts +2 -0
  34. package/dist/utils.d.ts.map +1 -1
  35. package/dist/utils.js +1 -0
  36. package/package.json +5 -8
  37. package/compiled/chokidar/index.d.ts +0 -327
  38. package/compiled/chokidar/index.js +0 -1773
  39. package/compiled/chokidar/license +0 -21
  40. package/compiled/chokidar/package.json +0 -1
@@ -1,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 9899: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 5190: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(7070);
5
+ const loader = __nccwpck_require__(2375);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(9401).defaultGetLocalIdent;
8
+ __nccwpck_require__(9384).defaultGetLocalIdent;
9
9
  },
10
- 7070: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 2375: (__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
- var _package = _interopRequireDefault(__nccwpck_require__(3360));
15
+ var _package = _interopRequireDefault(__nccwpck_require__(7337));
16
16
  var _semver = __nccwpck_require__(5204);
17
- var _options = _interopRequireDefault(__nccwpck_require__(5459));
18
- var _plugins = __nccwpck_require__(6658);
19
- var _utils = __nccwpck_require__(9401);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(2174));
18
+ var _plugins = __nccwpck_require__(7714);
19
+ var _utils = __nccwpck_require__(9384);
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
- 6658: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 7714: (__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__(1689),
268
+ __nccwpck_require__(6885),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(6853),
271
+ __nccwpck_require__(5294),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(6929));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(6284));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 6853: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 5294: (__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
- var _icssUtils = __nccwpck_require__(8406);
283
- var _utils = __nccwpck_require__(9401);
282
+ var _icssUtils = __nccwpck_require__(4508);
283
+ var _utils = __nccwpck_require__(9384);
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
- 1689: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 6885: (__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__(9401);
389
+ var _utils = __nccwpck_require__(9384);
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
- 6929: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 6284: (__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__(9401);
701
+ var _utils = __nccwpck_require__(9384);
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
- 9401: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 9384: (__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;
@@ -1074,16 +1074,16 @@
1074
1074
  var _url = __nccwpck_require__(7310);
1075
1075
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
1076
1076
  var _postcssModulesValues = _interopRequireDefault(
1077
- __nccwpck_require__(978),
1077
+ __nccwpck_require__(3968),
1078
1078
  );
1079
1079
  var _postcssModulesLocalByDefault = _interopRequireDefault(
1080
- __nccwpck_require__(8480),
1080
+ __nccwpck_require__(7913),
1081
1081
  );
1082
1082
  var _postcssModulesExtractImports = _interopRequireDefault(
1083
- __nccwpck_require__(8456),
1083
+ __nccwpck_require__(4651),
1084
1084
  );
1085
1085
  var _postcssModulesScope = _interopRequireDefault(
1086
- __nccwpck_require__(8084),
1086
+ __nccwpck_require__(4988),
1087
1087
  );
1088
1088
  function _interopRequireDefault(obj) {
1089
1089
  return obj && obj.__esModule ? obj : { default: obj };
@@ -2276,7 +2276,7 @@
2276
2276
  cssesc.version = "3.0.0";
2277
2277
  module.exports = cssesc;
2278
2278
  },
2279
- 5198: (module) => {
2279
+ 41: (module) => {
2280
2280
  const createImports = (imports, postcss, mode = "rule") =>
2281
2281
  Object.keys(imports).map((path) => {
2282
2282
  const aliases = imports[path];
@@ -2328,7 +2328,7 @@
2328
2328
  ];
2329
2329
  module.exports = createICSSRules;
2330
2330
  },
2331
- 680: (module) => {
2331
+ 1289: (module) => {
2332
2332
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
2333
2333
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
2334
2334
  const getDeclsObject = (rule) => {
@@ -2386,11 +2386,11 @@
2386
2386
  };
2387
2387
  module.exports = extractICSS;
2388
2388
  },
2389
- 8406: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
- const replaceValueSymbols = __nccwpck_require__(7797);
2391
- const replaceSymbols = __nccwpck_require__(9607);
2392
- const extractICSS = __nccwpck_require__(680);
2393
- const createICSSRules = __nccwpck_require__(5198);
2389
+ 4508: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
+ const replaceValueSymbols = __nccwpck_require__(4360);
2391
+ const replaceSymbols = __nccwpck_require__(5905);
2392
+ const extractICSS = __nccwpck_require__(1289);
2393
+ const createICSSRules = __nccwpck_require__(41);
2394
2394
  module.exports = {
2395
2395
  replaceValueSymbols,
2396
2396
  replaceSymbols,
@@ -2398,8 +2398,8 @@
2398
2398
  createICSSRules,
2399
2399
  };
2400
2400
  },
2401
- 9607: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
- const replaceValueSymbols = __nccwpck_require__(7797);
2401
+ 5905: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
+ const replaceValueSymbols = __nccwpck_require__(4360);
2403
2403
  const replaceSymbols = (css, replacements) => {
2404
2404
  css.walk((node) => {
2405
2405
  if (node.type === "decl" && node.value) {
@@ -2422,7 +2422,7 @@
2422
2422
  };
2423
2423
  module.exports = replaceSymbols;
2424
2424
  },
2425
- 7797: (module) => {
2425
+ 4360: (module) => {
2426
2426
  const matchValueName = /[$]?[\w-]+/g;
2427
2427
  const replaceValueSymbols = (value, replacements) => {
2428
2428
  let matches;
@@ -2440,8 +2440,8 @@
2440
2440
  };
2441
2441
  module.exports = replaceValueSymbols;
2442
2442
  },
2443
- 8456: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
- const topologicalSort = __nccwpck_require__(3423);
2443
+ 4651: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
+ const topologicalSort = __nccwpck_require__(3934);
2445
2445
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
2446
2446
  const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
2447
2447
  const VISITED_MARKER = 1;
@@ -2587,7 +2587,7 @@
2587
2587
  };
2588
2588
  module.exports.postcss = true;
2589
2589
  },
2590
- 3423: (module) => {
2590
+ 3934: (module) => {
2591
2591
  const PERMANENT_MARKER = 2;
2592
2592
  const TEMPORARY_MARKER = 1;
2593
2593
  function createError(node, graph) {
@@ -2636,11 +2636,11 @@
2636
2636
  }
2637
2637
  module.exports = topologicalSort;
2638
2638
  },
2639
- 8480: (module, __unused_webpack_exports, __nccwpck_require__) => {
2639
+ 7913: (module, __unused_webpack_exports, __nccwpck_require__) => {
2640
2640
  "use strict";
2641
2641
  const selectorParser = __nccwpck_require__(3008);
2642
2642
  const valueParser = __nccwpck_require__(7555);
2643
- const { extractICSS } = __nccwpck_require__(8406);
2643
+ const { extractICSS } = __nccwpck_require__(4508);
2644
2644
  const isSpacing = (node) =>
2645
2645
  node.type === "combinator" && node.value === " ";
2646
2646
  function normalizeNodeArray(nodes) {
@@ -3151,7 +3151,7 @@
3151
3151
  };
3152
3152
  module.exports.postcss = true;
3153
3153
  },
3154
- 8084: (module, __unused_webpack_exports, __nccwpck_require__) => {
3154
+ 4988: (module, __unused_webpack_exports, __nccwpck_require__) => {
3155
3155
  "use strict";
3156
3156
  const selectorParser = __nccwpck_require__(3008);
3157
3157
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -3458,9 +3458,9 @@
3458
3458
  };
3459
3459
  module.exports = plugin;
3460
3460
  },
3461
- 978: (module, __unused_webpack_exports, __nccwpck_require__) => {
3461
+ 3968: (module, __unused_webpack_exports, __nccwpck_require__) => {
3462
3462
  "use strict";
3463
- const ICSSUtils = __nccwpck_require__(8406);
3463
+ const ICSSUtils = __nccwpck_require__(4508);
3464
3464
  const matchImports =
3465
3465
  /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
3466
3466
  const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
@@ -7964,16 +7964,16 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 5459: (module) => {
7967
+ 2174: (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"}',
7971
7971
  );
7972
7972
  },
7973
- 3360: (module) => {
7973
+ 7337: (module) => {
7974
7974
  "use strict";
7975
7975
  module.exports = JSON.parse(
7976
- '{"name":"postcss","version":"8.4.47","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.0","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7976
+ '{"name":"postcss","version":"8.4.49","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7977
7977
  );
7978
7978
  },
7979
7979
  };
@@ -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__(9899);
8002
+ var __webpack_exports__ = __nccwpck_require__(5190);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 866: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(478)["default"];
4
+ 885: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(422)["default"];
6
6
  },
7
- 478: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 422: (__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__(102));
13
- var _utils = __nccwpck_require__(311);
12
+ var _options = _interopRequireDefault(__nccwpck_require__(509));
13
+ var _utils = __nccwpck_require__(196);
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
- 311: (__unused_webpack_module, exports, __nccwpck_require__) => {
115
+ 196: (__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
- 102: (module) => {
310
+ 509: (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__(866);
338
+ var __webpack_exports__ = __nccwpck_require__(885);
339
339
  module.exports = __webpack_exports__;
340
340
  })();
@@ -93276,19 +93276,19 @@
93276
93276
  module.exports = createColors();
93277
93277
  module.exports.createColors = createColors;
93278
93278
  },
93279
- 9821: (module, __unused_webpack_exports, __nccwpck_require__) => {
93279
+ 9149: (module, __unused_webpack_exports, __nccwpck_require__) => {
93280
93280
  "use strict";
93281
- module.exports = __nccwpck_require__(5562)["default"];
93281
+ module.exports = __nccwpck_require__(7359)["default"];
93282
93282
  },
93283
- 5562: (__unused_webpack_module, exports, __nccwpck_require__) => {
93283
+ 7359: (__unused_webpack_module, exports, __nccwpck_require__) => {
93284
93284
  "use strict";
93285
93285
  var __webpack_unused_export__;
93286
93286
  __webpack_unused_export__ = { value: true };
93287
93287
  exports["default"] = loader;
93288
93288
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
93289
- var _package = _interopRequireDefault(__nccwpck_require__(3360));
93290
- var _options = _interopRequireDefault(__nccwpck_require__(9361));
93291
- var _utils = __nccwpck_require__(2688);
93289
+ var _package = _interopRequireDefault(__nccwpck_require__(7337));
93290
+ var _options = _interopRequireDefault(__nccwpck_require__(4483));
93291
+ var _utils = __nccwpck_require__(7093);
93292
93292
  function _interopRequireDefault(obj) {
93293
93293
  return obj && obj.__esModule ? obj : { default: obj };
93294
93294
  }
@@ -93466,7 +93466,7 @@
93466
93466
  callback(null, result.css, map, { ast });
93467
93467
  }
93468
93468
  },
93469
- 2688: (module, exports, __nccwpck_require__) => {
93469
+ 7093: (module, exports, __nccwpck_require__) => {
93470
93470
  "use strict";
93471
93471
  module = __nccwpck_require__.nmd(module);
93472
93472
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -94833,16 +94833,16 @@
94833
94833
  };
94834
94834
  }
94835
94835
  },
94836
- 9361: (module) => {
94836
+ 4483: (module) => {
94837
94837
  "use strict";
94838
94838
  module.exports = JSON.parse(
94839
94839
  '{"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}',
94840
94840
  );
94841
94841
  },
94842
- 3360: (module) => {
94842
+ 7337: (module) => {
94843
94843
  "use strict";
94844
94844
  module.exports = JSON.parse(
94845
- '{"name":"postcss","version":"8.4.47","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.0","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
94845
+ '{"name":"postcss","version":"8.4.49","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
94846
94846
  );
94847
94847
  },
94848
94848
  };
@@ -94943,6 +94943,6 @@
94943
94943
  })();
94944
94944
  if (typeof __nccwpck_require__ !== "undefined")
94945
94945
  __nccwpck_require__.ab = __dirname + "/";
94946
- var __webpack_exports__ = __nccwpck_require__(9821);
94946
+ var __webpack_exports__ = __nccwpck_require__(9149);
94947
94947
  module.exports = __webpack_exports__;
94948
94948
  })();
@@ -4795,19 +4795,19 @@
4795
4795
  }
4796
4796
  });
4797
4797
  },
4798
- 599: (module, __unused_webpack_exports, __nccwpck_require__) => {
4798
+ 867: (module, __unused_webpack_exports, __nccwpck_require__) => {
4799
4799
  "use strict";
4800
- const loader = __nccwpck_require__(328);
4800
+ const loader = __nccwpck_require__(814);
4801
4801
  module.exports = loader.default;
4802
4802
  },
4803
- 328: (__unused_webpack_module, exports, __nccwpck_require__) => {
4803
+ 814: (__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__(368));
4810
- var _utils = __nccwpck_require__(209);
4809
+ var _options = _interopRequireDefault(__nccwpck_require__(88));
4810
+ var _utils = __nccwpck_require__(52);
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
- 209: (__unused_webpack_module, exports, __nccwpck_require__) => {
4920
+ 52: (__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
- 368: (module) => {
5580
+ 88: (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__(599);
5610
+ var __webpack_exports__ = __nccwpck_require__(867);
5611
5611
  module.exports = __webpack_exports__;
5612
5612
  })();
@@ -108,7 +108,7 @@ async function getBundlerConfig(unpackConfig) {
108
108
  unpackConfig.define && definePlugin(unpackConfig.define),
109
109
  !unpackConfig.mpa && new import_html_webpack_plugin.default({
110
110
  template: unpackConfig.html?.template || "",
111
- templateContent: unpackConfig.html?.templateContent || import_constants.TEMPLATE_CONTENT,
111
+ templateContent: unpackConfig.html?.templateContent || !unpackConfig.html?.template && import_constants.TEMPLATE_CONTENT,
112
112
  templateParameters: {
113
113
  mountId: unpackConfig.html?.mountId,
114
114
  title: (0, import_utils.isFunction)(unpackConfig.html?.title) ? unpackConfig.html?.title({ entryName: "index" }) : unpackConfig.html?.title,
@@ -124,7 +124,7 @@ async function getBundlerConfig(unpackConfig) {
124
124
  contextRegExp: /moment$/
125
125
  }),
126
126
  unpackConfig.build?.copy && new CopyPlugin({ patterns: unpackConfig.build.copy }),
127
- (0, import_utils.isDev)() && isTs && new ForkTsCheckerWebpackPlugin({
127
+ unpackConfig.build?.typeCheck && (0, import_utils.isDev)() && isTs && new ForkTsCheckerWebpackPlugin({
128
128
  typescript: {
129
129
  // set 'readonly' to avoid emitting tsbuildinfo, as the generated tsbuildinfo will break fork-ts-checker
130
130
  mode: "readonly",
@@ -137,6 +137,10 @@ async function getBundlerConfig(unpackConfig) {
137
137
  paths: [unpackConfig.root]
138
138
  })
139
139
  },
140
+ issue: {
141
+ // ignore types errors from node_modules
142
+ exclude: [({ file = "" }) => import_constants.NODE_MODULES_REGEX.test(file)]
143
+ },
140
144
  logger: {
141
145
  log(message) {
142
146
  if (message.includes("Found")) {
@@ -148,7 +152,7 @@ async function getBundlerConfig(unpackConfig) {
148
152
  }
149
153
  }
150
154
  }),
151
- !(0, import_utils.isDevServer)() && new PluginProgress()
155
+ new PluginProgress()
152
156
  ].filter(Boolean),
153
157
  externals: unpackConfig.externals,
154
158
  resolve: {
@@ -160,9 +164,8 @@ async function getBundlerConfig(unpackConfig) {
160
164
  extensions: [".tsx", ".ts", ".jsx", ".js", ...unpackConfig.resolve?.extensions || []]
161
165
  },
162
166
  experiments: {
163
- lazyCompilation: (0, import_utils.isDevServer)(),
164
- css: false,
165
- ...isRspack && (0, import_utils.isDev)() ? { incremental: true } : {}
167
+ lazyCompilation: unpackConfig.dev?.lazyCompilation && (0, import_utils.isDevServer)(),
168
+ css: false
166
169
  },
167
170
  optimization: {
168
171
  moduleIds: (0, import_utils.isDev)() ? "named" : "deterministic",
@@ -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,CAuKhG"}
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,CA6KhG"}
@@ -10,7 +10,7 @@ var __filename = /* @__PURE__ */ getFilename();
10
10
  import fs from "node:fs";
11
11
  import path2 from "node:path";
12
12
  import { rspack } from "@rspack/core";
13
- import HtmlWebpackPlugin from "html-webpack-plugin";
13
+ import HtmlPlugin from "html-webpack-plugin";
14
14
  import { isDev, isDevServer, isFunction, isPlainObject, isProd, mergeConfig } from "../utils.js";
15
15
  const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
16
16
  const BundleAnalyzerPlugin = require("../../compiled/webpack-bundle-analyzer/index.js").BundleAnalyzerPlugin;
@@ -18,7 +18,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
18
18
  import esbuild from "esbuild";
19
19
  import { EsbuildPlugin } from "esbuild-loader";
20
20
  import json5 from "json5";
21
- import { ESBUILD_TARGET, TEMPLATE_CONTENT } from "../constants.js";
21
+ import { ESBUILD_TARGET, NODE_MODULES_REGEX, TEMPLATE_CONTENT } from "../constants.js";
22
22
  import { LightningcssMinifyPlugin } from "../lightningcss/minimizer.js";
23
23
  import { logger } from "../logger.js";
24
24
  import { getNormalizedPluginsByHook } from "../plugin.js";
@@ -83,9 +83,9 @@ async function getBundlerConfig(unpackConfig) {
83
83
  },
84
84
  plugins: [
85
85
  unpackConfig.define && definePlugin(unpackConfig.define),
86
- !unpackConfig.mpa && new HtmlWebpackPlugin({
86
+ !unpackConfig.mpa && new HtmlPlugin({
87
87
  template: unpackConfig.html?.template || "",
88
- templateContent: unpackConfig.html?.templateContent || TEMPLATE_CONTENT,
88
+ templateContent: unpackConfig.html?.templateContent || !unpackConfig.html?.template && TEMPLATE_CONTENT,
89
89
  templateParameters: {
90
90
  mountId: unpackConfig.html?.mountId,
91
91
  title: isFunction(unpackConfig.html?.title) ? unpackConfig.html?.title({ entryName: "index" }) : unpackConfig.html?.title,
@@ -101,7 +101,7 @@ async function getBundlerConfig(unpackConfig) {
101
101
  contextRegExp: /moment$/
102
102
  }),
103
103
  unpackConfig.build?.copy && new CopyPlugin({ patterns: unpackConfig.build.copy }),
104
- isDev() && isTs && new ForkTsCheckerWebpackPlugin({
104
+ unpackConfig.build?.typeCheck && isDev() && isTs && new ForkTsCheckerWebpackPlugin({
105
105
  typescript: {
106
106
  // set 'readonly' to avoid emitting tsbuildinfo, as the generated tsbuildinfo will break fork-ts-checker
107
107
  mode: "readonly",
@@ -114,6 +114,10 @@ async function getBundlerConfig(unpackConfig) {
114
114
  paths: [unpackConfig.root]
115
115
  })
116
116
  },
117
+ issue: {
118
+ // ignore types errors from node_modules
119
+ exclude: [({ file = "" }) => NODE_MODULES_REGEX.test(file)]
120
+ },
117
121
  logger: {
118
122
  log(message) {
119
123
  if (message.includes("Found")) {
@@ -125,7 +129,7 @@ async function getBundlerConfig(unpackConfig) {
125
129
  }
126
130
  }
127
131
  }),
128
- !isDevServer() && new PluginProgress()
132
+ new PluginProgress()
129
133
  ].filter(Boolean),
130
134
  externals: unpackConfig.externals,
131
135
  resolve: {
@@ -137,9 +141,8 @@ async function getBundlerConfig(unpackConfig) {
137
141
  extensions: [".tsx", ".ts", ".jsx", ".js", ...unpackConfig.resolve?.extensions || []]
138
142
  },
139
143
  experiments: {
140
- lazyCompilation: isDevServer(),
141
- css: false,
142
- ...isRspack && isDev() ? { incremental: true } : {}
144
+ lazyCompilation: unpackConfig.dev?.lazyCompilation && isDevServer(),
145
+ css: false
143
146
  },
144
147
  optimization: {
145
148
  moduleIds: isDev() ? "named" : "deterministic",
@@ -45,7 +45,10 @@ function createUnpack() {
45
45
  sourceMap: (0, import_utils.isProd)() ? false : "cheap-module-source-map",
46
46
  parallel: !(0, import_utils.isDevServer)(),
47
47
  filenameHash: true,
48
- cache: (0, import_utils.isDev)()
48
+ typeCheck: true
49
+ },
50
+ dev: {
51
+ lazyCompilation: true
49
52
  },
50
53
  server: {
51
54
  port: 3e3
@@ -73,7 +76,7 @@ function createUnpack() {
73
76
  build: async (unpackConfig) => {
74
77
  (0, import_utils.setNodeEnv)("production");
75
78
  console.log(
76
- import_colors.default.rainbow(`unpack v${"1.6.4"}`),
79
+ import_colors.default.rainbow(`unpack v${"1.7.0"}`),
77
80
  import_colors.default.green("building for production...")
78
81
  );
79
82
  const config = await resolveConfig(unpackConfig);
@@ -89,7 +92,7 @@ function createUnpack() {
89
92
  watch: async (unpackConfig) => {
90
93
  (0, import_utils.setNodeEnv)("development");
91
94
  console.log(
92
- import_colors.default.rainbow(`unpack v${"1.6.4"}`),
95
+ import_colors.default.rainbow(`unpack v${"1.7.0"}`),
93
96
  import_colors.default.green("building for development...")
94
97
  );
95
98
  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;0BAoCI,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;0BAuCI,YAAY;0BASZ,YAAY;0BAOZ,YAAY;EAU3C"}