fix(cli): replace .wasm extension of wasm artifact (#2556)

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
CPunisher 2025-04-16 15:00:05 +08:00 committed by GitHub
parent bc2e855e8c
commit e12d091847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -769,7 +769,7 @@ class Builder {
.parse(await readFileAsync(src))
const debugWasmBinary = debugWasmModule.emitWasm(true)
await writeFileAsync(
dest.replace('.wasm', '.debug.wasm'),
dest.replace(/\.wasm$/, '.debug.wasm'),
debugWasmBinary,
)
debug('Generate release wasm module')