TangMonk
V2EX  ›  Node.js

推荐一个工具 babel-watch,比 nodemon 快好多

  •  
  •   TangMonk · Jan 11, 2017 · 3230 views
    This topic created in 3429 days ago, the information mentioned may be changed or developed.

    babel-watch only starts babel in the "master" process where it also starts the file watcher. The transpilation is performed in that process too. On file-watcher events, it spawns a pure node process and passes transpiled code from the parent process together with the source maps. This allows us to avoid loading babel and all its deps every time we restart the JS script/app.

    https://github.com/kmagiera/babel-watch

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3439 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.