only build source maps in dev mode