TangMonk
V2EX  ›  Node.js

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

  •  
  •   TangMonk · Jan 11, 2017 · 3192 views
    This topic created in 3409 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   ·   5882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
    ♥ Do have faith in what you're doing.