An open API service indexing awesome lists of open source software.

https://github.com/xtuc/babel-plugin-example


https://github.com/xtuc/babel-plugin-example

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# babel-plugin-example

## Run it directly

```sh
./node_modules/.bin/babel-node src/index.js
```

## Transpile it and run it

```sh
mkdir -p dist
./node_modules/.bin/babel src/index.js -o dist/index.js
node dist/index.js
```

## log -> console.log transformation

https://github.com/xtuc/babel-plugin-example/tree/feat-transpile-log

## fake decorator

https://github.com/xtuc/babel-plugin-example/tree/feat-transform-comments