diff --git a/src/build.rs b/src/build.rs index 1954b81b..bb8786c3 100644 --- a/src/build.rs +++ b/src/build.rs @@ -89,7 +89,7 @@ fn main() -> Result<(), Box> { // Add --release argument if not in debug mode if cfg!(not(debug_assertions)) { - trunk_command.arg("--release"); + trunk_command.args(["--release", "--locked"]); } let trunk_output = trunk_command.output().expect("Failed to execute trunk");