Only compile the script if we're in the editor