generator-hottowel
generator-hottowel copied to clipboard
How to make ES2015 Import statements work.
Issue details
Hi, what must I add to my gulp configuration so that import and export statements work? I have ES2015 Classes working already, but when I try to import something I get: refunds.modal.controller.js:1 Uncaught SyntaxError: Unexpected token import
Steps to reproduce/test case
Import any module. E.G: import angular from 'angular';
Please specify which version of generator-hottowel
, node and npm you're running
- [0.0.11 ] generator-hottowel
- [7.4.0 ] Node
- [ 4.0.5] Npm
Affected platforms
- [ X] linux
- [ X] windows
- [ X] OS X
- [ ] other (please specify which)
Which gulp command are you running ?
{gulp serve-dev}
You need to install babel to transpile your ES2015 codes.