Useful or not, from you.
swc export Foo from 'bar' is not supported

I tried this:

export Foo from 'bar';

I expected to see this happen:


module.exports = {
  Foo: require('bar'),

Instead, this happened:

error: Expected LBrace, got Some(Word(Foo))
 --> test.js:1:8
1 | export Foo from 'bar';
  |        ^^^

fatal runtime error: failed to initiate panic, error 5
[1]    39889 abort      npx swc test.js

I'm using CLI 0.1.12, @swc/core 1.0.13.

That's a useful answer
Without any help

It also looks like export default foo from 'bar' is not working anymore either, as described in #160