krasimir / webpack-library-starter

Webpack based boilerplate for producing libraries (Input: ES6, Output: universal library)
MIT License
1.36k stars 290 forks source link

Export alias on index.js (entry point) #16

Closed iamrommel closed 7 years ago

iamrommel commented 7 years ago

How can i do the alias export on my entry point as shown in the image below

image

krasimir commented 7 years ago

I'm not sure that you can use * as <something>. I have the feeling that the problem is not in webpack but in that kind of exporting. Also the error that I see is about syntax.

akkie commented 7 years ago

Either you have to install transform-export-extensions and add it as plugin into your .babelrc file or you have to install preset-stage-1 and add it as preset into your .babelrc file.

krasimir commented 7 years ago

Thanks for the answer @akkie.