text: process.env.BABEL_ENV = 'production'
  process.env.NODE_ENV = 'production'
  
  // TODO measure file sizes, improve logging, and other improvements
  
  const { createBundlers, bundleApp } = require('../bundle')
  
  console.log('Creating an optimized production build...')
  
  createBundlers().then(({ clientBundler, serverBundler }) => {
    console.log('Compiled succesfully!')
    bundleApp(clientBundler, serverBundler)
  })