Add a flag to serve and build commands to use wasm
#7867
Merged
serve and build commands to use wasm
#7867