New Compiler

do4ng - 25-01-13

Introducing the New Compiler - serpack

#Motivation

Currently, loaders using esbuild are very difficult to scale as I want. Although it can be implemented by putting the desired function into the code output by esbuild, there are minor problems such as low efficiency.

That's why I developed a compiler to replace the existing loader with serpack loader. New compiler is easy to scale and can be changed to my taste.

#Comparison

Below is a comparison between the serpack loader and the esbuild loader.

Performance

Terminal
yarn workspace @playground/typescript dev --loader-performance --serpack

INFO

serpack uses swc instead of esbuild

Error tracking

The serpack loader does not yet support error tracking.

Stability

Serpack is not finished yet and there are many bugs.

#Getting Started

Terminal
npx zely dev --serpack # or npx zely-cli dev --serpack

Just enable experimental.useSerpack!

#Conclusion

The serpack is not ready to be used as a production yet.
However, some of the features will be developed based on the serverpack, and the end goal is to replace the esbuild loader