0.3.2 • Published 3 years ago

babel-time-travel v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

babel-time-travel

npm npm npm

Tell you the story about how every babel plugin transform your file inside a blackbox

Installation

npm i babel-time-travel -g

Usage

babel-time-travel will register a global command named btt after a global installation

To use it, simply add your own command after btt

Format: btt options -- your-command

btt -- npm run build
btt -- babel src --out-dir lib
btt -- ... # any other command

With options

  • --filter

    btt --filter axios/lib -- npm run build

    If babel-time-travel is slow running in your project, you can limit it to only run on certain files by using --filter option

Note

  • Blackboxed babel should run in the same process with your command
  • Don't cache any babel transformation result( like babel-loader caching )
  • Options like --filter should placed before --

Thanks

Highly inspired by babel/babel-time-travel which supports time travel in browser

License

MIT

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago