Was editing the wrong file. Edit the right file, and I got it working. doy.
https://www.implenton.com/alpine-js-directives-and-wordpress-sanitization/
I did have to switch from “@click” (shorthand) to “x-on:click”
Thanks John! Your suggestion got me Googling in the right direction.