<h1 dir="auto">Bug report</h1>
<p dir="auto">After 4.29.0 was released (i had "webpack": "^4.25.1" in package.json) my build was failing because dynamic imports were not recognized. Got the following error:<br>
Module parse failed: 'import' and 'export' may only appear at the top level.<br>
I removed the caret from package json and with 4.25.1 it works as expected</p>




<p dir="auto"><strong>What is the current behavior?</strong><br>
My build failed</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Not completely sure but this piece of code was not working:<br>
if (urls.is('')) {<br>
import(/*webpackChunkName: "dashboard" */'../dashboard');<br>
}</p>






<p dir="auto"><strong>What is the expected behavior?</strong><br>
Dynamic imports work as expected</p>


<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:<br>
Node.js version:<br>
Operating System:<br>
Additional tools:</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
A bug</p>


<p dir="auto"><strong>What is the current behavior?</strong><br>
We build our main app as a <a href="https://webpack.js.org/plugins/dll-plugin/" rel="nofollow">Dll</a>, and after recent upgrade we experience huge build times compared to what we had before upgrade.</p>
<p dir="auto">It takes <strong>~30</strong> seconds to complete our initial build, comparing to <strong>~18</strong> on webpack 3.6.0.<br>
Rebuilds in watch mode now take <strong>~12</strong> seconds, and they were <strong>less than a second</strong> before upgrade.<br>
We had no <a href="https://github.com/samccone/bundle-buddy">bundle duplication</a> before upgrade, and now we have tons of them.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
I'm not sure if I could provide any right now, as we have really huge project. I'll try to setup a demo env soon.</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
Release notes <a href="https://github.com/webpack/webpack/releases/tag/v3.7.0">state</a> about performance fixes, but I'd expect it to be at least the same as before upgrade.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
Node 8.6.0<br>
Windows 7,<br>
Webpack 3.7.1</p>