component-build compatible express middleware