return code or object with code/map depending on sourceMap option