Closed axetroy closed 1 year ago
This isn't a problem with wasm-bindgen
or wasm-pack
, but with Rust in general.
See https://doc.rust-lang.org/rustc/command-line-arguments.html#--remap-path-prefix-remap-source-names-in-output for how to avoid this.
Hopefully this can be more easily configured in the future: https://github.com/rust-lang/rfcs/pull/3127.
Running the command to compile
and preview in Chrome
And we can see the path in the output file.
Usually, it has the risk of leaking user information.
I'm not sure which package(rust/wasm-pack/or other crate) generated this