diff --git a/templates/http-go/metadata/snippets/component.txt b/templates/http-go/metadata/snippets/component.txt index 54e38762d9..24e18bab3d 100644 --- a/templates/http-go/metadata/snippets/component.txt +++ b/templates/http-go/metadata/snippets/component.txt @@ -6,6 +6,6 @@ component = "{{project-name | kebab_case}}" source = "{{ output-path }}/main.wasm" allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm ." +command = "go tool componentize-go build" workdir = "{{ output-path }}" watch = ["**/*.go", "go.mod"]