<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/faiwer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/faiwer">@faiwer</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6</li>
<li><strong>Node version:</strong> 5</li>
<li><strong>npm version:</strong> 2.14.3</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="transform-es2015-arrow-functions
transform-es2015-spread&quot;
transform-es2015-literals&quot;
transform-es2015-block-scoping
transform-es2015-classes&quot;
transform-es2015-object-super"><pre class="notranslate"><code class="notranslate">transform-es2015-arrow-functions
transform-es2015-spread"
transform-es2015-literals"
transform-es2015-block-scoping
transform-es2015-classes"
transform-es2015-object-super
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class A {
    test()
    {
        let test = 1;
    }
}"><pre class="notranslate"><code class="notranslate">class A {
    test()
    {
        let test = 1;
    }
}
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Warning: % Duplicate declaration "test" Use --force to continue.</p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto">Apologies for not using the template because your <code class="notranslate">bug_report.yml</code> is currently invalid so there’s no way to report a bug from the web page right now.</p>
<p dir="auto">In short,</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { namespace } from 'test'

@namespace.test
@namespace.test
class Test {}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">namespace</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'test'</span>

@<span class="pl-s1">namespace</span><span class="pl-kos">.</span><span class="pl-c1">test</span>
@<span class="pl-s1">namespace</span><span class="pl-kos">.</span><span class="pl-c1">test</span>
<span class="pl-k">class</span> <span class="pl-v">Test</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">becomes</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;;

var _source = require(&quot;source&quot;);

@_source.namespace.test
@_namespace.test
class Test {}"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>

<span class="pl-k">var</span> <span class="pl-s1">_source</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"source"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

@<span class="pl-s1">_source</span><span class="pl-kos">.</span><span class="pl-c1">namespace</span><span class="pl-kos">.</span><span class="pl-c1">test</span>
@<span class="pl-s1">_namespace</span><span class="pl-kos">.</span><span class="pl-c1">test</span>
<span class="pl-k">class</span> <span class="pl-v">Test</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">Reproduction: <a href="https://github.com/proteriax/babel-bug">https://github.com/proteriax/babel-bug</a><br>
Please clone the repository and run <code class="notranslate">yarn build</code>. Observe the <code class="notranslate">.babelrc.js</code> because it contains a custom plugin.</p>