<h2 dir="auto">Bug Report</h2>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I would like to work on a fix!</li>
</ul>

<p dir="auto"><strong>Current behavior</strong></p>

<p dir="auto">Syntax error <code class="notranslate">Unexpected token</code> is thrown.</p>
<ul dir="auto">
<li><a href="https://babeljs.io/repl#?browsers=safari%2012&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAEBiD29oG8BQ0MAcBOBLAbmAC4Cm0mArgEYi7DQBmiA3KgL6pA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=typescript&amp;prettier=false&amp;targets=&amp;version=7.12.14&amp;externalPlugins=" rel="nofollow">REPL</a><br>
<strong>Input Code</strong></li>
</ul>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo {
   private public foo;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
   <span class="pl-k">private</span> <span class="pl-c1">public</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>

<p dir="auto">Syntax recoverable error <code class="notranslate">Accessibility modifier already seen.</code> is thrown. Like <a href="https://www.typescriptlang.org/play?#code/MYGwhgzhAEBiD29oG8BQ1oAcBOBLAbmAC4CmWArgEYi7DQBmiA3KgL6pA" rel="nofollow">TS</a>. Also only the first access modifier should be included in AST.</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">babel.config.js</code></li>
</ul>
<p dir="auto"><strong>Environment</strong></p>
<p dir="auto"><strong>Possible Solution</strong></p>

<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto"><strong>Choose one: is this a bug report or feature request?</strong><br>
Feature</p>
<p dir="auto"><strong>Provide a general summary of the issue in the title above</strong><br>
Babel is one of the most important parts of my system, and as such I would like to have more control over what is being loaded when it runs (particularly  when I use it with other tooling indirectly like webpack).<br>
to summarize,  I would like to have the ability to see</p>
<ul dir="auto">
<li>What configuration is being used</li>
<li>source of the configuration (directly provided by arguments, rc files, package.json)</li>
<li>Plugins used to produce the transformations</li>
<li>configurable output of this log</li>
</ul>