I'm trying to get gulp-babel working as the only other way I've been able to do it is with webpack at the moment. It's all great that you can do your single layer script but the minute you start doing imports it doesn't include the script. For example I'll do import $ from 'jQuery';
and all it provides in my rendered js is:
var _jQuery = require('jQuery');
var _jQuery2 = _interopRequireDefault(_jQuery);
Where as I'm expecting the jQuery code to compile into the top of the file. It's precisely this reason why I'm moving over to webpack which is an even bigger ball ache for most anything else that gulp handles easily! Dev's think it's not but just like with pregnancy & birth it's easily forgotten, the pain and heartache leading to the wonderous outcome.
Does anybody have any advice on this.
thank you in advance :-)