yeoman / generator-webapp

A gulp.js generator for modern webapps
3.77k stars 708 forks source link

Import, Export from ES6/7 #666

Closed futureinapps closed 7 years ago

futureinapps commented 7 years ago

Hi, how can i use import, exports from ES6 in ./scripts?

neilhem commented 7 years ago

Hi, you need to use tools like Browserify to use imports. We have tutorial how to integrate browserify.

silvenon commented 7 years ago

For that we would need a module bundler. We should probably integrate one soon, and it should probably be browserify, because it integrates well with Gulp. I will close this in favor of #618, because removing Bower will imply some kind of module bundling, which will imply ES6 imports. 😃