fix: add stub main() for non-WASM builds in cmd/wasm
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

The WASM main.go is gated behind //go:build js && wasm, leaving
register.go (//go:build !js) as the only file on native builds —
but it had no main(). Adds a stub that prints a usage hint.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-02-23 06:31:14 +00:00
parent 78d5b45b0c
commit 29bd63d751

View file

@ -20,3 +20,7 @@ func buildComponentJS(slotsJSON string) (string, error) {
}
return codegen.GenerateBundle(slots)
}
func main() {
fmt.Println("go-html WASM module — build with GOOS=js GOARCH=wasm")
}