import { serve , buildAssets } from 'tux/server' ; import Document from 'react-document' ; const app = require ( __appEntry ) ; export default ( { clientStats } ) => { return serve ( { Document , assets : buildAssets ( clientStats ) , app : app . __esModule ? app . default : app , } ) ; } ;