Babel-Plugin-Run-Comment-Code
Run the code in the comments
Example
// begin// code>>console.log('begin')let str = 'hello world';// code>>str = 'Hello World';console; ↓ ↓ ↓ ↓ ↓ ↓ //beginconsolelet str = 'hello world';str = 'Hello World';console;
Usage
npm install babel-plugin-run-comment-code -D
Via .babelrc or babel-loader
Note
It is not recommended to use this plugin in a production environment, the purpose of this plugin is just for debugging