<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 a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When consuming packages with both transpiled and untranspiled modules, as defined in their <code class="notranslate">package.json</code> with <code class="notranslate">main:</code> pointing to the transpiled version and <code class="notranslate">module:</code> pointing to the untranspiled one, Next5 picks up the <code class="notranslate">module:</code> entry. I'm expecting Next to pick the <code class="notranslate">main</code> entry.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Next5 picks up the <code class="notranslate">module:</code> entry.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Install a package that has both <code class="notranslate">main:</code> and <code class="notranslate">module:</code> defined in a <code class="notranslate">package.json</code>. For example:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main: 'dist/index.js'
module: `src/index.js`"><pre class="notranslate"><code class="notranslate">main: 'dist/index.js'
module: `src/index.js`
</code></pre></div>
<ol start="2" dir="auto">
<li>Check that Next.js picks up <code class="notranslate">src/index.js</code> instead of <code class="notranslate">dist/index.js</code></li>
</ol>
<h2 dir="auto">Context</h2>


<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.0.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.4</td>
</tr>
<tr>
<td>OS</td>
<td>macOS 10.13.2</td>
</tr>
<tr>
<td>browser</td>
<td>Firefox 58.0.2</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
<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 a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>


<p dir="auto">should have a <code class="notranslate">asPath</code> key in <code class="notranslate">url</code> object as <a href="https://github.com/zeit/next.js/tree/3.2.2#routing">documented</a></p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto"><code class="notranslate">url.asPath</code> does not exist</p>
<h2 dir="auto">Context</h2>


<p dir="auto">I noticed there's already a <a href="https://github.com/zeit/next.js/pull/2988/files">PR</a> merged for this issue, but it requires breaking change (<code class="notranslate">next@4</code> &amp; <code class="notranslate">react@16</code>)<br>
It's not easy to upgrade for big projects since <a href="https://github.com/airbnb/enzyme/issues?q=is%3Aissue+is%3Aopen+label%3A%22v3+bugs%22">Enzyme v3 has some bugs</a> when rendering react16.<br>
While finding workaround or helping them to fix it, I'm wondering is it possible to release a patch for v3?<br>
Thanks!</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>3.2.2</td>
</tr>
<tr>
<td>node</td>
<td>8.4.0</td>
</tr>
</tbody>
</table>