News for hackers. Stuff that matters.
Re:A web of trust for NPM by kitten_mittens_ on Saturday October 03, 2020 @08:35PM (#24675785)
Two of my last three jobs did NOT need to compile down to ES5. The current shop is supporting only ES2020 browsers.
Re:A web of trust for NPM by offtop5 on Saturday October 03, 2020 @08:59PM (#24675859)
Doesn't typescript force Babel ?
Re:A web of trust for NPM by acemarke on Saturday October 03, 2020 @09:05PM (#24675878)
No. Typescript is its own entirely separate standalone compiler toolchain.

If you are using Babel as a compiler, you can enable the TS syntax plugin to have Babel strip TS type syntax out of its processing output, although this does not do any typechecking during the compilation process.

Re:A web of trust for NPM by offtop5 on Saturday October 03, 2020 @09:20PM (#24675942)
Great. I'm always open to being proved wrong.

Any chance of JS being mostly Babel free by next year ?

Re:A web of trust for NPM by acemarke on Saturday October 03, 2020 @09:54PM (#24676052)
Ah... no, not in the slightest.

Every major web framework's standard build tools (Create-React-App, Vue-CLI, etc), are based on Webpack + Babel, and most folks who are using one of those frameworks but setting up their own build toolchains still base them around Webpack + Babel.

There's some potentially interesting technical alternatives out there, but Babel is a keystone in the modern JS ecosystem.

Re:A web of trust for NPM by crucialfelix on Sunday October 04, 2020 @06:19AM (#24677757)
Since typescript tsc can compile js, you could switch to using the typescript compiler to compile your javascript.

It would also detect some probable bugs in your js code.

Of course after a day or two you would start writing typescript and never look back.