About javascript preprocessors

Well, here let's try to make a discussion about using preprocessors of javascript, because people hate/love features, etc, etc.

This is my personal opinion, hope you all contribute to this too.

If you can, please, avoid using any type of proceprocessor, why? the reason is quite simple:

you won't have to precompile and as a bonus, you won't have any possibility of messy code in your scripts.

Using a preprocessor, may have many, many advantages, cleaner code, evaluate if as expresions, return the last statement, etc. but many of them, I think, are counter productive, and they have bigger disadvantages compared to the small advantages.

The second option for me, is traceur, or any ES6 -> ES5 preprocessor, they are the best candidates to write clean code (because most of the ES6 features are just sugar, and some modules are already supported on many browsers), but if you are not using promises or things like that (Do you know what a promise in javascript is?) just using sugar for classes and arrow functions are really an overkill.

If you are planning to share your code, using a preprocessor is also a bad thing, imagine than other people will have to learn another language just for edit you, and imagine if everybody uses its own preprocessor...

"But there aren't many" you say ? ohhh, you are wrong.

Note: Using libraries like jQuery and Underscore should be out of here, they are related but not part of this topic.
I'm planning on using Babel, primarily since that's what I already use when writing JS/Node.js stuff. It compiles back into ES5, so no problems.

If using any non-ES preprocessor/transpiler, I'd leave Opal as a good choice, assuming that you're planning on tweaking/editing/maintaining the code afterwards to make sure that it works. One reason for this one is that the RM community is already largely invested in Ruby: Opal provides a great intermediate for the community to reuse RGSS/Ruby knowledge and then fill up that gap with JavaScript.
I don't use any preprocessor because IMO JS is beautiful itself, and it teaches me a lot (closure, functional programming, prototype pattern...). Also, I agree that not all people know about preprocessors (some may use CoffeeScript, while other use TypeScript or something else), but many many people (include most of preprocessors users) know JS.

When RMMV release, I will code in ES5 until ES6 is standardized and widely supported.
I'd like my scripts to be readable to other scripters from the get-go. While I do use preprocessors for some of my web based projects, for MV I don't see this as a good solution.
for myself I prefer coding in pure JS (ES5) I don't want to touch ES6 until I am sure this enough stable and supported in a lots of browser 

and I don't want to have to mess with library ect when I can just use the JSS one
I'll follow what MV does. If MV includes a preprocessor out-of-the-box I'll use that, otherwise I will just write in plain JS.
I'll follow what MV does. If MV includes a preprocessor out-of-the-box I'll use that, otherwise I will just write in plain JS.
same here I don't want to bother with big library who will may not be compatible with MV >_>
same here I don't want to bother with big library who will may not be compatible with MV >_>
A pre-processor isn't a library though (unless you use it to compile on-the-fly), and pre-processors compile to ES5 or ES3 so there shouldn't be any real problem with compatibility.
As a preprocessor i use TypeScript. In our company we use .Net language mostly so i ran into it.

On the other side i write the most code in pure ECMAScript (ES5) if it's not depend on my job.
I'm planning on using Babel, primarily since that's what I already use when writing JS/Node.js stuff. It compiles back into ES5, so no problems.

You are my god in every single way - Babel for the win. It lets us write ES6 code, compile JSX for React JS and with the help of gulp and mincer lets us use things like sprockets and require. 😀

When RMMV release, I will code in ES5 until ES6 is standardized and widely supported.

Hypothetically it already is, Babel. It compiles, as pointed out to ES5.

I will be using babel as I plan to write code the makes use of concepts like require() and module.exports not to mention some other ES6 features. I think Javascript is one of the best languages for writing nice, modular, complete code in either OO or functional paradigms 

Original thread: https://forums.rpgmakerweb.com/threads/about-javascript-preprocessors.44513/