johnpapa / generator-hottowel

Yo generator that creates an Angular app via HotTowel
835 stars 230 forks source link

How to make ES2015 Import statements work. #214

Open PedroPovedaQ opened 7 years ago

PedroPovedaQ commented 7 years ago

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

Affected platforms

Which gulp command are you running ?

{gulp serve-dev}

dashawk commented 7 years ago

You need to install babel to transpile your ES2015 codes.