Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Babel in Visual Studio? [closed]

How to use Babel (https://babeljs.io/docs/setup/) in ASP.NET development environment?

like image 562
Ricky Avatar asked Sep 28 '15 03:09

Ricky


People also ask

Do you need to use Babel?

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.

How do you use Babel?

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 .


1 Answers

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.

like image 110
neilhighley Avatar answered Oct 05 '22 18:10

neilhighley