@netlify/esbuild
Advanced tools
Comparing version 0.14.23 to 0.14.25
@@ -65,5 +65,9 @@ var __create = Object.create; | ||
}; | ||
var knownWebAssemblyFallbackPackages = { | ||
"android x64 LE": "@netlify/esbuild-android-64" | ||
}; | ||
function pkgAndSubpathForCurrentPlatform() { | ||
let pkg; | ||
let subpath; | ||
let isWASM = false; | ||
let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`; | ||
@@ -76,6 +80,10 @@ if (platformKey in knownWindowsPackages) { | ||
subpath = "bin/esbuild"; | ||
} else if (platformKey in knownWebAssemblyFallbackPackages) { | ||
pkg = knownWebAssemblyFallbackPackages[platformKey]; | ||
subpath = "bin/esbuild"; | ||
isWASM = true; | ||
} else { | ||
throw new Error(`Unsupported platform: ${platformKey}`); | ||
} | ||
return { pkg, subpath }; | ||
return { pkg, subpath, isWASM }; | ||
} | ||
@@ -101,4 +109,4 @@ function downloadedBinPath(pkg, subpath) { | ||
}).toString().trim(); | ||
if (stdout !== "0.14.23") { | ||
throw new Error(`Expected ${JSON.stringify("0.14.23")} but got ${JSON.stringify(stdout)}`); | ||
if (stdout !== "0.14.25") { | ||
throw new Error(`Expected ${JSON.stringify("0.14.25")} but got ${JSON.stringify(stdout)}`); | ||
} | ||
@@ -154,3 +162,3 @@ } | ||
fs2.writeFileSync(path2.join(installDir, "package.json"), "{}"); | ||
child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.23"}`, { cwd: installDir, stdio: "pipe", env }); | ||
child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.25"}`, { cwd: installDir, stdio: "pipe", env }); | ||
const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath); | ||
@@ -204,3 +212,3 @@ fs2.renameSync(installedBinPath, binPath); | ||
async function downloadDirectlyFromNPM(pkg, subpath, binPath) { | ||
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.23"}.tgz`; | ||
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@netlify/", "")}-${"0.14.25"}.tgz`; | ||
console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`); | ||
@@ -207,0 +215,0 @@ try { |
@@ -10,3 +10,3 @@ export type Platform = 'browser' | 'node' | 'neutral'; | ||
/** Documentation: https://esbuild.github.io/api/#sourcemap */ | ||
sourcemap?: boolean | 'inline' | 'external' | 'both'; | ||
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both'; | ||
/** Documentation: https://esbuild.github.io/api/#legal-comments */ | ||
@@ -31,2 +31,4 @@ legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external'; | ||
/** Documentation: https://esbuild.github.io/api/#mangle-props */ | ||
mangleQuoted?: boolean; | ||
/** Documentation: https://esbuild.github.io/api/#mangle-props */ | ||
mangleCache?: Record<string, string | false>; | ||
@@ -33,0 +35,0 @@ /** Documentation: https://esbuild.github.io/api/#drop */ |
{ | ||
"name": "@netlify/esbuild", | ||
"version": "0.14.23", | ||
"version": "0.14.25", | ||
"description": "An extremely fast JavaScript and CSS bundler and minifier.", | ||
@@ -18,23 +18,24 @@ "repository": "https://github.com/evanw/esbuild", | ||
"optionalDependencies": { | ||
"@netlify/esbuild-android-arm64": "0.14.23", | ||
"@netlify/esbuild-darwin-64": "0.14.23", | ||
"@netlify/esbuild-darwin-arm64": "0.14.23", | ||
"@netlify/esbuild-freebsd-64": "0.14.23", | ||
"@netlify/esbuild-freebsd-arm64": "0.14.23", | ||
"@netlify/esbuild-linux-32": "0.14.23", | ||
"@netlify/esbuild-linux-64": "0.14.23", | ||
"@netlify/esbuild-linux-arm": "0.14.23", | ||
"@netlify/esbuild-linux-arm64": "0.14.23", | ||
"@netlify/esbuild-linux-mips64le": "0.14.23", | ||
"@netlify/esbuild-linux-ppc64le": "0.14.23", | ||
"@netlify/esbuild-linux-riscv64": "0.14.23", | ||
"@netlify/esbuild-linux-s390x": "0.14.23", | ||
"@netlify/esbuild-netbsd-64": "0.14.23", | ||
"@netlify/esbuild-openbsd-64": "0.14.23", | ||
"@netlify/esbuild-sunos-64": "0.14.23", | ||
"@netlify/esbuild-windows-32": "0.14.23", | ||
"@netlify/esbuild-windows-64": "0.14.23", | ||
"@netlify/esbuild-windows-arm64": "0.14.23" | ||
"@netlify/esbuild-android-64": "0.14.25", | ||
"@netlify/esbuild-android-arm64": "0.14.25", | ||
"@netlify/esbuild-darwin-64": "0.14.25", | ||
"@netlify/esbuild-darwin-arm64": "0.14.25", | ||
"@netlify/esbuild-freebsd-64": "0.14.25", | ||
"@netlify/esbuild-freebsd-arm64": "0.14.25", | ||
"@netlify/esbuild-linux-32": "0.14.25", | ||
"@netlify/esbuild-linux-64": "0.14.25", | ||
"@netlify/esbuild-linux-arm": "0.14.25", | ||
"@netlify/esbuild-linux-arm64": "0.14.25", | ||
"@netlify/esbuild-linux-mips64le": "0.14.25", | ||
"@netlify/esbuild-linux-ppc64le": "0.14.25", | ||
"@netlify/esbuild-linux-riscv64": "0.14.25", | ||
"@netlify/esbuild-linux-s390x": "0.14.25", | ||
"@netlify/esbuild-netbsd-64": "0.14.25", | ||
"@netlify/esbuild-openbsd-64": "0.14.25", | ||
"@netlify/esbuild-sunos-64": "0.14.25", | ||
"@netlify/esbuild-windows-32": "0.14.25", | ||
"@netlify/esbuild-windows-64": "0.14.25", | ||
"@netlify/esbuild-windows-arm64": "0.14.25" | ||
}, | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
122813
3149
20