<h2 dir="auto">Bug Report</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13749042/50773242-4a8e1f80-12cb-11e9-80a0-69724dc263ef.png"><img src="https://user-images.githubusercontent.com/13749042/50773242-4a8e1f80-12cb-11e9-80a0-69724dc263ef.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.2.2</li>
<li>Node/npm version: 9.6.0</li>
<li>OS</li>
<li>How you are using Babel: loader</li>
</ul>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I'm building a library that need to be able to work with JSX with namespaces. According to <a href="https://babeljs.io/docs/en/babel-plugin-transform-react-jsx" rel="nofollow">Babel documentation</a> this should work by setting the throwIfNamespace option. However this does not seem to work.</p>
<p dir="auto"><strong>Input Code</strong><br>
<a href="https://github.com/TheKnarf/babel-namespace-test">https://github.com/TheKnarf/babel-namespace-test</a></p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
Running <code class="notranslate">babel src/index.js</code> should transpile the test code without any errors.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  presets: ['@babel/preset-react'],
  plugins: [
    ['@babel/transform-react-jsx', {
      'pragma': 'dom',
		'throwIfNamespace': false
    }]
  ]
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'@babel/preset-react'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
    <span class="pl-kos">[</span><span class="pl-s">'@babel/transform-react-jsx'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
      <span class="pl-s">'pragma'</span>: <span class="pl-s">'dom'</span><span class="pl-kos">,</span>
		<span class="pl-s">'throwIfNamespace'</span>: <span class="pl-c1">false</span>
    <span class="pl-kos">}</span><span class="pl-kos">]</span>
  <span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.1.2 (@babel/core 7.1.2)</li>
<li>Node/npm version: v10.12.0</li>
<li>OS: macOS 10.13.6</li>
<li>How you are using Babel: cli</li>
</ul>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/213777/47648871-ad509580-db7b-11e8-9f4a-c4d565f9ce39.png"><img width="449" alt="screen shot 2018-10-29 at 13 07 56" src="https://user-images.githubusercontent.com/213777/47648871-ad509580-db7b-11e8-9f4a-c4d565f9ce39.png" style="max-width: 100%;"></a></p>