Introducing the New Compiler - serpack
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.
Below is a comparison between the serpack loader and the esbuild loader.
yarn workspace @playground/typescript dev --loader-performance --serpack
The serpack loader does not yet support error tracking.
Serpack is not finished yet and there are many bugs.
npx zely dev --serpack # or npx zely-cli dev --serpack
Just enable experimental.useSerpack
!
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