r/javascript • • Dec 05 '16

Dear JavaScript

https://medium.com/@thejameskyle/dear-javascript-7e14ffcae36c
807 Upvotes

271 comments sorted by

View all comments

0

u/fooey Dec 05 '16

I'm still amazed at what happened with Babel. It swung from being the most amazing thing to come out of the JS community, to symbolizing what people hate about JS, practically overnight.

Babel is a great example of why people need to think long and hard about the default settings they ship with.

I understand why the change was made, but it still annoys me every single time I have to setup a new project.

6

u/trakam Dec 05 '16

As someone relatively new to js and the community can you give me brief account of what babel was and what happened to it so that I can understand OPs article better?

21

u/Geldan Dec 05 '16 edited Dec 05 '16

Babel started as 6to5, which converted modern javascript to stuff that old browsers could understand.

It changed to Babel when the maintainers realized they were providing a great piece of software that would be useful long after browsers support es6.

Before version 6 Babel pretty much automatically just transpiled es6 to es5. After version 6, you have to specify what you want to transpiled. This often means just adding a reference to a preset in one of a number of ways: https://babeljs.io/docs/plugins/preset-latest/

It's still extremely useful, and the changes were necessary to keep the project ahead of the curve where it naturally lives due to its nature. For some reason, however, a large number of people got salty about having to add a line of configuration even though it is a useful and necessary feature.

Edit: the name of 6to5

→ More replies (1)