3 ms·
Even if this was faster than esbuild by whatever milliseconds, I would still probably go with esbuild for the api. esbuild is a delightfully raw, scriptable thi
by beepbooptheory 5y ago
Even if this was faster than esbuild by whatever milliseconds, I would still probably go with esbuild for the api. esbuild is a delightfully raw, scriptable thing, that is as simple or complicated as you want, you just make the node scripts and fun the functions.
Config with swc looks to more closely resemble babel/webpack with extensive config objects, which is fine, but it can only mean that it loses out to esbuild for me.
But I am not a professional or anything like that, so very much YMMV!
- k__ 5y agoI don't understand the difference between esbuild and swc.
- eyelidlessness 5y agoSWC is built in Rust, esbuild isn’t. /s Realistically they have fairly different goals: - esbuild’s goal is to be a fast JS/JSX/TS compiler and bundler with a simple plugin system to extend its behavior. It’s expected to largely stop adding scope there. - SWC’s goal is to be a fast JS/JSX/TS compiler, bundler, and extensible code transformer with broad compatibility with Babel and direct support for AST transformation. It’s also integrated into Deno, in a lower level way than APIs exposed by esbuild, so it’s a fair bit more general purpose (whether that’s intended or not, I don’t know).
- tazeg95 5y agoEsbuild can't yet convert to ES5. SWC can.