only build source maps in dev mode

Fixes #20