I am trying to use the babel transpiler to use ES6 in a project, but i'm struggling with something quite unusual : I'm working with an enhanced ES5 js codebase that contains imports and export directives.
Here is an example :
import Widget from 'component:component-widget';
//ES5 code here
export default "something"
I would like to keep those imports, but transpile the rest of detected ES6 features.
I did not find a way to do it so far... :/
Do you know if something like that could be possible?
Thanks in advance!
via gwenp
No comments:
Post a Comment