feat: Enable plumbing through keep_names to wasm build for better stack traces (#5296)
Co-authored-by: Robert Deaton <me@rdeaton.space>
This commit is contained in:
1 parent
33159f366a
commit
df4fe37180
3 files changed
+23
-1
No files matched your search
@@ -393,6 +393,7 @@ pub(crate) struct BuildRequest {
|
||||
pub(crate) skip_assets: bool,
|
||||
pub(crate) wasm_split: bool,
|
||||
pub(crate) debug_symbols: bool,
|
||||
pub(crate) keep_names: bool,
|
||||
pub(crate) inject_loading_scripts: bool,
|
||||
pub(crate) custom_linker: Option<PathBuf>,
|
||||
pub(crate) base_path: Option<String>,
|
||||
@@ -1025,6 +1026,7 @@ impl BuildRequest {
|
||||
base_path: args.base_path.clone(),
|
||||
wasm_split: args.wasm_split,
|
||||
debug_symbols: args.debug_symbols,
|
||||
keep_names: args.keep_names,
|
||||
inject_loading_scripts: args.inject_loading_scripts,
|
||||
apple_entitlements: args.apple_entitlements.clone(),
|
||||
apple_team_id: args.apple_team_id.clone(),
|
||||
@@ -4309,7 +4311,10 @@ impl BuildRequest {
|
||||
|| self.wasm_split
|
||||
|| !self.release
|
||||
|| ctx.mode == BuildMode::Fat;
|
||||
let keep_names = self.wasm_split || ctx.mode == BuildMode::Fat;
|
||||
let keep_names = self.config.web.wasm_opt.keep_names
|
||||
|| self.keep_names
|
||||
|| self.wasm_split
|
||||
|| ctx.mode == BuildMode::Fat;
|
||||
let demangle = false;
|
||||
let wasm_opt_options = WasmOptConfig {
|
||||
memory_packing: self.wasm_split,
|
||||
|
||||
Reference in new issue
Block a user