News for hackers. Stuff that matters.
Re:Rome: An experimental JavaScript toolchain by sam_goody on Monday April 13, 2020 @01:16PM (#22857739)
Is this meant to replace Webpack + some list of plugins, does this get added to Webpack, or is this meant to go somewhere else entirely in the JS toolchain?

If this replaces Webpack, can someone please list a combination of popular plugins that this compares to. (Or even a few lists - would it replace Grunt + something?)

If not, can you tell me what other software this compares to, so that I can better understand it?

I am sure that I am not the only one who has some familiarity, but doesn't live in the system. Having a point of comparison would be extremely helpful.

Re:Rome: An experimental JavaScript toolchain by coolwhit on Monday April 13, 2020 @01:30PM (#22857912)
The scope is even broader! Webpack is just a bundler. Rome is a bundler, linter, test runner, typescript compiler, and formatter. The proper comparison would be Webpack + ESLint + Jest + TSC + Prettier.
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
Re:Rome: An experimental JavaScript toolchain by seph-reed on Monday April 13, 2020 @01:43PM (#22858023)
I've been using fuse-box for a while, and am not sure I could be much happier. It's a bundler with big dreams, but mostly it's just really fast and the devs are responsive.