掘金小册《babel 插件通关秘籍》的案例代码:
git clone https://github.com/QuarkGluonPlasma/babel-plugin-exercize
node ./exercize-linter/src/eq-lint-entry.js (或其他路径)
编辑 .vscode/launch.json 配置
添加一个配置如下:
{
"name": "exercize-auto-track/src/index.js",
"program": "${workspaceFolder}/exercize-auto-track/src/index.js",
"request": "launch",
"type": "node"
}
然后点击 debug 面板的运行按钮,打断点调试