generator-hottowel icon indicating copy to clipboard operation
generator-hottowel copied to clipboard

How to make ES2015 Import statements work.

Open PedroPovedaQ opened this issue 7 years ago • 1 comments

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}

PedroPovedaQ avatar Mar 31 '17 14:03 PedroPovedaQ

You need to install babel to transpile your ES2015 codes.

dashawk avatar Aug 07 '17 07:08 dashawk