Support an optional compile hook in the app