<p dir="auto"><a href="http://2ality.com/2017/02/ecmascript-2018.html" rel="nofollow">ECMAScript 2018 was finalized</a>, what do we need to enable these features by default for <code class="notranslate">preset-env</code>?</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SyntaxError: /path/to/file.js:
Support for the experimental syntax 'objectRestSpread' isn't currently enabled (11:9):

  10 |       {
&gt; 11 |         ...example,
     |         ^
  12 |         key: 'value',
  13 |       },"><pre class="notranslate">SyntaxError: /path/to/file.js:
Support <span class="pl-k">for</span> the experimental syntax <span class="pl-s"><span class="pl-pds">'</span>objectRestSpread<span class="pl-pds">'</span></span> isn<span class="pl-s"><span class="pl-pds">'</span>t currently enabled (11:9):</span>
<span class="pl-s"></span>
<span class="pl-s">  10 |       {</span>
<span class="pl-s">&gt; 11 |         ...example,</span>
<span class="pl-s">     |         ^</span>
<span class="pl-s">  12 |         key: <span class="pl-pds">'</span></span>value<span class="pl-s"><span class="pl-pds">'</span>,</span>
<span class="pl-s">  13 |       },</span></pre></div>
<p dir="auto">The <code class="notranslate">proposal</code> keyword was removed from <code class="notranslate">@babel/plugin-syntax-object-rest-spread</code> package name but <code class="notranslate">babel-preset-env/data/plugins.json</code> still have:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/babel/babel/blob/6f3be3a5438739453510ea969136894c9cae12d8/packages/babel-preset-env/data/plugins.json#L232">babel/packages/babel-preset-env/data/plugins.json</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 232
      in
      <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/6f3be3a5438739453510ea969136894c9cae12d8">6f3be3a</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L232" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="232"></td>
          <td id="LC232" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">"proposal-object-rest-spread"</span>: { </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Hi there,</p>
<p dir="auto">a simple module just reexport a module fails.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export * from './some-module';"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'./some-module'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">My .babelrc looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;presets&quot;: [&quot;es2015&quot;, &quot;stage-1&quot;],
  &quot;plugins&quot;: [&quot;transform-async-to-generator&quot;]
}"><pre class="notranslate"><code class="notranslate">{
  "presets": ["es2015", "stage-1"],
  "plugins": ["transform-async-to-generator"]
}
</code></pre></div>
<p dir="auto">This should contain the required export-extensions transform.</p>
<p dir="auto">The error message looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./node_modules/.bin/babel test.js 
Error: test.js: Invariant Violation: To get a node path the parent needs to exist
    at Object.invariant [as default] (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/node_modules/invariant/invariant.js:44:15)
    at Function.get (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:82:27)
    at TraversalContext.create (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:73:30)
    at NodePath._containerInsert (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:80:32)
    at NodePath._containerInsertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:138:15)
    at NodePath.insertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:57:19)
    at BlockScoping.wrapClosure (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:485:21)
    at BlockScoping.run (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:385:12)
    at PluginPass.Loop (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:89:36)
    at /home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/visitors.js:271:19"><pre class="notranslate"><code class="notranslate">$ ./node_modules/.bin/babel test.js 
Error: test.js: Invariant Violation: To get a node path the parent needs to exist
    at Object.invariant [as default] (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/node_modules/invariant/invariant.js:44:15)
    at Function.get (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:82:27)
    at TraversalContext.create (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:73:30)
    at NodePath._containerInsert (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:80:32)
    at NodePath._containerInsertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:138:15)
    at NodePath.insertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:57:19)
    at BlockScoping.wrapClosure (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:485:21)
    at BlockScoping.run (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:385:12)
    at PluginPass.Loop (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:89:36)
    at /home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/visitors.js:271:19
</code></pre></div>
<p dir="auto">Any hint on this?</p>