@storm-software/esbuild 0.52.19 → 0.53.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 (65) hide show
  1. package/README.md +2 -1
  2. package/bin/esbuild.cjs +1 -1
  3. package/dist/assets.cjs +3 -6
  4. package/dist/assets.js +2 -5
  5. package/dist/build.cjs +9 -12
  6. package/dist/build.js +8 -11
  7. package/dist/chunk-3RG5ZIWI.js +10 -0
  8. package/dist/{chunk-FPIJK3XG.cjs → chunk-BXCOVK3I.cjs} +4 -9
  9. package/dist/{chunk-QHLRM4V5.cjs → chunk-CRFWMPZN.cjs} +13 -20
  10. package/dist/{chunk-QIPHFRC4.js → chunk-CZC4I6SL.js} +5 -12
  11. package/dist/{chunk-7RE7ZACR.js → chunk-D4DSKI5N.js} +9 -17
  12. package/dist/{chunk-AFDZZITE.cjs → chunk-DJNFLJSO.cjs} +6 -13
  13. package/dist/chunk-GGNOJ77I.js +0 -0
  14. package/dist/{chunk-GOWYVZG4.js → chunk-MTZGYTJP.js} +3 -10
  15. package/dist/{chunk-5RUFZI6I.cjs → chunk-MYIRPP4C.cjs} +4 -11
  16. package/dist/chunk-OBGZSXTJ.cjs +10 -0
  17. package/dist/{chunk-HYW4BAFZ.cjs → chunk-P3PATQE5.cjs} +19 -27
  18. package/dist/chunk-SFZRYJZ2.cjs +1 -0
  19. package/dist/{chunk-WPDQA5FY.js → chunk-SJ6BFZTX.js} +8 -12
  20. package/dist/{chunk-DUKUFYDF.js → chunk-TTW7MNRE.js} +1 -8
  21. package/dist/chunk-V7AFF6GW.cjs +25 -0
  22. package/dist/{chunk-2OWGB57Y.cjs → chunk-XAUXKCOD.cjs} +21 -25
  23. package/dist/{chunk-E6AGXX4I.js → chunk-XKSMSRQZ.js} +2 -7
  24. package/dist/chunk-ZH5YCT67.js +25 -0
  25. package/dist/clean.cjs +3 -4
  26. package/dist/clean.js +2 -3
  27. package/dist/config.cjs +3 -6
  28. package/dist/config.js +2 -5
  29. package/dist/context.cjs +4 -7
  30. package/dist/context.js +3 -6
  31. package/dist/index.cjs +10 -18
  32. package/dist/index.js +9 -17
  33. package/dist/package-json.cjs +3 -6
  34. package/dist/package-json.js +2 -5
  35. package/dist/plugins/deps-check.cjs +6 -8
  36. package/dist/plugins/deps-check.js +6 -8
  37. package/dist/plugins/resolve-paths.cjs +12 -38
  38. package/dist/plugins/resolve-paths.js +4 -30
  39. package/dist/tsup.cjs +3 -5
  40. package/dist/tsup.js +2 -4
  41. package/dist/types.cjs +1 -2
  42. package/dist/types.js +1 -2
  43. package/dist/watch.cjs +5 -9
  44. package/dist/watch.js +4 -8
  45. package/package.json +7 -7
  46. package/assets/cjs_shims.js +0 -11
  47. package/assets/esm_shims.js +0 -9
  48. package/dist/chunk-3F47E3CC.js +0 -2718
  49. package/dist/chunk-3K6UVBCV.js +0 -135
  50. package/dist/chunk-4ZXSQJXL.cjs +0 -2687
  51. package/dist/chunk-AU3V4AYC.cjs +0 -135
  52. package/dist/chunk-BM3ARHU6.cjs +0 -325
  53. package/dist/chunk-BYH4XDRH.cjs +0 -6
  54. package/dist/chunk-E327PFHD.js +0 -54
  55. package/dist/chunk-GZSSIGNC.cjs +0 -153
  56. package/dist/chunk-ICZAYSVN.js +0 -325
  57. package/dist/chunk-JZ25TPTY.cjs +0 -42
  58. package/dist/chunk-O53NX6NM.cjs +0 -6
  59. package/dist/chunk-TWFEYLU4.cjs +0 -352
  60. package/dist/chunk-UFQVX6NZ.js +0 -1906
  61. package/dist/chunk-UIKQCOC2.cjs +0 -1906
  62. package/dist/chunk-UIWBVEQL.js +0 -6
  63. package/dist/chunk-VGC3FXLU.cjs +0 -203
  64. package/dist/chunk-WWBRFML4.cjs +0 -47
  65. package/dist/rollup.cjs +0 -6906
@@ -1,135 +0,0 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-E327PFHD.js";
4
-
5
- // ../config-tools/src/utilities/correct-paths.ts
6
- init_esm_shims();
7
- var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
8
- function normalizeWindowsPath(input = "") {
9
- if (!input) {
10
- return input;
11
- }
12
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
13
- }
14
- var _UNC_REGEX = /^[/\\]{2}/;
15
- var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
16
- var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
17
- var correctPaths = function(path) {
18
- if (!path || path.length === 0) {
19
- return ".";
20
- }
21
- path = normalizeWindowsPath(path);
22
- const isUNCPath = path?.match(_UNC_REGEX);
23
- const isPathAbsolute = isAbsolute(path);
24
- const trailingSeparator = path[path.length - 1] === "/";
25
- path = normalizeString(path, !isPathAbsolute);
26
- if (path.length === 0) {
27
- if (isPathAbsolute) {
28
- return "/";
29
- }
30
- return trailingSeparator ? "./" : ".";
31
- }
32
- if (trailingSeparator) {
33
- path += "/";
34
- }
35
- if (_DRIVE_LETTER_RE.test(path)) {
36
- path += "/";
37
- }
38
- if (isUNCPath) {
39
- if (!isPathAbsolute) {
40
- return `//./${path}`;
41
- }
42
- return `//${path}`;
43
- }
44
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
45
- };
46
- var joinPaths = function(...segments) {
47
- let path = "";
48
- for (const seg of segments) {
49
- if (!seg) {
50
- continue;
51
- }
52
- if (path.length > 0) {
53
- const pathTrailing = path[path.length - 1] === "/";
54
- const segLeading = seg[0] === "/";
55
- const both = pathTrailing && segLeading;
56
- if (both) {
57
- path += seg.slice(1);
58
- } else {
59
- path += pathTrailing || segLeading ? seg : `/${seg}`;
60
- }
61
- } else {
62
- path += seg;
63
- }
64
- }
65
- return correctPaths(path);
66
- };
67
- function normalizeString(path, allowAboveRoot) {
68
- let res = "";
69
- let lastSegmentLength = 0;
70
- let lastSlash = -1;
71
- let dots = 0;
72
- let char = null;
73
- for (let index = 0; index <= path.length; ++index) {
74
- if (index < path.length) {
75
- char = path[index];
76
- } else if (char === "/") {
77
- break;
78
- } else {
79
- char = "/";
80
- }
81
- if (char === "/") {
82
- if (lastSlash === index - 1 || dots === 1) {
83
- } else if (dots === 2) {
84
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
85
- if (res.length > 2) {
86
- const lastSlashIndex = res.lastIndexOf("/");
87
- if (lastSlashIndex === -1) {
88
- res = "";
89
- lastSegmentLength = 0;
90
- } else {
91
- res = res.slice(0, lastSlashIndex);
92
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
93
- }
94
- lastSlash = index;
95
- dots = 0;
96
- continue;
97
- } else if (res.length > 0) {
98
- res = "";
99
- lastSegmentLength = 0;
100
- lastSlash = index;
101
- dots = 0;
102
- continue;
103
- }
104
- }
105
- if (allowAboveRoot) {
106
- res += res.length > 0 ? "/.." : "..";
107
- lastSegmentLength = 2;
108
- }
109
- } else {
110
- if (res.length > 0) {
111
- res += `/${path.slice(lastSlash + 1, index)}`;
112
- } else {
113
- res = path.slice(lastSlash + 1, index);
114
- }
115
- lastSegmentLength = index - lastSlash - 1;
116
- }
117
- lastSlash = index;
118
- dots = 0;
119
- } else if (char === "." && dots !== -1) {
120
- ++dots;
121
- } else {
122
- dots = -1;
123
- }
124
- }
125
- return res;
126
- }
127
- var isAbsolute = function(p) {
128
- return _IS_ABSOLUTE_RE.test(p);
129
- };
130
-
131
- export {
132
- normalizeWindowsPath,
133
- correctPaths,
134
- joinPaths
135
- };