bathos/Ecmascript-Sublime

ES proposal `export ... from ...` is marked as invalid

aziz opened this issue · 1 comments

aziz commented
export ModalHeader from './header';
export ModalFooter from './footer';
export ModalContent from './content';

screen shot 2016-11-14 at 09 29 35

Changed the title because it’s actually not valid ES6 — rather this is a stage 1 proposal that Babel supports:

https://github.com/leebyron/ecmascript-export-default-from

(In ES6 this can be expressed export { default as ModalHeader } from './header')

I agree it’s a bug though, this is a transform a lot of people use.