4 ms·
Long live Babel 5.8! babel@5.8 is faster than babel 6+, can be installed globally and works out of the box. It just... you know, does what versions 1, 2, 3 &
by gavinpc 10y ago
Long live Babel 5.8!
babel@5.8 is faster than babel 6+, can be installed globally and works out of the box. It just... you know, does what versions 1, 2, 3 & 4 did: compile ES2015 into ES5. So I just use that. Not every project is a "node" project that is already dumping megabytes of dependencies into the project directory. I don't want to have to buy into an entire ecosystem just to use one tool—a shim, at that.
- ksherlock 10y agoI gave up and wrote my own babel cli front end (sudo npm install -g better-babel-cli) for that very reason. babel --es2015 --babeli infile.js -o outfile.js.
- remarkbabel 10y agoI tried another ES6 to ES5 compiler - buble. But it's too buggy to use right now. I'll revisit it in a year. https://gitlab.com/Rich-Harris/buble https://gitlab.com/Rich-Harris/buble