wait for compile before bundle