<p dir="auto">There is no option for this.<br>
Actually some of modules define <code class="notranslate">default</code> property in <code class="notranslate">exports</code>.<br>
<a href="https://github.com/expressjs/morgan/blob/master/index.js#L191">https://github.com/expressjs/morgan/blob/master/index.js#L191</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="exports.format = function(name, fmt){
  exports[name] = fmt;
  return this;
};
exports.format('default', ...);"><pre class="notranslate"><span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">format</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">fmt</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
  <span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">fmt</span><span class="pl-kos">;</span>
  <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s">'default'</span><span class="pl-kos">,</span> ...<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jmm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jmm">@jmm</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> Latest</li>
</ul>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function arrayDestruct (...rest) {
  [rest[0]] = x;
}

function forIn (...rest) {
  for (rest[0] in x);
}

function forOf (...rest) {
  for (rest[0] of x);
}

function updatePrefixIncrement (...rest) {
  ++rest[0];
}

function updatePostfixDecrement (...rest) {
  rest[0]--;
}

function del (...rest) {
  delete rest[0];
}

function call (...rest) {
  rest[0]();
}

function newExprArgs (...rest) {
  new rest[0]();
}

function newExprBare (...rest) {
  new rest[0];
}"><pre class="notranslate"><code class="notranslate">function arrayDestruct (...rest) {
  [rest[0]] = x;
}

function forIn (...rest) {
  for (rest[0] in x);
}

function forOf (...rest) {
  for (rest[0] of x);
}

function updatePrefixIncrement (...rest) {
  ++rest[0];
}

function updatePostfixDecrement (...rest) {
  rest[0]--;
}

function del (...rest) {
  delete rest[0];
}

function call (...rest) {
  rest[0]();
}

function newExprArgs (...rest) {
  new rest[0]();
}

function newExprBare (...rest) {
  new rest[0];
}
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">This is a followup to T6932. I'm working on fixing it. I'll provide better details later. I just want there to be an issue tracking it so people know it's being worked on and don't waste their time duplicating the effort to no avail.</p>
<p dir="auto">The errors either crash transformation or result in incorrect program execution.</p>