From 358a2c068d92c61ceca4c3c2c54aa350b46d1847 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sat, 30 Mar 2019 23:58:26 -0400 Subject: [PATCH] Add build constraints to wasm source files Add constraints to the wasm's source files so they're only built for the js/wasm target. --- wasm/main.go | 2 ++ wasm/suggestions.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wasm/main.go b/wasm/main.go index 7092d2a..77231ac 100644 --- a/wasm/main.go +++ b/wasm/main.go @@ -1,3 +1,5 @@ +// +build js,wasm + package main import ( diff --git a/wasm/suggestions.go b/wasm/suggestions.go index ecfdf94..14eb8eb 100644 --- a/wasm/suggestions.go +++ b/wasm/suggestions.go @@ -1,3 +1,5 @@ +// +build js,wasm + package main import (