<p dir="auto">I'm using babel to transpile ES6 code, my target browsers support generators, so I blacklist regenerator to improve performance, but webpack doesn't parse it at all it seems. Generators could just be parsed and treated as functions.</p>
<p dir="auto">I'm switching from browserify, which happens to parse generators correctly.</p>
<p dir="auto">Currently webpack seems to fail parsing JavaScript code that contains ES6 syntax like generators.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Module parse failed: ..../main.js Line 20: Unexpected token *
You may need an appropriate loader to handle this file type.
| }
| 
| function * ex_test() {
|   throw new Error(&quot;work!&quot;);
| }"><pre class="notranslate"><code class="notranslate">Module parse failed: ..../main.js Line 20: Unexpected token *
You may need an appropriate loader to handle this file type.
| }
| 
| function * ex_test() {
|   throw new Error("work!");
| }
</code></pre></div>
<p dir="auto">Could you please adjust the static code analysis so that it doesn't break with code that uses generators?</p>
<p dir="auto">I'm trying to use generators <strong>natively</strong> in browsers that support them, so don't want to use a transpiler in this case..</p>