babel-plugin-run-comment-code

1.0.3 • Public • Published

Babel-Plugin-Run-Comment-Code

Run the code in the comments

NPM version

Example

// begin
// code>>console.log('begin')
let str = 'hello world';
// code>>str = 'Hello World';
console.log(str);
 
↓ ↓ ↓ ↓ ↓ ↓
 
//begin
console.log('begin')
let str = 'hello world';
str = 'Hello World';
console.log(str);

Usage

npm install babel-plugin-run-comment-code -D

Via .babelrc or babel-loader

{
    "plugins": ["run-comment-code"]
}

Note

It is not recommended to use this plugin in a production environment, the purpose of this plugin is just for debugging

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-run-comment-code

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.81 kB

Total Files

4

Last publish

Collaborators

  • xuexk