faucet-pipeline / faucet-pipeline-js

JavaScript asset pipeline
Apache License 2.0
7 stars 6 forks source link

Replace TypeScript, Babel & terser with swc #203

Open moonglum opened 2 years ago

moonglum commented 2 years ago

After experimenting with esbuild in #149, I wanted to try out the other new "transpiler" swc. That's the one used by Deno and Parcel. Note that this PR does not replace rollup, it uses swc for transpilation ('esnext', TypeScript & JSX) and minification. swc bundling is still under development, and I think it is too early for us.

My impression is very positive. The generated code is very similar to what we have right now, but in the places where it is different, I prefer the output to the one from Babel (for example the way it compiles class).

Notes: