You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, when I compile for --target wasm32-unknown-emscripten (looks like wasm32-unknown-unknown does not support sourcemaps: rust-lang/rust#56660), the compiler-artifact message includes the .js and .wasm files under the filenames property. However, it does not include the .wasm.map file found in target/wasm32-unknown-emscripten/deps/*.wasm.map.
cargo-web depends on the compiler-artifacts message to determine which files to serve for its cargo web start command, but it doesn't seem to serve the .wasm.map file because it is not emitted by cargo.
Steps
When I build with cargo web build --message-format json --target wasm32-unknown-emscripten:
Problem
Hi all, when I compile for
--target wasm32-unknown-emscripten
(looks likewasm32-unknown-unknown
does not support sourcemaps: rust-lang/rust#56660), thecompiler-artifact
message includes the.js
and.wasm
files under the filenames property. However, it does not include the.wasm.map
file found intarget/wasm32-unknown-emscripten/deps/*.wasm.map
.cargo-web
depends on thecompiler-artifacts
message to determine which files to serve for itscargo web start
command, but it doesn't seem to serve the.wasm.map
file because it is not emitted bycargo
.Steps
When I build with
cargo web build --message-format json --target wasm32-unknown-emscripten
:Possible Solution(s)
Notes
Output of
cargo version
:cargo 1.35.0-nightly (6f3e9c367 2019-04-04)
Many thanks!
The text was updated successfully, but these errors were encountered: