mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(cli): replace .wasm extension of wasm artifact (#2556)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
parent
bc2e855e8c
commit
e12d091847
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user