Sucrase = 20x faster build times than Babel? #1350
Replies: 2 comments 1 reply
-
Sucrase is an interesting project, but we don't actually use babel inside of Snowpack! We use esbuild, which is written in Go, compiled to WASM, and probably significantly faster than even Sucrase. Some of our plugins like |
Beta Was this translation helpful? Give feedback.
-
Actually esbuild has both native and WASM versions. If you're using the WASM version for Snowpack then you'll almost certainly want to switch to the native version, which is significantly faster (e.g. it's multi-threaded while WASM is single-threaded). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just noticed a rollup plugin called @rollup/plugin-sucrase and like most node ecosystem things, I was like, "Hey, another project I haven't heard about. Let's check it out."
It turns out Sucrase is a fork of Babel that makes the following interesting and snowpacky assumption:
Has it been considered as part of the compiling step of snowpack?
Beta Was this translation helpful? Give feedback.
All reactions