Socket
Book a DemoInstallSign in
Socket

babel-time-travel

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-time-travel

Debugger for babel

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

babel-time-travel

npm npm npm

screenshot screenshot

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

Keywords

babel

FAQs

Package last updated on 09 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts