How to use Babel (https://babeljs.io/docs/setup/) in ASP.NET development environment?
Using modern language features and browser APIs makes writing code easier, faster, and more fun. It also makes your code more maintainable. If you're happy writing ES5 and using XMLHttpRequest() , you definitely don't need Babel, but you might need some kind of therapy.
Simply add a "scripts" field to your package. json and put the babel command inside there as build . This will run Babel the same way as before and the output will be present in lib directory, only now we are using a local copy. Alternatively, you can reference the babel cli inside of node_modules .
Visual Studio CODE allows Babel development. http://blogs.msdn.com/b/vscode/archive/2015/07/06/vs-code-es6.aspx
Visual Studio 2015 has't fully implemented ES2015 yet, but it will be coming.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With