sweet-js/sweet-core

import statements missing in output

gabejohnson opened this issue · 4 comments

input

// a.js
export var a = 42;

// b.js
import { a } from './a';

output

@disnet any ideas on this?

are you running sweet on b.js? We aren't bundling (yet) so unsurprising you get empty output.

Yes. On b.js but this was my attempt at a minimal repro. If you try to compile any of the stuff at https://github.com/gabejohnson/fantasy-interfaces you'll see what I'm talking about.

Oh! As the title to this issue implies the import statement is missing. Sorry, my brain completely missed that.

Yes, I think I know exactly what's going wrong. I'll get a fix together.