News for hackers. Stuff that matters.
Re:Rome: An experimental JavaScript toolchain by sam_goody on Monday April 13, 2020 @01:37PM (#22857976)
Thank you!

So, this is a bundler with built in plugins?

Is there is a way to add Babel etc, that I would have used with Webpack? Does it handle CSS?

And why would I prefer this over that chain (simpler to set up? Trust in Facebook over the people at js.foundation?)

Re:Rome: An experimental JavaScript toolchain by snazz on Monday April 13, 2020 @01:43PM (#22858027)
The standard stack is unnecessarily complex and very difficult to security-audit. By not having any third-party dependencies, you don't need to trust thousands of individual developers to not have their NPM accounts compromised or to push something with a subtle security bug.
Re:Rome: An experimental JavaScript toolchain by coolwhit on Monday April 13, 2020 @01:46PM (#22858059)
The selling point is that you don't need plugins at all. Rome is the entire toolchain in one tool. For example, you don't need to add Babel because Rome handles transpilation.

The question is - will Rome perform as well as all the tools it intends to replace. Can it be a better Babel than Babel is? (There's a good chance it could since the creator of Rome is the creator of Babel)

Re:Rome: An experimental JavaScript toolchain by ratww on Monday April 13, 2020 @02:15PM (#22858372)
I would bet on it performing better too, since Webpack/Babel/ESLint/TSC/Terser/Prettier all have to parse/process/pretty-print the code, using Javascript as the intermediate representation between each tool. That's very wasteful.

With a unified tool you can use a single AST. Or even better: an intermediate representation. You only need to parse and pretty-print once.

Re:Rome: An experimental JavaScript toolchain by yohannparis on Monday April 13, 2020 @01:52PM (#22858127)
It does not handle CSS, JavaScript only