prebundle 1.2.1 → 1.2.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,6 +1,6 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 524: (module1, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 524: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
5
  const fs = __nccwpck_require__(804);
6
6
  const path = __nccwpck_require__(17);
@@ -17,7 +17,7 @@
17
17
  if (opts.preserveTimestamps && process.arch === "ia32") {
18
18
  process.emitWarning(
19
19
  "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" +
20
- " see https://github.com/jprichardson/node-fs-extra/issues/269",
20
+ "\tsee https://github.com/jprichardson/node-fs-extra/issues/269",
21
21
  "Warning",
22
22
  "fs-extra-WARN0002",
23
23
  );
@@ -153,9 +153,9 @@
153
153
  fs.unlinkSync(dest);
154
154
  return fs.symlinkSync(resolvedSrc, dest);
155
155
  }
156
- module1.exports = copySync;
156
+ module.exports = copySync;
157
157
  },
158
- 770: (module1, __unused_webpack_exports, __nccwpck_require__) => {
158
+ 770: (module, __unused_webpack_exports, __nccwpck_require__) => {
159
159
  "use strict";
160
160
  const fs = __nccwpck_require__(845);
161
161
  const path = __nccwpck_require__(17);
@@ -172,7 +172,7 @@
172
172
  if (opts.preserveTimestamps && process.arch === "ia32") {
173
173
  process.emitWarning(
174
174
  "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" +
175
- " see https://github.com/jprichardson/node-fs-extra/issues/269",
175
+ "\tsee https://github.com/jprichardson/node-fs-extra/issues/269",
176
176
  "Warning",
177
177
  "fs-extra-WARN0001",
178
178
  );
@@ -298,17 +298,17 @@
298
298
  await fs.unlink(dest);
299
299
  return fs.symlink(resolvedSrc, dest);
300
300
  }
301
- module1.exports = copy;
301
+ module.exports = copy;
302
302
  },
303
- 852: (module1, __unused_webpack_exports, __nccwpck_require__) => {
303
+ 852: (module, __unused_webpack_exports, __nccwpck_require__) => {
304
304
  "use strict";
305
305
  const u = __nccwpck_require__(59).fromPromise;
306
- module1.exports = {
306
+ module.exports = {
307
307
  copy: u(__nccwpck_require__(770)),
308
308
  copySync: __nccwpck_require__(524),
309
309
  };
310
310
  },
311
- 783: (module1, __unused_webpack_exports, __nccwpck_require__) => {
311
+ 783: (module, __unused_webpack_exports, __nccwpck_require__) => {
312
312
  "use strict";
313
313
  const u = __nccwpck_require__(59).fromPromise;
314
314
  const fs = __nccwpck_require__(845);
@@ -338,14 +338,14 @@
338
338
  remove.removeSync(item);
339
339
  });
340
340
  }
341
- module1.exports = {
341
+ module.exports = {
342
342
  emptyDirSync,
343
343
  emptydirSync: emptyDirSync,
344
344
  emptyDir,
345
345
  emptydir: emptyDir,
346
346
  };
347
347
  },
348
- 530: (module1, __unused_webpack_exports, __nccwpck_require__) => {
348
+ 530: (module, __unused_webpack_exports, __nccwpck_require__) => {
349
349
  "use strict";
350
350
  const u = __nccwpck_require__(59).fromPromise;
351
351
  const path = __nccwpck_require__(17);
@@ -393,14 +393,14 @@
393
393
  }
394
394
  fs.writeFileSync(file, "");
395
395
  }
396
- module1.exports = { createFile: u(createFile), createFileSync };
396
+ module.exports = { createFile: u(createFile), createFileSync };
397
397
  },
398
- 960: (module1, __unused_webpack_exports, __nccwpck_require__) => {
398
+ 960: (module, __unused_webpack_exports, __nccwpck_require__) => {
399
399
  "use strict";
400
400
  const { createFile, createFileSync } = __nccwpck_require__(530);
401
401
  const { createLink, createLinkSync } = __nccwpck_require__(404);
402
402
  const { createSymlink, createSymlinkSync } = __nccwpck_require__(425);
403
- module1.exports = {
403
+ module.exports = {
404
404
  createFile,
405
405
  createFileSync,
406
406
  ensureFile: createFile,
@@ -415,7 +415,7 @@
415
415
  ensureSymlinkSync: createSymlinkSync,
416
416
  };
417
417
  },
418
- 404: (module1, __unused_webpack_exports, __nccwpck_require__) => {
418
+ 404: (module, __unused_webpack_exports, __nccwpck_require__) => {
419
419
  "use strict";
420
420
  const u = __nccwpck_require__(59).fromPromise;
421
421
  const path = __nccwpck_require__(17);
@@ -461,9 +461,9 @@
461
461
  mkdir.mkdirsSync(dir);
462
462
  return fs.linkSync(srcpath, dstpath);
463
463
  }
464
- module1.exports = { createLink: u(createLink), createLinkSync };
464
+ module.exports = { createLink: u(createLink), createLinkSync };
465
465
  },
466
- 687: (module1, __unused_webpack_exports, __nccwpck_require__) => {
466
+ 687: (module, __unused_webpack_exports, __nccwpck_require__) => {
467
467
  "use strict";
468
468
  const path = __nccwpck_require__(17);
469
469
  const fs = __nccwpck_require__(845);
@@ -509,9 +509,9 @@
509
509
  if (!srcExists) throw new Error("relative srcpath does not exist");
510
510
  return { toCwd: srcpath, toDst: path.relative(dstdir, srcpath) };
511
511
  }
512
- module1.exports = { symlinkPaths: u(symlinkPaths), symlinkPathsSync };
512
+ module.exports = { symlinkPaths: u(symlinkPaths), symlinkPathsSync };
513
513
  },
514
- 725: (module1, __unused_webpack_exports, __nccwpck_require__) => {
514
+ 725: (module, __unused_webpack_exports, __nccwpck_require__) => {
515
515
  "use strict";
516
516
  const fs = __nccwpck_require__(845);
517
517
  const u = __nccwpck_require__(59).fromPromise;
@@ -535,9 +535,9 @@
535
535
  }
536
536
  return stats && stats.isDirectory() ? "dir" : "file";
537
537
  }
538
- module1.exports = { symlinkType: u(symlinkType), symlinkTypeSync };
538
+ module.exports = { symlinkType: u(symlinkType), symlinkTypeSync };
539
539
  },
540
- 425: (module1, __unused_webpack_exports, __nccwpck_require__) => {
540
+ 425: (module, __unused_webpack_exports, __nccwpck_require__) => {
541
541
  "use strict";
542
542
  const u = __nccwpck_require__(59).fromPromise;
543
543
  const path = __nccwpck_require__(17);
@@ -587,7 +587,7 @@
587
587
  mkdirsSync(dir);
588
588
  return fs.symlinkSync(srcpath, dstpath, type);
589
589
  }
590
- module1.exports = { createSymlink: u(createSymlink), createSymlinkSync };
590
+ module.exports = { createSymlink: u(createSymlink), createSymlinkSync };
591
591
  },
592
592
  845: (__unused_webpack_module, exports, __nccwpck_require__) => {
593
593
  "use strict";
@@ -628,9 +628,7 @@
628
628
  "unlink",
629
629
  "utimes",
630
630
  "writeFile",
631
- ].filter((key) => {
632
- return typeof fs[key] === "function";
633
- });
631
+ ].filter((key) => typeof fs[key] === "function");
634
632
  Object.assign(exports, fs);
635
633
  api.forEach((method) => {
636
634
  exports[method] = u(fs[method]);
@@ -639,9 +637,7 @@
639
637
  if (typeof callback === "function") {
640
638
  return fs.exists(filename, callback);
641
639
  }
642
- return new Promise((resolve) => {
643
- return fs.exists(filename, resolve);
644
- });
640
+ return new Promise((resolve) => fs.exists(filename, resolve));
645
641
  };
646
642
  exports.read = function (fd, buffer, offset, length, position, callback) {
647
643
  if (typeof callback === "function") {
@@ -704,9 +700,9 @@
704
700
  );
705
701
  }
706
702
  },
707
- 175: (module1, __unused_webpack_exports, __nccwpck_require__) => {
703
+ 175: (module, __unused_webpack_exports, __nccwpck_require__) => {
708
704
  "use strict";
709
- module1.exports = {
705
+ module.exports = {
710
706
  ...__nccwpck_require__(845),
711
707
  ...__nccwpck_require__(852),
712
708
  ...__nccwpck_require__(783),
@@ -719,7 +715,7 @@
719
715
  ...__nccwpck_require__(58),
720
716
  };
721
717
  },
722
- 540: (module1, __unused_webpack_exports, __nccwpck_require__) => {
718
+ 540: (module, __unused_webpack_exports, __nccwpck_require__) => {
723
719
  "use strict";
724
720
  const u = __nccwpck_require__(59).fromPromise;
725
721
  const jsonFile = __nccwpck_require__(869);
@@ -731,19 +727,19 @@
731
727
  jsonFile.writeJSONSync = jsonFile.writeJsonSync;
732
728
  jsonFile.readJSON = jsonFile.readJson;
733
729
  jsonFile.readJSONSync = jsonFile.readJsonSync;
734
- module1.exports = jsonFile;
730
+ module.exports = jsonFile;
735
731
  },
736
- 869: (module1, __unused_webpack_exports, __nccwpck_require__) => {
732
+ 869: (module, __unused_webpack_exports, __nccwpck_require__) => {
737
733
  "use strict";
738
734
  const jsonFile = __nccwpck_require__(449);
739
- module1.exports = {
735
+ module.exports = {
740
736
  readJson: jsonFile.readFile,
741
737
  readJsonSync: jsonFile.readFileSync,
742
738
  writeJson: jsonFile.writeFile,
743
739
  writeJsonSync: jsonFile.writeFileSync,
744
740
  };
745
741
  },
746
- 709: (module1, __unused_webpack_exports, __nccwpck_require__) => {
742
+ 709: (module, __unused_webpack_exports, __nccwpck_require__) => {
747
743
  "use strict";
748
744
  const { stringify } = __nccwpck_require__(213);
749
745
  const { outputFileSync } = __nccwpck_require__(987);
@@ -751,9 +747,9 @@
751
747
  const str = stringify(data, options);
752
748
  outputFileSync(file, str, options);
753
749
  }
754
- module1.exports = outputJsonSync;
750
+ module.exports = outputJsonSync;
755
751
  },
756
- 201: (module1, __unused_webpack_exports, __nccwpck_require__) => {
752
+ 201: (module, __unused_webpack_exports, __nccwpck_require__) => {
757
753
  "use strict";
758
754
  const { stringify } = __nccwpck_require__(213);
759
755
  const { outputFile } = __nccwpck_require__(987);
@@ -761,14 +757,14 @@
761
757
  const str = stringify(data, options);
762
758
  await outputFile(file, str, options);
763
759
  }
764
- module1.exports = outputJson;
760
+ module.exports = outputJson;
765
761
  },
766
- 516: (module1, __unused_webpack_exports, __nccwpck_require__) => {
762
+ 516: (module, __unused_webpack_exports, __nccwpck_require__) => {
767
763
  "use strict";
768
764
  const u = __nccwpck_require__(59).fromPromise;
769
765
  const { makeDir: _makeDir, makeDirSync } = __nccwpck_require__(368);
770
766
  const makeDir = u(_makeDir);
771
- module1.exports = {
767
+ module.exports = {
772
768
  mkdirs: makeDir,
773
769
  mkdirsSync: makeDirSync,
774
770
  mkdirp: makeDir,
@@ -777,7 +773,7 @@
777
773
  ensureDirSync: makeDirSync,
778
774
  };
779
775
  },
780
- 368: (module1, __unused_webpack_exports, __nccwpck_require__) => {
776
+ 368: (module, __unused_webpack_exports, __nccwpck_require__) => {
781
777
  "use strict";
782
778
  const fs = __nccwpck_require__(845);
783
779
  const { checkPath } = __nccwpck_require__(676);
@@ -786,19 +782,19 @@
786
782
  if (typeof options === "number") return options;
787
783
  return { ...defaults, ...options }.mode;
788
784
  };
789
- module1.exports.makeDir = async (dir, options) => {
785
+ module.exports.makeDir = async (dir, options) => {
790
786
  checkPath(dir);
791
787
  return fs.mkdir(dir, { mode: getMode(options), recursive: true });
792
788
  };
793
- module1.exports.makeDirSync = (dir, options) => {
789
+ module.exports.makeDirSync = (dir, options) => {
794
790
  checkPath(dir);
795
791
  return fs.mkdirSync(dir, { mode: getMode(options), recursive: true });
796
792
  };
797
793
  },
798
- 676: (module1, __unused_webpack_exports, __nccwpck_require__) => {
794
+ 676: (module, __unused_webpack_exports, __nccwpck_require__) => {
799
795
  "use strict";
800
796
  const path = __nccwpck_require__(17);
801
- module1.exports.checkPath = function checkPath(pth) {
797
+ module.exports.checkPath = function checkPath(pth) {
802
798
  if (process.platform === "win32") {
803
799
  const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(
804
800
  pth.replace(path.parse(pth).root, ""),
@@ -811,15 +807,15 @@
811
807
  }
812
808
  };
813
809
  },
814
- 135: (module1, __unused_webpack_exports, __nccwpck_require__) => {
810
+ 135: (module, __unused_webpack_exports, __nccwpck_require__) => {
815
811
  "use strict";
816
812
  const u = __nccwpck_require__(59).fromPromise;
817
- module1.exports = {
813
+ module.exports = {
818
814
  move: u(__nccwpck_require__(497)),
819
815
  moveSync: __nccwpck_require__(801),
820
816
  };
821
817
  },
822
- 801: (module1, __unused_webpack_exports, __nccwpck_require__) => {
818
+ 801: (module, __unused_webpack_exports, __nccwpck_require__) => {
823
819
  "use strict";
824
820
  const fs = __nccwpck_require__(804);
825
821
  const path = __nccwpck_require__(17);
@@ -871,9 +867,9 @@
871
867
  copySync(src, dest, opts);
872
868
  return removeSync(src);
873
869
  }
874
- module1.exports = moveSync;
870
+ module.exports = moveSync;
875
871
  },
876
- 497: (module1, __unused_webpack_exports, __nccwpck_require__) => {
872
+ 497: (module, __unused_webpack_exports, __nccwpck_require__) => {
877
873
  "use strict";
878
874
  const fs = __nccwpck_require__(845);
879
875
  const path = __nccwpck_require__(17);
@@ -924,9 +920,9 @@
924
920
  await copy(src, dest, opts);
925
921
  return remove(src);
926
922
  }
927
- module1.exports = move;
923
+ module.exports = move;
928
924
  },
929
- 987: (module1, __unused_webpack_exports, __nccwpck_require__) => {
925
+ 987: (module, __unused_webpack_exports, __nccwpck_require__) => {
930
926
  "use strict";
931
927
  const u = __nccwpck_require__(59).fromPromise;
932
928
  const fs = __nccwpck_require__(845);
@@ -947,9 +943,9 @@
947
943
  }
948
944
  fs.writeFileSync(file, ...args);
949
945
  }
950
- module1.exports = { outputFile: u(outputFile), outputFileSync };
946
+ module.exports = { outputFile: u(outputFile), outputFileSync };
951
947
  },
952
- 667: (module1, __unused_webpack_exports, __nccwpck_require__) => {
948
+ 667: (module, __unused_webpack_exports, __nccwpck_require__) => {
953
949
  "use strict";
954
950
  const u = __nccwpck_require__(59).fromPromise;
955
951
  const fs = __nccwpck_require__(845);
@@ -959,12 +955,12 @@
959
955
  .then(() => true)
960
956
  .catch(() => false);
961
957
  }
962
- module1.exports = {
958
+ module.exports = {
963
959
  pathExists: u(pathExists),
964
960
  pathExistsSync: fs.existsSync,
965
961
  };
966
962
  },
967
- 58: (module1, __unused_webpack_exports, __nccwpck_require__) => {
963
+ 58: (module, __unused_webpack_exports, __nccwpck_require__) => {
968
964
  "use strict";
969
965
  const fs = __nccwpck_require__(804);
970
966
  const u = __nccwpck_require__(59).fromCallback;
@@ -974,9 +970,9 @@
974
970
  function removeSync(path) {
975
971
  fs.rmSync(path, { recursive: true, force: true });
976
972
  }
977
- module1.exports = { remove: u(remove), removeSync };
973
+ module.exports = { remove: u(remove), removeSync };
978
974
  },
979
- 826: (module1, __unused_webpack_exports, __nccwpck_require__) => {
975
+ 826: (module, __unused_webpack_exports, __nccwpck_require__) => {
980
976
  "use strict";
981
977
  const fs = __nccwpck_require__(845);
982
978
  const path = __nccwpck_require__(17);
@@ -1131,7 +1127,7 @@
1131
1127
  function errMsg(src, dest, funcName) {
1132
1128
  return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
1133
1129
  }
1134
- module1.exports = {
1130
+ module.exports = {
1135
1131
  checkPaths: u(checkPaths),
1136
1132
  checkPathsSync,
1137
1133
  checkParentPaths: u(checkParentPaths),
@@ -1140,7 +1136,7 @@
1140
1136
  areIdentical,
1141
1137
  };
1142
1138
  },
1143
- 227: (module1, __unused_webpack_exports, __nccwpck_require__) => {
1139
+ 227: (module, __unused_webpack_exports, __nccwpck_require__) => {
1144
1140
  "use strict";
1145
1141
  const fs = __nccwpck_require__(845);
1146
1142
  const u = __nccwpck_require__(59).fromPromise;
@@ -1165,11 +1161,11 @@
1165
1161
  fs.futimesSync(fd, atime, mtime);
1166
1162
  return fs.closeSync(fd);
1167
1163
  }
1168
- module1.exports = { utimesMillis: u(utimesMillis), utimesMillisSync };
1164
+ module.exports = { utimesMillis: u(utimesMillis), utimesMillisSync };
1169
1165
  },
1170
- 691: (module1) => {
1166
+ 691: (module) => {
1171
1167
  "use strict";
1172
- module1.exports = clone;
1168
+ module.exports = clone;
1173
1169
  var getPrototypeOf =
1174
1170
  Object.getPrototypeOf ||
1175
1171
  function (obj) {
@@ -1190,7 +1186,7 @@
1190
1186
  return copy;
1191
1187
  }
1192
1188
  },
1193
- 804: (module1, __unused_webpack_exports, __nccwpck_require__) => {
1189
+ 804: (module, __unused_webpack_exports, __nccwpck_require__) => {
1194
1190
  var fs = __nccwpck_require__(147);
1195
1191
  var polyfills = __nccwpck_require__(567);
1196
1192
  var legacy = __nccwpck_require__(915);
@@ -1256,9 +1252,9 @@
1256
1252
  if (!global[gracefulQueue]) {
1257
1253
  publishQueue(global, fs[gracefulQueue]);
1258
1254
  }
1259
- module1.exports = patch(clone(fs));
1255
+ module.exports = patch(clone(fs));
1260
1256
  if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
1261
- module1.exports = patch(fs);
1257
+ module.exports = patch(fs);
1262
1258
  fs.__patched = true;
1263
1259
  }
1264
1260
  function patch(fs) {
@@ -1568,11 +1564,11 @@
1568
1564
  }
1569
1565
  }
1570
1566
  },
1571
- 915: (module1, __unused_webpack_exports, __nccwpck_require__) => {
1567
+ 915: (module, __unused_webpack_exports, __nccwpck_require__) => {
1572
1568
  var Stream = __nccwpck_require__(781).Stream;
1573
- module1.exports = legacy;
1569
+ module.exports = legacy;
1574
1570
  function legacy(fs) {
1575
- return { ReadStream: ReadStream, WriteStream: WriteStream };
1571
+ return { ReadStream, WriteStream };
1576
1572
  function ReadStream(path, options) {
1577
1573
  if (!(this instanceof ReadStream))
1578
1574
  return new ReadStream(path, options);
@@ -1665,7 +1661,7 @@
1665
1661
  }
1666
1662
  }
1667
1663
  },
1668
- 567: (module1, __unused_webpack_exports, __nccwpck_require__) => {
1664
+ 567: (module, __unused_webpack_exports, __nccwpck_require__) => {
1669
1665
  var constants = __nccwpck_require__(57);
1670
1666
  var origCwd = process.cwd;
1671
1667
  var cwd = null;
@@ -1685,7 +1681,7 @@
1685
1681
  };
1686
1682
  if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
1687
1683
  }
1688
- module1.exports = patch;
1684
+ module.exports = patch;
1689
1685
  function patch(fs) {
1690
1686
  if (
1691
1687
  constants.hasOwnProperty("O_SYMLINK") &&
@@ -1986,7 +1982,7 @@
1986
1982
  }
1987
1983
  }
1988
1984
  },
1989
- 449: (module1, __unused_webpack_exports, __nccwpck_require__) => {
1985
+ 449: (module, __unused_webpack_exports, __nccwpck_require__) => {
1990
1986
  let _fs;
1991
1987
  try {
1992
1988
  _fs = __nccwpck_require__(804);
@@ -2048,9 +2044,9 @@
2048
2044
  return fs.writeFileSync(file, str, options);
2049
2045
  }
2050
2046
  const jsonfile = { readFile, readFileSync, writeFile, writeFileSync };
2051
- module1.exports = jsonfile;
2047
+ module.exports = jsonfile;
2052
2048
  },
2053
- 213: (module1) => {
2049
+ 213: (module) => {
2054
2050
  function stringify(
2055
2051
  obj,
2056
2052
  { EOL = "\n", finalEOL = true, replacer = null, spaces } = {},
@@ -2063,7 +2059,7 @@
2063
2059
  if (Buffer.isBuffer(content)) content = content.toString("utf8");
2064
2060
  return content.replace(/^\uFEFF/, "");
2065
2061
  }
2066
- module1.exports = { stringify, stripBom };
2062
+ module.exports = { stringify, stripBom };
2067
2063
  },
2068
2064
  59: (__unused_webpack_module, exports) => {
2069
2065
  "use strict";
@@ -2100,29 +2096,29 @@
2100
2096
  );
2101
2097
  };
2102
2098
  },
2103
- 491: (module1) => {
2099
+ 491: (module) => {
2104
2100
  "use strict";
2105
- module1.exports = require("assert");
2101
+ module.exports = require("assert");
2106
2102
  },
2107
- 57: (module1) => {
2103
+ 57: (module) => {
2108
2104
  "use strict";
2109
- module1.exports = require("constants");
2105
+ module.exports = require("constants");
2110
2106
  },
2111
- 147: (module1) => {
2107
+ 147: (module) => {
2112
2108
  "use strict";
2113
- module1.exports = require("fs");
2109
+ module.exports = require("fs");
2114
2110
  },
2115
- 17: (module1) => {
2111
+ 17: (module) => {
2116
2112
  "use strict";
2117
- module1.exports = require("path");
2113
+ module.exports = require("path");
2118
2114
  },
2119
- 781: (module1) => {
2115
+ 781: (module) => {
2120
2116
  "use strict";
2121
- module1.exports = require("stream");
2117
+ module.exports = require("stream");
2122
2118
  },
2123
- 837: (module1) => {
2119
+ 837: (module) => {
2124
2120
  "use strict";
2125
- module1.exports = require("util");
2121
+ module.exports = require("util");
2126
2122
  },
2127
2123
  };
2128
2124
  var __webpack_module_cache__ = {};
@@ -2131,19 +2127,19 @@
2131
2127
  if (cachedModule !== undefined) {
2132
2128
  return cachedModule.exports;
2133
2129
  }
2134
- var module1 = (__webpack_module_cache__[moduleId] = { exports: {} });
2130
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
2135
2131
  var threw = true;
2136
2132
  try {
2137
2133
  __webpack_modules__[moduleId](
2138
- module1,
2139
- module1.exports,
2134
+ module,
2135
+ module.exports,
2140
2136
  __nccwpck_require__,
2141
2137
  );
2142
2138
  threw = false;
2143
2139
  } finally {
2144
2140
  if (threw) delete __webpack_module_cache__[moduleId];
2145
2141
  }
2146
- return module1.exports;
2142
+ return module.exports;
2147
2143
  }
2148
2144
  if (typeof __nccwpck_require__ !== "undefined")
2149
2145
  __nccwpck_require__.ab = __dirname + "/";
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 37: (module1) => {
5
- module1.exports = require("os");
4
+ 37: (module) => {
5
+ module.exports = require("os");
6
6
  },
7
- 282: (module1) => {
8
- module1.exports = require("process");
7
+ 282: (module) => {
8
+ module.exports = require("process");
9
9
  },
10
- 224: (module1) => {
11
- module1.exports = require("tty");
10
+ 224: (module) => {
11
+ module.exports = require("tty");
12
12
  },
13
- 103: (module1, __unused_webpack_exports, __nccwpck_require__) => {
13
+ 103: (module, __unused_webpack_exports, __nccwpck_require__) => {
14
14
  var __create = Object.create;
15
15
  var __defProp = Object.defineProperty;
16
16
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -49,7 +49,7 @@
49
49
  createLogger: () => createLogger,
50
50
  logger: () => logger,
51
51
  });
52
- module1.exports = __toCommonJS(src_exports);
52
+ module.exports = __toCommonJS(src_exports);
53
53
  var import_node_process = __toESM(__nccwpck_require__(282));
54
54
  var import_node_os = __toESM(__nccwpck_require__(37));
55
55
  var import_node_tty = __toESM(__nccwpck_require__(224));
@@ -254,13 +254,13 @@
254
254
  ? start + replaceClose(end, close, replace, nextIndex)
255
255
  : start + end;
256
256
  };
257
- var bold = formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m");
258
- var red = formatter("\x1b[31m", "\x1b[39m");
259
- var green = formatter("\x1b[32m", "\x1b[39m");
260
- var yellow = formatter("\x1b[33m", "\x1b[39m");
261
- var magenta = formatter("\x1b[35m", "\x1b[39m");
262
- var cyan = formatter("\x1b[36m", "\x1b[39m");
263
- var gray = formatter("\x1b[90m", "\x1b[39m");
257
+ var bold = formatter("", "", "");
258
+ var red = formatter("", "");
259
+ var green = formatter("", "");
260
+ var yellow = formatter("", "");
261
+ var magenta = formatter("", "");
262
+ var cyan = formatter("", "");
263
+ var gray = formatter("", "");
264
264
  var startColor = [189, 255, 243];
265
265
  var endColor = [74, 194, 154];
266
266
  var isWord = (char) => !/[\s\n]/.test(char);
@@ -283,7 +283,7 @@
283
283
  g += gStep;
284
284
  b += bStep;
285
285
  }
286
- output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
286
+ output += `[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}`;
287
287
  }
288
288
  return bold(output);
289
289
  };
@@ -320,8 +320,7 @@
320
320
  if (name.startsWith("Error: ")) {
321
321
  name = name.slice(7);
322
322
  }
323
- text = `${name}
324
- ${gray(rest.join("\n"))}`;
323
+ text = `${name}\n${gray(rest.join("\n"))}`;
325
324
  } else {
326
325
  text = message.message;
327
326
  }
@@ -360,19 +359,19 @@ ${gray(rest.join("\n"))}`;
360
359
  if (cachedModule !== undefined) {
361
360
  return cachedModule.exports;
362
361
  }
363
- var module1 = (__webpack_module_cache__[moduleId] = { exports: {} });
362
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
364
363
  var threw = true;
365
364
  try {
366
365
  __webpack_modules__[moduleId](
367
- module1,
368
- module1.exports,
366
+ module,
367
+ module.exports,
369
368
  __nccwpck_require__,
370
369
  );
371
370
  threw = false;
372
371
  } finally {
373
372
  if (threw) delete __webpack_module_cache__[moduleId];
374
373
  }
375
- return module1.exports;
374
+ return module.exports;
376
375
  }
377
376
  if (typeof __nccwpck_require__ !== "undefined")
378
377
  __nccwpck_require__.ab = __dirname + "/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prebundle",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rspack-contrib/prebundle"
@@ -15,14 +15,22 @@
15
15
  "bin.js",
16
16
  "compiled"
17
17
  ],
18
+ "scripts": {
19
+ "build": "rslib build",
20
+ "dev": "rslib build --watch",
21
+ "prebundle": "node ./bin.js",
22
+ "prepublishOnly": "npm run build",
23
+ "bump": "npx bumpp"
24
+ },
18
25
  "dependencies": {
19
- "@swc/core": "^1.6.13",
20
26
  "@vercel/ncc": "0.38.1",
21
27
  "prettier": "^3.2.5",
22
28
  "rollup": "^4.17.1",
23
- "rollup-plugin-dts": "^6.1.0"
29
+ "rollup-plugin-dts": "^6.1.0",
30
+ "terser": "^5.31.2"
24
31
  },
25
32
  "devDependencies": {
33
+ "@rslib/core": "0.0.11",
26
34
  "@types/fs-extra": "^11.0.4",
27
35
  "@types/node": "18.x",
28
36
  "fast-glob": "^3.3.2",
@@ -30,12 +38,10 @@
30
38
  "rslog": "^1.2.2",
31
39
  "typescript": "^5.4.2"
32
40
  },
41
+ "packageManager": "pnpm@9.0.5",
33
42
  "publishConfig": {
34
- "registry": "https://registry.npmjs.org/"
35
- },
36
- "scripts": {
37
- "build": "tsc",
38
- "dev": "tsc --watch",
39
- "prebundle": "node ./bin.js"
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org/",
45
+ "provenance": true
40
46
  }
41
- }
47
+ }
@@ -1,2 +0,0 @@
1
- export = __webpack_exports__;
2
- declare var __webpack_exports__: any;