Unverified Commit 5ac50a9b authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

fix: ensure trailing slash on registry URL when fetching wasm fallback (#39427)

fix: ensure trailing slash on registry URL
parent 5d93753b
...@@ -83,7 +83,7 @@ export async function downloadWasmSwc( ...@@ -83,7 +83,7 @@ export async function downloadWasmSwc(
try { try {
const output = execSync('npm config get registry').toString().trim() const output = execSync('npm config get registry').toString().trim()
if (output.startsWith('http')) { if (output.startsWith('http')) {
registry = output registry = output.endsWith('/') ? output : `${output}/`
} }
} catch (_) {} } catch (_) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment