esbuild 0.13.3 → 0.13.4

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 (4) hide show
  1. package/bin/esbuild +29 -21
  2. package/install.js +179 -36
  3. package/lib/main.js +36 -28
  4. package/package.json +17 -17
package/bin/esbuild CHANGED
@@ -43,40 +43,48 @@ var knownUnixlikePackages = {
43
43
  "linux x64 LE": "esbuild-linux-64",
44
44
  "sunos x64 LE": "esbuild-sunos-64"
45
45
  };
46
- function binPathForCurrentPlatform() {
46
+ function pkgAndSubpathForCurrentPlatform() {
47
47
  let pkg;
48
- let bin;
48
+ let subpath;
49
49
  let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
50
50
  if (platformKey in knownWindowsPackages) {
51
51
  pkg = knownWindowsPackages[platformKey];
52
- bin = `${pkg}/esbuild.exe`;
52
+ subpath = "esbuild.exe";
53
53
  } else if (platformKey in knownUnixlikePackages) {
54
54
  pkg = knownUnixlikePackages[platformKey];
55
- bin = `${pkg}/bin/esbuild`;
55
+ subpath = "bin/esbuild";
56
56
  } else {
57
57
  throw new Error(`Unsupported platform: ${platformKey}`);
58
58
  }
59
+ return { pkg, subpath };
60
+ }
61
+ function downloadedBinPath(pkg, subpath) {
62
+ const esbuildLibDir = path.dirname(require.resolve("esbuild"));
63
+ return path.join(esbuildLibDir, `downloaded-${pkg}-${path.basename(subpath)}`);
64
+ }
65
+ function generateBinPath() {
66
+ if (ESBUILD_BINARY_PATH) {
67
+ return ESBUILD_BINARY_PATH;
68
+ }
69
+ const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
70
+ let binPath;
59
71
  try {
60
- bin = require.resolve(bin);
72
+ binPath = require.resolve(`${pkg}/${subpath}`);
61
73
  } catch (e) {
62
- try {
63
- require.resolve(pkg);
64
- } catch (e2) {
65
- throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
74
+ binPath = downloadedBinPath(pkg, subpath);
75
+ if (!fs.existsSync(binPath)) {
76
+ try {
77
+ require.resolve(pkg);
78
+ } catch (e2) {
79
+ throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
66
80
 
67
81
  If you are installing esbuild with npm, make sure that you don't specify the
68
82
  "--no-optional" flag. The "optionalDependencies" package.json feature is used
69
83
  by esbuild to install the correct binary executable for your current platform.`);
84
+ }
85
+ throw e;
70
86
  }
71
- throw e;
72
- }
73
- return bin;
74
- }
75
- function extractedBinPath() {
76
- if (ESBUILD_BINARY_PATH) {
77
- return ESBUILD_BINARY_PATH;
78
87
  }
79
- const bin = binPathForCurrentPlatform();
80
88
  let isYarnPnP = false;
81
89
  try {
82
90
  require("pnpapi");
@@ -85,15 +93,15 @@ function extractedBinPath() {
85
93
  }
86
94
  if (isYarnPnP) {
87
95
  const esbuildLibDir = path.dirname(require.resolve("esbuild"));
88
- const binTargetPath = path.join(esbuildLibDir, "yarn-pnp-" + path.basename(bin));
96
+ const binTargetPath = path.join(esbuildLibDir, `pnpapi-${pkg}-${path.basename(subpath)}`);
89
97
  if (!fs.existsSync(binTargetPath)) {
90
- fs.copyFileSync(bin, binTargetPath);
98
+ fs.copyFileSync(binPath, binTargetPath);
91
99
  fs.chmodSync(binTargetPath, 493);
92
100
  }
93
101
  return binTargetPath;
94
102
  }
95
- return bin;
103
+ return binPath;
96
104
  }
97
105
 
98
106
  // lib/npm/node-shim.ts
99
- require("child_process").execFileSync(extractedBinPath(), process.argv.slice(2), { stdio: "inherit" });
107
+ require("child_process").execFileSync(generateBinPath(), process.argv.slice(2), { stdio: "inherit" });
package/install.js CHANGED
@@ -1,3 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
+ var __reExport = (target, module2, desc) => {
26
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
27
+ for (let key of __getOwnPropNames(module2))
28
+ if (!__hasOwnProp.call(target, key) && key !== "default")
29
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
30
+ }
31
+ return target;
32
+ };
33
+ var __toModule = (module2) => {
34
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
35
+ };
36
+
1
37
  // lib/npm/node-platform.ts
2
38
  var fs = require("fs");
3
39
  var os = require("os");
@@ -23,61 +59,118 @@ var knownUnixlikePackages = {
23
59
  "linux x64 LE": "esbuild-linux-64",
24
60
  "sunos x64 LE": "esbuild-sunos-64"
25
61
  };
26
- function binPathForCurrentPlatform() {
62
+ function pkgAndSubpathForCurrentPlatform() {
27
63
  let pkg;
28
- let bin;
64
+ let subpath;
29
65
  let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
30
66
  if (platformKey in knownWindowsPackages) {
31
67
  pkg = knownWindowsPackages[platformKey];
32
- bin = `${pkg}/esbuild.exe`;
68
+ subpath = "esbuild.exe";
33
69
  } else if (platformKey in knownUnixlikePackages) {
34
70
  pkg = knownUnixlikePackages[platformKey];
35
- bin = `${pkg}/bin/esbuild`;
71
+ subpath = "bin/esbuild";
36
72
  } else {
37
73
  throw new Error(`Unsupported platform: ${platformKey}`);
38
74
  }
39
- try {
40
- bin = require.resolve(bin);
41
- } catch (e) {
42
- try {
43
- require.resolve(pkg);
44
- } catch (e2) {
45
- throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
46
-
47
- If you are installing esbuild with npm, make sure that you don't specify the
48
- "--no-optional" flag. The "optionalDependencies" package.json feature is used
49
- by esbuild to install the correct binary executable for your current platform.`);
50
- }
51
- throw e;
52
- }
53
- return bin;
75
+ return { pkg, subpath };
76
+ }
77
+ function downloadedBinPath(pkg, subpath) {
78
+ const esbuildLibDir = path.dirname(require.resolve("esbuild"));
79
+ return path.join(esbuildLibDir, `downloaded-${pkg}-${path.basename(subpath)}`);
54
80
  }
55
81
 
56
82
  // lib/npm/node-install.ts
57
83
  var fs2 = require("fs");
58
84
  var os2 = require("os");
59
85
  var path2 = require("path");
86
+ var zlib = require("zlib");
87
+ var https = require("https");
60
88
  var child_process = require("child_process");
61
89
  var toPath = path2.join(__dirname, "bin", "esbuild");
90
+ var isToPathJS = true;
62
91
  function validateBinaryVersion(...command) {
63
92
  command.push("--version");
64
93
  const stdout = child_process.execFileSync(command.shift(), command).toString().trim();
65
- if (stdout !== "0.13.3") {
66
- throw new Error(`Expected ${JSON.stringify("0.13.3")} but got ${JSON.stringify(stdout)}`);
94
+ if (stdout !== "0.13.4") {
95
+ throw new Error(`Expected ${JSON.stringify("0.13.4")} but got ${JSON.stringify(stdout)}`);
67
96
  }
68
97
  }
69
- function isYarn2OrAbove() {
98
+ function isYarn() {
70
99
  const { npm_config_user_agent } = process.env;
71
100
  if (npm_config_user_agent) {
72
- const match = npm_config_user_agent.match(/yarn\/(\d+)/);
73
- if (match && match[1]) {
74
- return parseInt(match[1], 10) >= 2;
75
- }
101
+ return /\byarn\//.test(npm_config_user_agent);
76
102
  }
77
103
  return false;
78
104
  }
79
- if (process.env.ESBUILD_BINARY_PATH) {
80
- const pathString = JSON.stringify(process.env.ESBUILD_BINARY_PATH);
105
+ function fetch(url) {
106
+ return new Promise((resolve, reject) => {
107
+ https.get(url, (res) => {
108
+ if ((res.statusCode === 301 || res.statusCode === 302) && res.headers.location)
109
+ return fetch(res.headers.location).then(resolve, reject);
110
+ if (res.statusCode !== 200)
111
+ return reject(new Error(`Server responded with ${res.statusCode}`));
112
+ let chunks = [];
113
+ res.on("data", (chunk) => chunks.push(chunk));
114
+ res.on("end", () => resolve(Buffer.concat(chunks)));
115
+ }).on("error", reject);
116
+ });
117
+ }
118
+ function extractFileFromTarGzip(buffer, subpath) {
119
+ try {
120
+ buffer = zlib.unzipSync(buffer);
121
+ } catch (err) {
122
+ throw new Error(`Invalid gzip data in archive: ${err && err.message || err}`);
123
+ }
124
+ let str = (i, n) => String.fromCharCode(...buffer.subarray(i, i + n)).replace(/\0.*$/, "");
125
+ let offset = 0;
126
+ subpath = `package/${subpath}`;
127
+ while (offset < buffer.length) {
128
+ let name = str(offset, 100);
129
+ let size = parseInt(str(offset + 124, 12), 8);
130
+ offset += 512;
131
+ if (!isNaN(size)) {
132
+ if (name === subpath)
133
+ return buffer.subarray(offset, offset + size);
134
+ offset += size + 511 & ~511;
135
+ }
136
+ }
137
+ throw new Error(`Could not find ${JSON.stringify(subpath)} in archive`);
138
+ }
139
+ function installUsingNPM(pkg, subpath, binPath) {
140
+ const env = __spreadProps(__spreadValues({}, process.env), { npm_config_global: void 0 });
141
+ const esbuildLibDir = path2.dirname(require.resolve("esbuild"));
142
+ const installDir = path2.join(esbuildLibDir, "npm-install");
143
+ fs2.mkdirSync(installDir);
144
+ try {
145
+ fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
146
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.13.4"}`, { cwd: installDir, stdio: "pipe", env });
147
+ const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
148
+ fs2.renameSync(installedBinPath, binPath);
149
+ } finally {
150
+ try {
151
+ removeRecursive(installDir);
152
+ } catch (e) {
153
+ }
154
+ }
155
+ }
156
+ function removeRecursive(dir) {
157
+ for (const entry of fs2.readdirSync(dir)) {
158
+ const entryPath = path2.join(dir, entry);
159
+ let stats;
160
+ try {
161
+ stats = fs2.lstatSync(entryPath);
162
+ } catch (e) {
163
+ continue;
164
+ }
165
+ if (stats.isDirectory())
166
+ removeRecursive(entryPath);
167
+ else
168
+ fs2.unlinkSync(entryPath);
169
+ }
170
+ fs2.rmdirSync(dir);
171
+ }
172
+ function applyManualBinaryPathOverride(overridePath) {
173
+ const pathString = JSON.stringify(overridePath);
81
174
  fs2.writeFileSync(toPath, `#!/usr/bin/env node
82
175
  require('child_process').execFileSync(${pathString}, process.argv.slice(2), { stdio: 'inherit' });
83
176
  `);
@@ -85,15 +178,65 @@ require('child_process').execFileSync(${pathString}, process.argv.slice(2), { st
85
178
  const code = fs2.readFileSync(libMain, "utf8");
86
179
  fs2.writeFileSync(libMain, `var ESBUILD_BINARY_PATH = ${pathString};
87
180
  ${code}`);
88
- validateBinaryVersion("node", toPath);
89
- } else if (os2.platform() !== "win32" && !isYarn2OrAbove()) {
90
- const bin = binPathForCurrentPlatform();
181
+ }
182
+ function maybeOptimizePackage(binPath) {
183
+ if (os2.platform() !== "win32" && !isYarn()) {
184
+ const tempPath = path2.join(__dirname, "bin-esbuild");
185
+ try {
186
+ fs2.linkSync(binPath, tempPath);
187
+ fs2.renameSync(tempPath, toPath);
188
+ isToPathJS = false;
189
+ } catch (e) {
190
+ }
191
+ }
192
+ }
193
+ async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
194
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.13.4"}.tgz`;
195
+ console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
196
+ try {
197
+ fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
198
+ fs2.chmodSync(binPath, 493);
199
+ } catch (e) {
200
+ console.error(`[esbuild] Failed to download ${JSON.stringify(url)}: ${e && e.message || e}`);
201
+ throw e;
202
+ }
203
+ }
204
+ async function checkAndPreparePackage() {
205
+ if (process.env.ESBUILD_BINARY_PATH) {
206
+ applyManualBinaryPathOverride(process.env.ESBUILD_BINARY_PATH);
207
+ return;
208
+ }
209
+ const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
210
+ let binPath;
91
211
  try {
92
- fs2.unlinkSync(toPath);
93
- fs2.linkSync(bin, toPath);
212
+ binPath = require.resolve(`${pkg}/${subpath}`);
94
213
  } catch (e) {
214
+ console.error(`[esbuild] Failed to find package "${pkg}" on the file system
215
+
216
+ This can happen if you use the "--no-optional" flag. The "optionalDependencies"
217
+ package.json feature is used by esbuild to install the correct binary executable
218
+ for your current platform. This install script will now attempt to work around
219
+ this. If that fails, you need to remove the "--no-optional" flag to use esbuild.
220
+ `);
221
+ binPath = downloadedBinPath(pkg, subpath);
222
+ try {
223
+ console.error(`[esbuild] Trying to install package "${pkg}" using npm`);
224
+ installUsingNPM(pkg, subpath, binPath);
225
+ } catch (e2) {
226
+ console.error(`[esbuild] Failed to install package "${pkg}" using npm: ${e2 && e2.message || e2}`);
227
+ try {
228
+ await downloadDirectlyFromNPM(pkg, subpath, binPath);
229
+ } catch (e3) {
230
+ throw new Error(`Failed to install package "${pkg}"`);
231
+ }
232
+ }
95
233
  }
96
- validateBinaryVersion(toPath);
97
- } else {
98
- validateBinaryVersion("node", toPath);
234
+ maybeOptimizePackage(binPath);
99
235
  }
236
+ checkAndPreparePackage().then(() => {
237
+ if (isToPathJS) {
238
+ validateBinaryVersion("node", toPath);
239
+ } else {
240
+ validateBinaryVersion(toPath);
241
+ }
242
+ });
package/lib/main.js CHANGED
@@ -709,8 +709,8 @@ function createChannel(streamIn) {
709
709
  if (isFirstPacket) {
710
710
  isFirstPacket = false;
711
711
  let binaryVersion = String.fromCharCode(...bytes);
712
- if (binaryVersion !== "0.13.3") {
713
- throw new Error(`Cannot start service: Host version "${"0.13.3"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
712
+ if (binaryVersion !== "0.13.4") {
713
+ throw new Error(`Cannot start service: Host version "${"0.13.4"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
714
714
  }
715
715
  return;
716
716
  }
@@ -1606,40 +1606,48 @@ var knownUnixlikePackages = {
1606
1606
  "linux x64 LE": "esbuild-linux-64",
1607
1607
  "sunos x64 LE": "esbuild-sunos-64"
1608
1608
  };
1609
- function binPathForCurrentPlatform() {
1609
+ function pkgAndSubpathForCurrentPlatform() {
1610
1610
  let pkg;
1611
- let bin;
1611
+ let subpath;
1612
1612
  let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
1613
1613
  if (platformKey in knownWindowsPackages) {
1614
1614
  pkg = knownWindowsPackages[platformKey];
1615
- bin = `${pkg}/esbuild.exe`;
1615
+ subpath = "esbuild.exe";
1616
1616
  } else if (platformKey in knownUnixlikePackages) {
1617
1617
  pkg = knownUnixlikePackages[platformKey];
1618
- bin = `${pkg}/bin/esbuild`;
1618
+ subpath = "bin/esbuild";
1619
1619
  } else {
1620
1620
  throw new Error(`Unsupported platform: ${platformKey}`);
1621
1621
  }
1622
+ return { pkg, subpath };
1623
+ }
1624
+ function downloadedBinPath(pkg, subpath) {
1625
+ const esbuildLibDir = path.dirname(require.resolve("esbuild"));
1626
+ return path.join(esbuildLibDir, `downloaded-${pkg}-${path.basename(subpath)}`);
1627
+ }
1628
+ function generateBinPath() {
1629
+ if (ESBUILD_BINARY_PATH) {
1630
+ return ESBUILD_BINARY_PATH;
1631
+ }
1632
+ const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
1633
+ let binPath;
1622
1634
  try {
1623
- bin = require.resolve(bin);
1635
+ binPath = require.resolve(`${pkg}/${subpath}`);
1624
1636
  } catch (e) {
1625
- try {
1626
- require.resolve(pkg);
1627
- } catch (e2) {
1628
- throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
1637
+ binPath = downloadedBinPath(pkg, subpath);
1638
+ if (!fs.existsSync(binPath)) {
1639
+ try {
1640
+ require.resolve(pkg);
1641
+ } catch (e2) {
1642
+ throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
1629
1643
 
1630
1644
  If you are installing esbuild with npm, make sure that you don't specify the
1631
1645
  "--no-optional" flag. The "optionalDependencies" package.json feature is used
1632
1646
  by esbuild to install the correct binary executable for your current platform.`);
1647
+ }
1648
+ throw e;
1633
1649
  }
1634
- throw e;
1635
- }
1636
- return bin;
1637
- }
1638
- function extractedBinPath() {
1639
- if (ESBUILD_BINARY_PATH) {
1640
- return ESBUILD_BINARY_PATH;
1641
1650
  }
1642
- const bin = binPathForCurrentPlatform();
1643
1651
  let isYarnPnP = false;
1644
1652
  try {
1645
1653
  require("pnpapi");
@@ -1648,14 +1656,14 @@ function extractedBinPath() {
1648
1656
  }
1649
1657
  if (isYarnPnP) {
1650
1658
  const esbuildLibDir = path.dirname(require.resolve("esbuild"));
1651
- const binTargetPath = path.join(esbuildLibDir, "yarn-pnp-" + path.basename(bin));
1659
+ const binTargetPath = path.join(esbuildLibDir, `pnpapi-${pkg}-${path.basename(subpath)}`);
1652
1660
  if (!fs.existsSync(binTargetPath)) {
1653
- fs.copyFileSync(bin, binTargetPath);
1661
+ fs.copyFileSync(binPath, binTargetPath);
1654
1662
  fs.chmodSync(binTargetPath, 493);
1655
1663
  }
1656
1664
  return binTargetPath;
1657
1665
  }
1658
- return bin;
1666
+ return binPath;
1659
1667
  }
1660
1668
 
1661
1669
  // lib/npm/node.ts
@@ -1677,7 +1685,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1677
1685
  }
1678
1686
  }
1679
1687
  var _a;
1680
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.13.3";
1688
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.13.4";
1681
1689
  var esbuildCommandAndArgs = () => {
1682
1690
  if (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib") {
1683
1691
  throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
@@ -1687,7 +1695,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
1687
1695
  if (false) {
1688
1696
  return ["node", [path2.join(__dirname, "..", "bin", "esbuild")]];
1689
1697
  }
1690
- return [extractedBinPath(), []];
1698
+ return [generateBinPath(), []];
1691
1699
  };
1692
1700
  var isTTY = () => tty.isatty(2);
1693
1701
  var fsSync = {
@@ -1736,7 +1744,7 @@ var fsAsync = {
1736
1744
  }
1737
1745
  }
1738
1746
  };
1739
- var version = "0.13.3";
1747
+ var version = "0.13.4";
1740
1748
  var build = (options) => ensureServiceIsRunning().build(options);
1741
1749
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1742
1750
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1845,7 +1853,7 @@ var ensureServiceIsRunning = () => {
1845
1853
  if (longLivedService)
1846
1854
  return longLivedService;
1847
1855
  let [command, args] = esbuildCommandAndArgs();
1848
- let child = child_process.spawn(command, args.concat(`--service=${"0.13.3"}`, "--ping"), {
1856
+ let child = child_process.spawn(command, args.concat(`--service=${"0.13.4"}`, "--ping"), {
1849
1857
  windowsHide: true,
1850
1858
  stdio: ["pipe", "pipe", "inherit"],
1851
1859
  cwd: defaultWD
@@ -1952,7 +1960,7 @@ var runServiceSync = (callback) => {
1952
1960
  isBrowser: false
1953
1961
  });
1954
1962
  callback(service);
1955
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.13.3"}`), {
1963
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.13.4"}`), {
1956
1964
  cwd: defaultWD,
1957
1965
  windowsHide: true,
1958
1966
  input: stdin,
@@ -1968,7 +1976,7 @@ var workerThreadService = null;
1968
1976
  var startWorkerThreadService = (worker_threads2) => {
1969
1977
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1970
1978
  let worker = new worker_threads2.Worker(__filename, {
1971
- workerData: { workerPort, defaultWD, esbuildVersion: "0.13.3" },
1979
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.13.4" },
1972
1980
  transferList: [workerPort],
1973
1981
  execArgv: []
1974
1982
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -12,22 +12,22 @@
12
12
  "esbuild": "bin/esbuild"
13
13
  },
14
14
  "optionalDependencies": {
15
- "esbuild-android-arm64": "0.13.3",
16
- "esbuild-darwin-64": "0.13.3",
17
- "esbuild-darwin-arm64": "0.13.3",
18
- "esbuild-freebsd-64": "0.13.3",
19
- "esbuild-freebsd-arm64": "0.13.3",
20
- "esbuild-linux-32": "0.13.3",
21
- "esbuild-linux-64": "0.13.3",
22
- "esbuild-linux-arm": "0.13.3",
23
- "esbuild-linux-arm64": "0.13.3",
24
- "esbuild-linux-mips64le": "0.13.3",
25
- "esbuild-linux-ppc64le": "0.13.3",
26
- "esbuild-openbsd-64": "0.13.3",
27
- "esbuild-sunos-64": "0.13.3",
28
- "esbuild-windows-32": "0.13.3",
29
- "esbuild-windows-64": "0.13.3",
30
- "esbuild-windows-arm64": "0.13.3"
15
+ "esbuild-android-arm64": "0.13.4",
16
+ "esbuild-darwin-64": "0.13.4",
17
+ "esbuild-darwin-arm64": "0.13.4",
18
+ "esbuild-freebsd-64": "0.13.4",
19
+ "esbuild-freebsd-arm64": "0.13.4",
20
+ "esbuild-linux-32": "0.13.4",
21
+ "esbuild-linux-64": "0.13.4",
22
+ "esbuild-linux-arm": "0.13.4",
23
+ "esbuild-linux-arm64": "0.13.4",
24
+ "esbuild-linux-mips64le": "0.13.4",
25
+ "esbuild-linux-ppc64le": "0.13.4",
26
+ "esbuild-openbsd-64": "0.13.4",
27
+ "esbuild-sunos-64": "0.13.4",
28
+ "esbuild-windows-32": "0.13.4",
29
+ "esbuild-windows-64": "0.13.4",
30
+ "esbuild-windows-arm64": "0.13.4"
31
31
  },
32
32
  "license": "MIT"
33
33
  }