@rsbuild/core 1.3.21 → 1.4.0-beta.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 (37) hide show
  1. package/README.md +2 -2
  2. package/compiled/css-loader/index.js +44 -44
  3. package/compiled/html-rspack-plugin/index.js +14 -14
  4. package/compiled/postcss/index.js +189 -144
  5. package/compiled/postcss/lib/input.d.ts +24 -3
  6. package/compiled/postcss/lib/node.d.ts +17 -2
  7. package/compiled/postcss/lib/stringifier.d.ts +2 -2
  8. package/compiled/postcss/package.json +1 -1
  9. package/compiled/postcss-load-config/index.js +10 -10
  10. package/compiled/postcss-loader/index.js +6 -6
  11. package/compiled/rsbuild-dev-middleware/index.js +115 -125
  12. package/compiled/rspack-chain/index.js +67 -67
  13. package/compiled/rspack-chain/package.json +1 -1
  14. package/compiled/rspack-chain/types/index.d.ts +1 -0
  15. package/compiled/rspack-manifest-plugin/index.js +4 -4
  16. package/compiled/sirv/index.js +12 -6
  17. package/compiled/style-loader/index.js +10 -10
  18. package/compiled/tinyglobby/index.d.ts +35 -16
  19. package/compiled/tinyglobby/index.js +517 -531
  20. package/compiled/tinyglobby/package.json +1 -1
  21. package/compiled/webpack-bundle-analyzer/index.js +62 -46
  22. package/dist/index.cjs +274 -236
  23. package/dist/index.js +233 -227
  24. package/dist-types/cli/commands.d.ts +1 -1
  25. package/dist-types/defaultConfig.d.ts +26 -0
  26. package/dist-types/index.d.ts +2 -2
  27. package/dist-types/{config.d.ts → loadConfig.d.ts} +9 -34
  28. package/dist-types/pluginHelper.d.ts +1 -1
  29. package/dist-types/plugins/minimize.d.ts +1 -1
  30. package/dist-types/server/cliShortcuts.d.ts +2 -2
  31. package/dist-types/server/helper.d.ts +2 -2
  32. package/dist-types/server/runner/asModule.d.ts +2 -2
  33. package/dist-types/types/config.d.ts +41 -20
  34. package/dist-types/types/hooks.d.ts +1 -1
  35. package/dist-types/types/plugin.d.ts +18 -18
  36. package/dist-types/types/rsbuild.d.ts +2 -2
  37. package/package.json +11 -10
@@ -627,7 +627,7 @@
627
627
  };
628
628
  exports.toString = toString;
629
629
  },
630
- 676: (module) => {
630
+ 765: (module) => {
631
631
  module.exports = class extends Function {
632
632
  constructor() {
633
633
  super();
@@ -640,35 +640,35 @@
640
640
  }
641
641
  };
642
642
  },
643
- 446: (module, __unused_webpack_exports, __nccwpck_require__) => {
644
- const createMap = __nccwpck_require__(635);
645
- const createChainable = __nccwpck_require__(912);
643
+ 975: (module, __unused_webpack_exports, __nccwpck_require__) => {
644
+ const createMap = __nccwpck_require__(632);
645
+ const createChainable = __nccwpck_require__(327);
646
646
  module.exports = createMap(createChainable(Object));
647
647
  },
648
- 572: (module, __unused_webpack_exports, __nccwpck_require__) => {
649
- const createSet = __nccwpck_require__(453);
650
- const createChainable = __nccwpck_require__(912);
648
+ 353: (module, __unused_webpack_exports, __nccwpck_require__) => {
649
+ const createSet = __nccwpck_require__(450);
650
+ const createChainable = __nccwpck_require__(327);
651
651
  module.exports = createSet(createChainable(Object));
652
652
  },
653
- 663: (module, __unused_webpack_exports, __nccwpck_require__) => {
654
- const Callable = __nccwpck_require__(676);
655
- const createMap = __nccwpck_require__(635);
656
- const createChainable = __nccwpck_require__(912);
657
- const createValue = __nccwpck_require__(776);
653
+ 308: (module, __unused_webpack_exports, __nccwpck_require__) => {
654
+ const Callable = __nccwpck_require__(765);
655
+ const createMap = __nccwpck_require__(632);
656
+ const createChainable = __nccwpck_require__(327);
657
+ const createValue = __nccwpck_require__(191);
658
658
  module.exports = createValue(createMap(createChainable(Callable)));
659
659
  },
660
- 842: (module, __unused_webpack_exports, __nccwpck_require__) => {
661
- const ChainedMap = __nccwpck_require__(446);
662
- const ChainedValueMap = __nccwpck_require__(663);
663
- const ChainedSet = __nccwpck_require__(572);
664
- const Resolve = __nccwpck_require__(318);
665
- const ResolveLoader = __nccwpck_require__(981);
666
- const Output = __nccwpck_require__(113);
667
- const DevServer = __nccwpck_require__(670);
668
- const Plugin = __nccwpck_require__(271);
669
- const Module = __nccwpck_require__(972);
670
- const Optimization = __nccwpck_require__(117);
671
- const Performance = __nccwpck_require__(212);
660
+ 523: (module, __unused_webpack_exports, __nccwpck_require__) => {
661
+ const ChainedMap = __nccwpck_require__(975);
662
+ const ChainedValueMap = __nccwpck_require__(308);
663
+ const ChainedSet = __nccwpck_require__(353);
664
+ const Resolve = __nccwpck_require__(629);
665
+ const ResolveLoader = __nccwpck_require__(278);
666
+ const Output = __nccwpck_require__(688);
667
+ const DevServer = __nccwpck_require__(737);
668
+ const Plugin = __nccwpck_require__(518);
669
+ const Module = __nccwpck_require__(81);
670
+ const Optimization = __nccwpck_require__(604);
671
+ const Performance = __nccwpck_require__(123);
672
672
  const castArray = (value) => (Array.isArray(value) ? value : [value]);
673
673
  const toEntryObject = (entryPoints) => {
674
674
  const entry = Object.keys(entryPoints).reduce(
@@ -845,9 +845,9 @@
845
845
  }
846
846
  };
847
847
  },
848
- 670: (module, __unused_webpack_exports, __nccwpck_require__) => {
849
- const ChainedMap = __nccwpck_require__(446);
850
- const ChainedSet = __nccwpck_require__(572);
848
+ 737: (module, __unused_webpack_exports, __nccwpck_require__) => {
849
+ const ChainedMap = __nccwpck_require__(975);
850
+ const ChainedSet = __nccwpck_require__(353);
851
851
  module.exports = class extends ChainedMap {
852
852
  constructor(parent) {
853
853
  super(parent);
@@ -919,9 +919,9 @@
919
919
  }
920
920
  };
921
921
  },
922
- 972: (module, __unused_webpack_exports, __nccwpck_require__) => {
923
- const ChainedMap = __nccwpck_require__(446);
924
- const Rule = __nccwpck_require__(478);
922
+ 81: (module, __unused_webpack_exports, __nccwpck_require__) => {
923
+ const ChainedMap = __nccwpck_require__(975);
924
+ const Rule = __nccwpck_require__(203);
925
925
  module.exports = class extends ChainedMap {
926
926
  constructor(parent) {
927
927
  super(parent);
@@ -976,10 +976,10 @@
976
976
  }
977
977
  };
978
978
  },
979
- 117: (module, __unused_webpack_exports, __nccwpck_require__) => {
980
- const ChainedMap = __nccwpck_require__(446);
981
- const ChainedValueMap = __nccwpck_require__(663);
982
- const Plugin = __nccwpck_require__(271);
979
+ 604: (module, __unused_webpack_exports, __nccwpck_require__) => {
980
+ const ChainedMap = __nccwpck_require__(975);
981
+ const ChainedValueMap = __nccwpck_require__(308);
982
+ const Plugin = __nccwpck_require__(518);
983
983
  module.exports = class extends ChainedMap {
984
984
  constructor(parent) {
985
985
  super(parent);
@@ -1041,7 +1041,7 @@
1041
1041
  }
1042
1042
  };
1043
1043
  },
1044
- 102: (module) => {
1044
+ 761: (module) => {
1045
1045
  module.exports = (Class) =>
1046
1046
  class extends Class {
1047
1047
  before(name) {
@@ -1073,8 +1073,8 @@
1073
1073
  }
1074
1074
  };
1075
1075
  },
1076
- 113: (module, __unused_webpack_exports, __nccwpck_require__) => {
1077
- const ChainedMap = __nccwpck_require__(446);
1076
+ 688: (module, __unused_webpack_exports, __nccwpck_require__) => {
1077
+ const ChainedMap = __nccwpck_require__(975);
1078
1078
  module.exports = class extends ChainedMap {
1079
1079
  constructor(parent) {
1080
1080
  super(parent);
@@ -1129,8 +1129,8 @@
1129
1129
  }
1130
1130
  };
1131
1131
  },
1132
- 212: (module, __unused_webpack_exports, __nccwpck_require__) => {
1133
- const ChainedValueMap = __nccwpck_require__(663);
1132
+ 123: (module, __unused_webpack_exports, __nccwpck_require__) => {
1133
+ const ChainedValueMap = __nccwpck_require__(308);
1134
1134
  module.exports = class extends ChainedValueMap {
1135
1135
  constructor(parent) {
1136
1136
  super(parent);
@@ -1143,9 +1143,9 @@
1143
1143
  }
1144
1144
  };
1145
1145
  },
1146
- 271: (module, __unused_webpack_exports, __nccwpck_require__) => {
1147
- const ChainedMap = __nccwpck_require__(446);
1148
- const Orderable = __nccwpck_require__(102);
1146
+ 518: (module, __unused_webpack_exports, __nccwpck_require__) => {
1147
+ const ChainedMap = __nccwpck_require__(975);
1148
+ const Orderable = __nccwpck_require__(761);
1149
1149
  module.exports = Orderable(
1150
1150
  class extends ChainedMap {
1151
1151
  constructor(parent, name, type = "plugin") {
@@ -1199,7 +1199,7 @@
1199
1199
  }
1200
1200
  if (typeof plugin === "string") {
1201
1201
  pluginPath = plugin;
1202
- plugin = __nccwpck_require__(563)(pluginPath);
1202
+ plugin = __nccwpck_require__(580)(pluginPath);
1203
1203
  }
1204
1204
  const constructorName = plugin.__expression
1205
1205
  ? `(${plugin.__expression})`
@@ -1217,10 +1217,10 @@
1217
1217
  },
1218
1218
  );
1219
1219
  },
1220
- 318: (module, __unused_webpack_exports, __nccwpck_require__) => {
1221
- const ChainedMap = __nccwpck_require__(446);
1222
- const ChainedSet = __nccwpck_require__(572);
1223
- const Plugin = __nccwpck_require__(271);
1220
+ 629: (module, __unused_webpack_exports, __nccwpck_require__) => {
1221
+ const ChainedMap = __nccwpck_require__(975);
1222
+ const ChainedSet = __nccwpck_require__(353);
1223
+ const Plugin = __nccwpck_require__(518);
1224
1224
  const childMaps = ["alias", "fallback", "byDependency", "extensionAlias"];
1225
1225
  const childSets = [
1226
1226
  "aliasFields",
@@ -1299,9 +1299,9 @@
1299
1299
  }
1300
1300
  };
1301
1301
  },
1302
- 981: (module, __unused_webpack_exports, __nccwpck_require__) => {
1303
- const Resolve = __nccwpck_require__(318);
1304
- const ChainedSet = __nccwpck_require__(572);
1302
+ 278: (module, __unused_webpack_exports, __nccwpck_require__) => {
1303
+ const Resolve = __nccwpck_require__(629);
1304
+ const ChainedSet = __nccwpck_require__(353);
1305
1305
  module.exports = class extends Resolve {
1306
1306
  constructor(parent) {
1307
1307
  super(parent);
@@ -1328,12 +1328,12 @@
1328
1328
  }
1329
1329
  };
1330
1330
  },
1331
- 478: (module, __unused_webpack_exports, __nccwpck_require__) => {
1332
- const ChainedMap = __nccwpck_require__(446);
1333
- const ChainedSet = __nccwpck_require__(572);
1334
- const Orderable = __nccwpck_require__(102);
1335
- const Use = __nccwpck_require__(877);
1336
- const Resolve = __nccwpck_require__(318);
1331
+ 203: (module, __unused_webpack_exports, __nccwpck_require__) => {
1332
+ const ChainedMap = __nccwpck_require__(975);
1333
+ const ChainedSet = __nccwpck_require__(353);
1334
+ const Orderable = __nccwpck_require__(761);
1335
+ const Use = __nccwpck_require__(462);
1336
+ const Resolve = __nccwpck_require__(629);
1337
1337
  function toArray(arr) {
1338
1338
  return Array.isArray(arr) ? arr : [arr];
1339
1339
  }
@@ -1461,16 +1461,16 @@
1461
1461
  );
1462
1462
  module.exports = Rule;
1463
1463
  },
1464
- 877: (module, __unused_webpack_exports, __nccwpck_require__) => {
1464
+ 462: (module, __unused_webpack_exports, __nccwpck_require__) => {
1465
1465
  const merge = __nccwpck_require__(779);
1466
- const ChainedMap = __nccwpck_require__(446);
1467
- const Orderable = __nccwpck_require__(102);
1466
+ const ChainedMap = __nccwpck_require__(975);
1467
+ const Orderable = __nccwpck_require__(761);
1468
1468
  module.exports = Orderable(
1469
1469
  class extends ChainedMap {
1470
1470
  constructor(parent, name) {
1471
1471
  super(parent);
1472
1472
  this.name = name;
1473
- this.extend(["loader", "options"]);
1473
+ this.extend(["loader", "options", "parallel"]);
1474
1474
  }
1475
1475
  tap(f) {
1476
1476
  this.options(f(this.get("options")));
@@ -1497,7 +1497,7 @@
1497
1497
  },
1498
1498
  );
1499
1499
  },
1500
- 912: (module) => {
1500
+ 327: (module) => {
1501
1501
  module.exports = function createChainable(superClass) {
1502
1502
  return class extends superClass {
1503
1503
  constructor(parent) {
@@ -1514,7 +1514,7 @@
1514
1514
  };
1515
1515
  };
1516
1516
  },
1517
- 635: (module, __unused_webpack_exports, __nccwpck_require__) => {
1517
+ 632: (module, __unused_webpack_exports, __nccwpck_require__) => {
1518
1518
  const merge = __nccwpck_require__(779);
1519
1519
  module.exports = function createMap(superClass) {
1520
1520
  return class extends superClass {
@@ -1638,7 +1638,7 @@
1638
1638
  };
1639
1639
  };
1640
1640
  },
1641
- 453: (module) => {
1641
+ 450: (module) => {
1642
1642
  module.exports = function createSet(superClass) {
1643
1643
  return class extends superClass {
1644
1644
  constructor(...args) {
@@ -1688,7 +1688,7 @@
1688
1688
  };
1689
1689
  };
1690
1690
  },
1691
- 776: (module) => {
1691
+ 191: (module) => {
1692
1692
  module.exports = function createValue(superClass) {
1693
1693
  return class extends superClass {
1694
1694
  constructor(...args) {
@@ -1726,7 +1726,7 @@
1726
1726
  };
1727
1727
  };
1728
1728
  },
1729
- 563: (module) => {
1729
+ 580: (module) => {
1730
1730
  function webpackEmptyContext(req) {
1731
1731
  var e = new Error("Cannot find module '" + req + "'");
1732
1732
  e.code = "MODULE_NOT_FOUND";
@@ -1734,7 +1734,7 @@
1734
1734
  }
1735
1735
  webpackEmptyContext.keys = () => [];
1736
1736
  webpackEmptyContext.resolve = webpackEmptyContext;
1737
- webpackEmptyContext.id = 563;
1737
+ webpackEmptyContext.id = 580;
1738
1738
  module.exports = webpackEmptyContext;
1739
1739
  },
1740
1740
  };
@@ -1764,6 +1764,6 @@
1764
1764
  })();
1765
1765
  if (typeof __nccwpck_require__ !== "undefined")
1766
1766
  __nccwpck_require__.ab = __dirname + "/";
1767
- var __webpack_exports__ = __nccwpck_require__(842);
1767
+ var __webpack_exports__ = __nccwpck_require__(523);
1768
1768
  module.exports = __webpack_exports__;
1769
1769
  })();
@@ -1 +1 @@
1
- {"name":"rspack-chain","author":"rspack-contrib","version":"1.2.4","license":"MIT","types":"types/index.d.ts","type":"commonjs"}
1
+ {"name":"rspack-chain","author":"rspack-contrib","version":"1.2.5","license":"MIT","types":"types/index.d.ts","type":"commonjs"}
@@ -510,6 +510,7 @@ declare namespace Config {
510
510
  class Use<Parent = Rule> extends ChainedMap<Parent> implements Orderable {
511
511
  loader(value: string): this;
512
512
  options(value: LoaderOptions): this;
513
+ parallel(value: boolean): this;
513
514
 
514
515
  tap(f: (options: LoaderOptions) => LoaderOptions): this;
515
516
 
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 805: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 751: (__unused_webpack_module, exports, __nccwpck_require__) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.transformFiles =
7
7
  exports.reduceChunk =
@@ -120,7 +120,7 @@
120
120
  .map(standardizeFilePaths);
121
121
  exports.transformFiles = transformFiles;
122
122
  },
123
- 264: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 338: (__unused_webpack_module, exports, __nccwpck_require__) => {
124
124
  Object.defineProperty(exports, "__esModule", { value: true });
125
125
  exports.normalModuleLoaderHook =
126
126
  exports.getCompilerHooks =
@@ -130,7 +130,7 @@
130
130
  const fs_1 = __nccwpck_require__(896);
131
131
  const path_1 = __nccwpck_require__(928);
132
132
  const lite_tapable_1 = __nccwpck_require__(408);
133
- const helpers_1 = __nccwpck_require__(805);
133
+ const helpers_1 = __nccwpck_require__(751);
134
134
  const compilerHookMap = new WeakMap();
135
135
  const getCompilerHooks = (compiler) => {
136
136
  let hooks = compilerHookMap.get(compiler);
@@ -312,7 +312,7 @@
312
312
  exports.getCompilerHooks =
313
313
  void 0;
314
314
  const path_1 = __nccwpck_require__(928);
315
- const hooks_1 = __nccwpck_require__(264);
315
+ const hooks_1 = __nccwpck_require__(338);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 847: (__unused_webpack_module, exports, __nccwpck_require__) => {
3
+ 600: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
4
  const qs = __nccwpck_require__(480);
5
5
  function parse(req) {
6
6
  let raw = req.url;
@@ -9,18 +9,24 @@
9
9
  if (prev && prev.raw === raw) return prev;
10
10
  let pathname = raw,
11
11
  search = "",
12
- query;
12
+ query,
13
+ hash;
13
14
  if (raw.length > 1) {
14
- let idx = raw.indexOf("?", 1);
15
+ let idx = raw.indexOf("#", 1);
15
16
  if (idx !== -1) {
16
- search = raw.substring(idx);
17
+ hash = raw.substring(idx);
17
18
  pathname = raw.substring(0, idx);
19
+ }
20
+ idx = pathname.indexOf("?", 1);
21
+ if (idx !== -1) {
22
+ search = pathname.substring(idx);
23
+ pathname = pathname.substring(0, idx);
18
24
  if (search.length > 1) {
19
25
  query = qs.parse(search.substring(1));
20
26
  }
21
27
  }
22
28
  }
23
- return (req._parsedUrl = { pathname, search, query, raw });
29
+ return (req._parsedUrl = { pathname, search, query, hash, raw });
24
30
  }
25
31
  exports.parse = parse;
26
32
  },
@@ -477,7 +483,7 @@
477
483
  const fs = __nccwpck_require__(24);
478
484
  const { join, normalize, resolve } = __nccwpck_require__(760);
479
485
  const { totalist } = __nccwpck_require__(794);
480
- const { parse } = __nccwpck_require__(847);
486
+ const { parse } = __nccwpck_require__(600);
481
487
  const { lookup } = __nccwpck_require__(443);
482
488
  const noop = () => {};
483
489
  function isMatch(uri, arr) {
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 330: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- const loader = __nccwpck_require__(16);
4
+ 643: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(213);
6
6
  module.exports = loader.default;
7
7
  },
8
- 16: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
+ 213: (__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__(928));
12
- var _utils = __nccwpck_require__(753);
13
- var _options = _interopRequireDefault(__nccwpck_require__(185));
12
+ var _utils = __nccwpck_require__(800);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(419));
14
14
  function _interopRequireDefault(obj) {
15
15
  return obj && obj.__esModule ? obj : { default: obj };
16
16
  }
@@ -104,7 +104,7 @@
104
104
  };
105
105
  var _default = (exports["default"] = loader);
106
106
  },
107
- 483: (module) => {
107
+ 458: (module) => {
108
108
  function isEqualLocals(a, b, isNamedExport) {
109
109
  if ((!a && b) || (a && !b)) {
110
110
  return false;
@@ -130,7 +130,7 @@
130
130
  }
131
131
  module.exports = isEqualLocals;
132
132
  },
133
- 753: (__unused_webpack_module, exports, __nccwpck_require__) => {
133
+ 800: (__unused_webpack_module, exports, __nccwpck_require__) => {
134
134
  Object.defineProperty(exports, "__esModule", { value: true });
135
135
  exports.getExportLazyStyleCode = getExportLazyStyleCode;
136
136
  exports.getExportStyleCode = getExportStyleCode;
@@ -151,7 +151,7 @@
151
151
  exports.getdomAPI = getdomAPI;
152
152
  exports.stringifyRequest = stringifyRequest;
153
153
  var _path = _interopRequireDefault(__nccwpck_require__(928));
154
- var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(483));
154
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(458));
155
155
  function _interopRequireDefault(obj) {
156
156
  return obj && obj.__esModule ? obj : { default: obj };
157
157
  }
@@ -394,7 +394,7 @@
394
394
  928: (module) => {
395
395
  module.exports = require("path");
396
396
  },
397
- 185: (module) => {
397
+ 419: (module) => {
398
398
  module.exports = JSON.parse(
399
399
  '{"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","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"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","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
400
400
  );
@@ -422,6 +422,6 @@
422
422
  }
423
423
  if (typeof __nccwpck_require__ !== "undefined")
424
424
  __nccwpck_require__.ab = __dirname + "/";
425
- var __webpack_exports__ = __nccwpck_require__(330);
425
+ var __webpack_exports__ = __nccwpck_require__(643);
426
426
  module.exports = __webpack_exports__;
427
427
  })();
@@ -1,26 +1,45 @@
1
+ //#region src/utils.d.ts
2
+
1
3
  declare const convertPathToPattern: (path: string) => string;
2
4
  declare const escapePath: (path: string) => string;
5
+ // #endregion
6
+ // #region isDynamicPattern
7
+ /*
8
+ Has a few minor differences with `fast-glob` for better accuracy:
9
+
10
+ Doesn't necessarily return false on patterns that include `\\`.
11
+
12
+ Returns true if the pattern includes parentheses,
13
+ regardless of them representing one single pattern or not.
14
+
15
+ Returns true for unfinished glob extensions i.e. `(h`, `+(h`.
16
+
17
+ Returns true for unfinished brace expansions as long as they include `,` or `..`.
18
+ */
3
19
  declare function isDynamicPattern(pattern: string, options?: {
4
- caseSensitiveMatch: boolean;
5
- }): boolean;
20
+ caseSensitiveMatch: boolean;
21
+ }): boolean; //#endregion
22
+ //#region src/index.d.ts
6
23
 
24
+ // #endregion
25
+ // #region log
7
26
  interface GlobOptions {
8
- absolute?: boolean;
9
- cwd?: string;
10
- patterns?: string | string[];
11
- ignore?: string | string[];
12
- dot?: boolean;
13
- deep?: number;
14
- followSymbolicLinks?: boolean;
15
- caseSensitiveMatch?: boolean;
16
- expandDirectories?: boolean;
17
- onlyDirectories?: boolean;
18
- onlyFiles?: boolean;
19
- debug?: boolean;
27
+ absolute?: boolean;
28
+ cwd?: string;
29
+ patterns?: string | string[];
30
+ ignore?: string | string[];
31
+ dot?: boolean;
32
+ deep?: number;
33
+ followSymbolicLinks?: boolean;
34
+ caseSensitiveMatch?: boolean;
35
+ expandDirectories?: boolean;
36
+ onlyDirectories?: boolean;
37
+ onlyFiles?: boolean;
38
+ debug?: boolean;
20
39
  }
21
- declare function glob(patterns: string | string[], options?: Omit<GlobOptions, 'patterns'>): Promise<string[]>;
40
+ declare function glob(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): Promise<string[]>;
22
41
  declare function glob(options: GlobOptions): Promise<string[]>;
23
- declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, 'patterns'>): string[];
42
+ declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): string[];
24
43
  declare function globSync(options: GlobOptions): string[];
25
44
 
26
45
  export { convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };