requirejs-babel
requirejs-babel copied to clipboard
Can I make it as the default loader for JS files?
Is there a way to make the babel loader the default loader for all JS files? That way I don't have to add es6! to my entire codebase's require calls. Thanks
+1, also, if it would compile the main.js file as well when set as default, bonus!
@koganei you need to add es6!
only to your first module, and then add those lines to config: https://github.com/mikach/requirejs-babel/blob/master/demo/build.config.js#L14
You could try integrating babel by onBuildRead
instead of by a pugin.