Support for es6 imports
kkwiatkowski opened this issue · 4 comments
It would be great to give ability to import your library as ES6 module (without transpilation) in projects written in ES6 (there is possiblity to import in such way with rollup).
Good point. I will add it!
Are you sure only one package.json field is required? I assume that the whole project should not be transpiled. The tricky part is the feature heavily used in the library which is proposal only and might not be included anytime soon.
Right now it does not look so easy and I'm not sure about it anymore since project has evolved during that time.
I'm not even sure if exposing additional entry point with not transpiled ES6 modules would give any gain just because babel is dealing with it fine.
However if we think about native ES6 modules, it might be worth to introduce ES6 module compatible build with additional ES next entry in package.json file.
Closing then, it looks like conceptual discussion rather than a matter of the improvement itself. Thanks.