Rather use `through` and `pipe` to resolve the promise returned from the `precompile` function than the `end` event.