Skip to content

Commit ffa3089

Browse files
committed
feat(cli): build wasm component with target and release flags
1 parent 39a5b2e commit ffa3089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/theater-cli/src/commands/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn build_project(project_path: &PathBuf) -> Result<(), CliError> {
221221
debug!("Building project at {}", project_path.display());
222222

223223
let mut child = Command::new("cargo")
224-
.args(&["component", "build"])
224+
.args(&["component", "build", "--target", "wasm32-unknown-unknown", "--release"])
225225
.current_dir(project_path)
226226
.spawn()
227227
.map_err(|e| {

0 commit comments

Comments
 (0)