<p dir="auto">👋 team,</p>
<p dir="auto">I am working on <a href="https://community.algolia.com/docsearch/" rel="nofollow">DocSearch</a> , an algolia tool. We are proud to feature the search from your documentation website.</p>
<p dir="auto">Congrats for the v7 <g-emoji class="g-emoji" alias="clap" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44f.png">👏</g-emoji></p>
<p dir="auto">It needed <a href="https://github.com/algolia/docsearch-configs/commit/6563a0730d9a51ff3a3c0b44f7ed0ecb1d7952eb">an update from our side</a> in order to avoid having duplicates from v7 and the latest 6.26.3. No worries, everything is proactively updated (we monitor big changes)</p>
<p dir="auto">If you want, we do offer filtering over <code class="notranslate">language</code> and <code class="notranslate">version</code>. Since you are using Docusaurus, the <code class="notranslate">version</code> and <code class="notranslate">language</code> filters are handled automatically from the Search-UI.  We will need you to enable it and check that your Docusaurus instance is updated.</p>
<p dir="auto">Please ping me if you want to enable this feature. I will PR the required changes from <a href="https://github.com/algolia/docsearch-configs/blob/master/configs/babeljs.json">your DocSearch configuration</a>.</p>
<p dir="auto">Your website will have an adaptive search instead of only retrieving the latest version.</p>
<p dir="auto">Babel very strange move comments: example, DojoDoc comments in function and info about copyright.</p>
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Available via the modified BSD license. See LICENSE for details.

import a from &quot;a&quot;;

const ESC = 27;

var obj = {
  isValid: function(/*Boolean*/ /*===== isFocused =====*/) {
			return true;
		}
};"><pre class="notranslate"><span class="pl-c">// Available via the modified BSD license. See LICENSE for details.</span>

<span class="pl-k">import</span> <span class="pl-s1">a</span> <span class="pl-k">from</span> <span class="pl-s">"a"</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-c1">ESC</span> <span class="pl-c1">=</span> <span class="pl-c1">27</span><span class="pl-kos">;</span>

<span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
  <span class="pl-en">isValid</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-c">/*Boolean*/</span> <span class="pl-c">/*===== isFocused =====*/</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
			<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
		<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<p dir="auto">es2015 preset</p>
<h3 dir="auto">Expected Behavior</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Available via the modified BSD license. See LICENSE for details.
&quot;use strict&quot;;

var _a = require(&quot;a&quot;);

var _a2 = _interopRequireDefault(_a);

function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }

var ESC = 27;

var obj = {
	isValid: function isValid(/*Boolean*/ /*===== isFocused =====*/){
		return true;
	}
};"><pre class="notranslate"><span class="pl-c">// Available via the modified BSD license. See LICENSE for details.</span>
<span class="pl-s">"use strict"</span><span class="pl-kos">;</span>

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

<span class="pl-k">var</span> <span class="pl-s1">_a2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_a</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-c1">default</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>

<span class="pl-k">var</span> <span class="pl-c1">ESC</span> <span class="pl-c1">=</span> <span class="pl-c1">27</span><span class="pl-kos">;</span>

<span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
	<span class="pl-en">isValid</span>: <span class="pl-k">function</span> <span class="pl-en">isValid</span><span class="pl-kos">(</span><span class="pl-c">/*Boolean*/</span> <span class="pl-c">/*===== isFocused =====*/</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
		<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
	<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Current Behavior</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;;

var _a = require(&quot;a&quot;);

var _a2 = _interopRequireDefault(_a);

function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }

var ESC = 27; // Available via the modified BSD license. See LICENSE for details.

var obj = {
	isValid: function isValid() /*Boolean*/ /*===== isFocused =====*/{
		return true;
	}
};"><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">_a</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"a"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">var</span> <span class="pl-s1">_a2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_a</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-c1">default</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>

<span class="pl-k">var</span> <span class="pl-c1">ESC</span> <span class="pl-c1">=</span> <span class="pl-c1">27</span><span class="pl-kos">;</span> <span class="pl-c">// Available via the modified BSD license. See LICENSE for details.</span>

<span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
	<span class="pl-en">isValid</span>: <span class="pl-k">function</span> <span class="pl-en">isValid</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">/*Boolean*/</span> <span class="pl-c">/*===== isFocused =====*/</span><span class="pl-kos">{</span>
		<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
	<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Your Environment</h3>
<p dir="auto">You can reproduce on your sandbox ("Try it out"): <a href="http://babeljs.io/repl/" rel="nofollow">http://babeljs.io/repl/</a></p>