调试 babel-watch 输出时使用源映射

Fel*_*len 7 debugging node.js source-maps babeljs babel-node

使用babel-watch,通过 Chrome 检查器调试时,我没有可用的源映射。

当运行使用相同的代码babel-node,具有相同.babelrc源的地图。

这是我的 .babelrc:

{
  "presets": [
    ["@babel/preset-env", { "targets": { "node": "current" } } ]
  ],
  "sourceMaps": "inline"
}
Run Code Online (Sandbox Code Playgroud)

我如何使源地图可用babel-watch