Skip to content

dittos/pbabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡️ pbabel

Parallel version of Babel CLI.

Install

$ npm install --save-dev pbabel

Usage

Pretty much same with Babel CLI.

  • You may use -j N option to limit concurrency. The number of CPUs is used by default.
  • --watch mode is not supported.

Performance

$ nproc
4

$ time ./node_modules/.bin/pbabel -d parallel frontend/js -q

real	0m2.831s
user	0m7.904s
sys	0m1.912s

Compared to the original babel-cli:

$ time ./node_modules/.bin/babel -d serial frontend/js -q

real	0m4.346s
user	0m4.152s
sys	0m0.768s

About

Parallel version of Babel command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published