<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong></p>
<p dir="auto">The babel-cli in <code class="notranslate">--watch</code> mode does not output any messages following the first compilation. It seems as though the CLI is not doing anything even though files are compiling.</p>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel src -d lib --watch"><pre class="notranslate">babel src -d lib --watch</pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">The CLI should display an output summary after every <code class="notranslate">--watch</code> mode compilation.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<p dir="auto">N/A.</p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.0.0-beta.41 - v7.0.0-beta.46</li>
<li>Node/npm version: Node 10/npm 6</li>
<li>OS: macOS v10.13.4</li>
<li>Monorepo: No</li>
<li>How you are using Babel: <code class="notranslate">cli</code></li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>

<p dir="auto"><strong>Additional context/Screenshots</strong></p>
<p dir="auto">This issue began with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="300601829" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/7439" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/7439/hovercard" href="https://github.com/babel/babel/pull/7439">#7439</a> in <a href="https://github.com/babel/babel/releases/tag/v7.0.0-beta.41">v7.0.0-beta.41</a>. The babel-cli has a new a new <code class="notranslate">--verbose</code> flag for seeing exactly what files were compiled, but even with the verbose output of what files are being compiled there are no subsequent summary messages. An output summary should be displayed every compilation, regardless of the <code class="notranslate">--verbose</code> flag.</p>
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jimfb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jimfb">@jimfb</a></p>
</blockquote>
<h3 dir="auto">Description</h3>
<p dir="auto">A JSX element like <code class="notranslate">&lt;div ref="foo" ref="noise"&gt;</code> is not technically legal/valid.  Babel should do something reasonable (throw, pick one value and warn, etc).  The bug report below seems to indicate that it currently produces illegal javascript when this happens.</p>
<p dir="auto">Came up in: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133161146" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/6024" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/6024/hovercard" href="https://github.com/facebook/react/issues/6024#event-549130689">facebook/react#6024 (comment)</a></p>