esbuild 0.19.6 → 0.19.8
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 +1 -1
- package/lib/main.d.ts +3 -0
- package/lib/main.js +10 -9
- package/package.json +23 -23
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.
|
|
202
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.19.8"}-${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.
|
|
750
|
-
throw new Error(`Cannot start service: Host version "${"0.19.
|
|
749
|
+
if (binaryVersion !== "0.19.8") {
|
|
750
|
+
throw new Error(`Cannot start service: Host version "${"0.19.8"}" 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.
|
|
1942
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.19.8"}-${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.
|
|
1977
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.19.8";
|
|
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.
|
|
2044
|
+
var version = "0.19.8";
|
|
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.
|
|
2154
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.19.8"}`, "--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.
|
|
2254
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.19.8"}`), {
|
|
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.
|
|
2274
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.19.8" },
|
|
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.
|
|
3
|
+
"version": "0.19.8",
|
|
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.
|
|
19
|
-
"@esbuild/android-arm64": "0.19.
|
|
20
|
-
"@esbuild/android-x64": "0.19.
|
|
21
|
-
"@esbuild/darwin-arm64": "0.19.
|
|
22
|
-
"@esbuild/darwin-x64": "0.19.
|
|
23
|
-
"@esbuild/freebsd-arm64": "0.19.
|
|
24
|
-
"@esbuild/freebsd-x64": "0.19.
|
|
25
|
-
"@esbuild/linux-arm": "0.19.
|
|
26
|
-
"@esbuild/linux-arm64": "0.19.
|
|
27
|
-
"@esbuild/linux-ia32": "0.19.
|
|
28
|
-
"@esbuild/linux-loong64": "0.19.
|
|
29
|
-
"@esbuild/linux-mips64el": "0.19.
|
|
30
|
-
"@esbuild/linux-ppc64": "0.19.
|
|
31
|
-
"@esbuild/linux-riscv64": "0.19.
|
|
32
|
-
"@esbuild/linux-s390x": "0.19.
|
|
33
|
-
"@esbuild/linux-x64": "0.19.
|
|
34
|
-
"@esbuild/netbsd-x64": "0.19.
|
|
35
|
-
"@esbuild/openbsd-x64": "0.19.
|
|
36
|
-
"@esbuild/sunos-x64": "0.19.
|
|
37
|
-
"@esbuild/win32-arm64": "0.19.
|
|
38
|
-
"@esbuild/win32-ia32": "0.19.
|
|
39
|
-
"@esbuild/win32-x64": "0.19.
|
|
18
|
+
"@esbuild/android-arm": "0.19.8",
|
|
19
|
+
"@esbuild/android-arm64": "0.19.8",
|
|
20
|
+
"@esbuild/android-x64": "0.19.8",
|
|
21
|
+
"@esbuild/darwin-arm64": "0.19.8",
|
|
22
|
+
"@esbuild/darwin-x64": "0.19.8",
|
|
23
|
+
"@esbuild/freebsd-arm64": "0.19.8",
|
|
24
|
+
"@esbuild/freebsd-x64": "0.19.8",
|
|
25
|
+
"@esbuild/linux-arm": "0.19.8",
|
|
26
|
+
"@esbuild/linux-arm64": "0.19.8",
|
|
27
|
+
"@esbuild/linux-ia32": "0.19.8",
|
|
28
|
+
"@esbuild/linux-loong64": "0.19.8",
|
|
29
|
+
"@esbuild/linux-mips64el": "0.19.8",
|
|
30
|
+
"@esbuild/linux-ppc64": "0.19.8",
|
|
31
|
+
"@esbuild/linux-riscv64": "0.19.8",
|
|
32
|
+
"@esbuild/linux-s390x": "0.19.8",
|
|
33
|
+
"@esbuild/linux-x64": "0.19.8",
|
|
34
|
+
"@esbuild/netbsd-x64": "0.19.8",
|
|
35
|
+
"@esbuild/openbsd-x64": "0.19.8",
|
|
36
|
+
"@esbuild/sunos-x64": "0.19.8",
|
|
37
|
+
"@esbuild/win32-arm64": "0.19.8",
|
|
38
|
+
"@esbuild/win32-ia32": "0.19.8",
|
|
39
|
+
"@esbuild/win32-x64": "0.19.8"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT"
|
|
42
42
|
}
|