title: Transpiling next.js server code
body: <p>I have a fresh install of Next.js and am wanting to be able to use <code>import</code> and <code>async/await</code> etc.</p>
  
  <p>I have updated my .babelrc</p>
  
  <pre><code>{
    "plugins": [
      [
        "module-resolver",
        {
          "root": ["."],
          "alias": {
            "styles": "./styles"
          },
          "cwd": "babelrc"
        }
      ],
      [
        "wrap-in-js",
        {
          "extensions": ["css$"]
        }
      ]
    ],
    "presets": [
      "next/babel",
      "es2015",
      "stage-0",
    ],
    "ignore": []
  }
  </code></pre>
  
  <p>I assume I need to update some config to <code>./server.js</code>?</p>
  
  <p>Also how do I get around starting my app as I can point my start script to run from <code>./dist/server</code> but I believe the server needs to run to be able to run a build? </p>