pub fn resolve_build_mode(args: &ModeArgs) -> BuildModeExpand description
Resolves the build mode from CLI arguments.
First checks the explicit --dev, --release, and --profiling flags on ModeArgs.
If none of those are set, inspects wasm_pack_args for any build mode flag
that may have been forwarded by the user.
Defaults to BuildMode::Dev if no build mode flag is found anywhere.
§Arguments
&ModeArgs- The CLI arguments containing the build mode flags and wasm_pack_args.
§Returns
BuildMode- The resolved build mode.