esbuild 0.19.6 → 0.19.7

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.
package/bin/esbuild CHANGED
@@ -199,7 +199,7 @@ for your current platform.`);
199
199
  "node_modules",
200
200
  ".cache",
201
201
  "esbuild",
202
- `pnpapi-${pkg.replace("/", "-")}-${"0.19.6"}-${path.basename(subpath)}`
202
+ `pnpapi-${pkg.replace("/", "-")}-${"0.19.7"}-${path.basename(subpath)}`
203
203
  );
204
204
  if (!fs.existsSync(binTargetPath)) {
205
205
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
package/lib/main.d.ts CHANGED
@@ -425,6 +425,7 @@ export interface OnLoadArgs {
425
425
  namespace: string
426
426
  suffix: string
427
427
  pluginData: any
428
+ with: Record<string, string>
428
429
  }
429
430
 
430
431
  /** Documentation: https://esbuild.github.io/plugins/#on-load-results */
@@ -467,8 +468,10 @@ export interface Metafile {
467
468
  kind: ImportKind
468
469
  external?: boolean
469
470
  original?: string
471
+ with?: Record<string, string>
470
472
  }[]
471
473
  format?: 'cjs' | 'esm'
474
+ with?: Record<string, string>
472
475
  }
473
476
  }
474
477
  outputs: {
package/lib/main.js CHANGED
@@ -746,8 +746,8 @@ function createChannel(streamIn) {
746
746
  if (isFirstPacket) {
747
747
  isFirstPacket = false;
748
748
  let binaryVersion = String.fromCharCode(...bytes);
749
- if (binaryVersion !== "0.19.6") {
750
- throw new Error(`Cannot start service: Host version "${"0.19.6"}" does not match binary version ${quote(binaryVersion)}`);
749
+ if (binaryVersion !== "0.19.7") {
750
+ throw new Error(`Cannot start service: Host version "${"0.19.7"}" does not match binary version ${quote(binaryVersion)}`);
751
751
  }
752
752
  return;
753
753
  }
@@ -1435,7 +1435,8 @@ var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn,
1435
1435
  path: request.path,
1436
1436
  namespace: request.namespace,
1437
1437
  suffix: request.suffix,
1438
- pluginData: details.load(request.pluginData)
1438
+ pluginData: details.load(request.pluginData),
1439
+ with: request.with
1439
1440
  });
1440
1441
  if (result != null) {
1441
1442
  if (typeof result !== "object")
@@ -1938,7 +1939,7 @@ for your current platform.`);
1938
1939
  "node_modules",
1939
1940
  ".cache",
1940
1941
  "esbuild",
1941
- `pnpapi-${pkg.replace("/", "-")}-${"0.19.6"}-${path.basename(subpath)}`
1942
+ `pnpapi-${pkg.replace("/", "-")}-${"0.19.7"}-${path.basename(subpath)}`
1942
1943
  );
1943
1944
  if (!fs.existsSync(binTargetPath)) {
1944
1945
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1973,7 +1974,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1973
1974
  }
1974
1975
  }
1975
1976
  var _a;
1976
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.19.6";
1977
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.19.7";
1977
1978
  var esbuildCommandAndArgs = () => {
1978
1979
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1979
1980
  throw new Error(
@@ -2040,7 +2041,7 @@ var fsAsync = {
2040
2041
  }
2041
2042
  }
2042
2043
  };
2043
- var version = "0.19.6";
2044
+ var version = "0.19.7";
2044
2045
  var build = (options) => ensureServiceIsRunning().build(options);
2045
2046
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2046
2047
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2150,7 +2151,7 @@ var ensureServiceIsRunning = () => {
2150
2151
  if (longLivedService)
2151
2152
  return longLivedService;
2152
2153
  let [command, args] = esbuildCommandAndArgs();
2153
- let child = child_process.spawn(command, args.concat(`--service=${"0.19.6"}`, "--ping"), {
2154
+ let child = child_process.spawn(command, args.concat(`--service=${"0.19.7"}`, "--ping"), {
2154
2155
  windowsHide: true,
2155
2156
  stdio: ["pipe", "pipe", "inherit"],
2156
2157
  cwd: defaultWD
@@ -2250,7 +2251,7 @@ var runServiceSync = (callback) => {
2250
2251
  esbuild: node_exports
2251
2252
  });
2252
2253
  callback(service);
2253
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.19.6"}`), {
2254
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.19.7"}`), {
2254
2255
  cwd: defaultWD,
2255
2256
  windowsHide: true,
2256
2257
  input: stdin,
@@ -2270,7 +2271,7 @@ var workerThreadService = null;
2270
2271
  var startWorkerThreadService = (worker_threads2) => {
2271
2272
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2272
2273
  let worker = new worker_threads2.Worker(__filename, {
2273
- workerData: { workerPort, defaultWD, esbuildVersion: "0.19.6" },
2274
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.19.7" },
2274
2275
  transferList: [workerPort],
2275
2276
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2276
2277
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.19.6",
3
+ "version": "0.19.7",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,28 +15,28 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@esbuild/android-arm": "0.19.6",
19
- "@esbuild/android-arm64": "0.19.6",
20
- "@esbuild/android-x64": "0.19.6",
21
- "@esbuild/darwin-arm64": "0.19.6",
22
- "@esbuild/darwin-x64": "0.19.6",
23
- "@esbuild/freebsd-arm64": "0.19.6",
24
- "@esbuild/freebsd-x64": "0.19.6",
25
- "@esbuild/linux-arm": "0.19.6",
26
- "@esbuild/linux-arm64": "0.19.6",
27
- "@esbuild/linux-ia32": "0.19.6",
28
- "@esbuild/linux-loong64": "0.19.6",
29
- "@esbuild/linux-mips64el": "0.19.6",
30
- "@esbuild/linux-ppc64": "0.19.6",
31
- "@esbuild/linux-riscv64": "0.19.6",
32
- "@esbuild/linux-s390x": "0.19.6",
33
- "@esbuild/linux-x64": "0.19.6",
34
- "@esbuild/netbsd-x64": "0.19.6",
35
- "@esbuild/openbsd-x64": "0.19.6",
36
- "@esbuild/sunos-x64": "0.19.6",
37
- "@esbuild/win32-arm64": "0.19.6",
38
- "@esbuild/win32-ia32": "0.19.6",
39
- "@esbuild/win32-x64": "0.19.6"
18
+ "@esbuild/android-arm": "0.19.7",
19
+ "@esbuild/android-arm64": "0.19.7",
20
+ "@esbuild/android-x64": "0.19.7",
21
+ "@esbuild/darwin-arm64": "0.19.7",
22
+ "@esbuild/darwin-x64": "0.19.7",
23
+ "@esbuild/freebsd-arm64": "0.19.7",
24
+ "@esbuild/freebsd-x64": "0.19.7",
25
+ "@esbuild/linux-arm": "0.19.7",
26
+ "@esbuild/linux-arm64": "0.19.7",
27
+ "@esbuild/linux-ia32": "0.19.7",
28
+ "@esbuild/linux-loong64": "0.19.7",
29
+ "@esbuild/linux-mips64el": "0.19.7",
30
+ "@esbuild/linux-ppc64": "0.19.7",
31
+ "@esbuild/linux-riscv64": "0.19.7",
32
+ "@esbuild/linux-s390x": "0.19.7",
33
+ "@esbuild/linux-x64": "0.19.7",
34
+ "@esbuild/netbsd-x64": "0.19.7",
35
+ "@esbuild/openbsd-x64": "0.19.7",
36
+ "@esbuild/sunos-x64": "0.19.7",
37
+ "@esbuild/win32-arm64": "0.19.7",
38
+ "@esbuild/win32-ia32": "0.19.7",
39
+ "@esbuild/win32-x64": "0.19.7"
40
40
  },
41
41
  "license": "MIT"
42
42
  }