https://github.com/xtuc/babel-plugin-example
https://github.com/xtuc/babel-plugin-example
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xtuc/babel-plugin-example
- Owner: xtuc
- Created: 2018-04-24T13:16:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T18:42:00.000Z (almost 8 years ago)
- Last Synced: 2025-03-17T11:52:44.892Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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