<h3 dir="auto">Cannot run <code class="notranslate">next export</code> with antd examples</h3>
<h2 dir="auto">Example name</h2>
<p dir="auto">All examples with antd</p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Cannot run <code class="notranslate">next export</code><br>
Always gets an error with <code class="notranslate">SyntaxError: Invalid or unexpected token</code> with the antd css file from node_modules</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Go to any example with <code class="notranslate">antd</code></li>
<li>Download and build example</li>
<li>Then export</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Supposed to export static site</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto">If applicable, add screenshots to help explain your problem.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Linux</li>
<li>Version of Next.js: 8.0.3</li>
</ul>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I have (and want to keep) the following file structure :</p>
<ul dir="auto">
<li>config
<ul dir="auto">
<li>index.js</li>
</ul>
</li>
<li>node_modules
<ul dir="auto">
<li>...</li>
</ul>
</li>
<li>server
<ul dir="auto">
<li>index.js</li>
</ul>
</li>
<li>src
<ul dir="auto">
<li>.next</li>
<li>components</li>
<li>pages</li>
</ul>
</li>
<li>static
<ul dir="auto">
<li>serviceWorker.js</li>
</ul>
</li>
</ul>
<p dir="auto">The <strong>import statement</strong> should work in <strong>server/index.js</strong>, as well as the <strong>export statement</strong> in <strong>config/index.js</strong>.</p>


<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The <strong>import statement</strong> fails in <strong>server/index.js</strong>, as well as the <strong>export statement</strong> in <strong>config/index.js</strong>.<br>
It would really feel weird to use ES5 in a part of the project and ES6 in another part.</p>


<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://github.com/glemiere/nextjs-starter/tree/Transpiling-Issue">https://github.com/glemiere/nextjs-starter/tree/Transpiling-Issue</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">Just building a complete starter for NextJS apps.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5</td>
</tr>
<tr>
<td>node</td>
<td>9.6.0</td>
</tr>
<tr>
<td>OS</td>
<td>OSX High Sierra</td>
</tr>
<tr>
<td>browser</td>
<td>X</td>
</tr>
<tr>
<td>etc</td>
<td>X</td>
</tr>
</tbody>
</table>