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(
try {
const output = execSync('npm config get registry').toString().trim()
if (output.startsWith('http')) {
registry = output
registry = output.endsWith('/') ? output : `${output}/`
}
} 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