Serpack
Overview
Comparison

Comparison

#Compare with esbuild

SerpackEsbuildnote
Performance--Not measured - typically esbuild's compilation time is 50% to 130% of serpack's
SourcemapxoSourcemap generation is under development.
TypeScriptoo(.ts, .tsx), serpack uses swc as transformer
Stablexoserpack is still under active development

#Performance

  • command: yarn workspace @playground/typescript dev
  • workspace: @playground/typescript
Plain
$ --loader-performance --serpack
 
[@zely-js/core:serpack-loader] compiled zely.config.ts in 19.46ms
[12:50:58 AM] info use serpack (experimental-0.1.4)
[@zely-js/core:serpack-loader] compiled middlewares\index.ts in 4.55ms
[@zely-js/core:serpack-loader] compiled pages\index.ts in 6.35ms

For simple files, serpack is faster, but as files get larger, esbuild is up to 2x faster.