<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">pages-manifest.json and __precacheManifest are outed with "\" in path on Windows which causes error when copied in UNIX production</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Build on Windows -&gt; deploy on UNIX</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">{"/_app":"static\\_Dv<del>cWWKlkG5i2</del>aGcOyE\\pages\\_app.js",<br>
should be<br>
{"/_app":"static/_Dv<del>cWWKlkG5i2</del>aGcOyE/pages/_app.js",</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Windows</li>
<li>Version of Next.js: 7.0.2</li>
</ul>
<h2 dir="auto">Fix</h2>
<p dir="auto">To fix the issue on pages-manifest.json ; I guess __precacheManifest is from <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-offline">next-offline</a> and I'll investigate there</p>
<p dir="auto">\next\dist\build\webpack\plugins\pages-manifest-plugin.js<br>
L59:<br>
pages["/".concat(pagePath.replace(/\/g, '/'))] = name.replace(/\/g, '/');</p>
<p dir="auto">Because code is run on browser and server, we cannot take full advantage of webpack tree shaking. The code is transformed to commonjs before anything.</p>
<p dir="auto">How is it possible to take full advantage of tree shaking? (I've tried webpack-common-shake without success)</p>
<p dir="auto">ESM is landing in node 8.5 with --experimental-module and also available with @std/esm package. Do you have any plan about this?</p>


<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">issues</a> of this repository and believe that this is not x duplicate.</li>
</ul>