title: How can I export * as namespace in Babel?
body: <p>I am working on code that is a mixture of JS and TS, using TypeScript 3.8. I wrote the following line:</p>
  
  <pre class="lang-js prettyprint-override"><code>export * as Easing from './easing';
  </code></pre>
  
  <p>Which should be <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#export--as-ns-syntax" rel="nofollow noreferrer">fair game</a> in TypeScript 3.8. However, I am compiling using Webpack, and I am not using <code>ts-loader</code>, only <code>babel-loader</code> with the TypeScript preset, and it seems like Babel does not support this syntax. I'm getting this error:</p>
  
  <blockquote>
  <pre><code>ERROR in ./src/index.ts
  Module build failed (from ./node_modules/babel-loader/lib/index.js):
  SyntaxError: /home/laptou/projects/my-project/src/index.ts: Unexpected export specifier type
   30 |     default as Clock, addUpdateListener, after, chain, clock, infinite, tween
   31 | } from './clock';
   32 | export * as Easing from './easing';
      |        ^^^^^^^^^^^
   33 | export type { Tween, TweenOptions, TweenStatus } from './tween';
   34 | export { default as InterpolateTween } from './tween/interpolate'
  </code></pre>
  </blockquote>
  
  <p>How can I fix this?</p>