Improved build() task:
- Promise is now const
- add const __DEV__ pragma to allow if(__DEV__)-style blocks.