app-decorators/packages/babel-plugin-app-decorators-component
This repository is deprecated. Its merged into:babel-plugin-app-decorators-element-to-function
Babel Plugin for auto generating code
Installation
$ npm install babel-plugin-app-decorators-element-to-
Usage
.babelrc
(Recommended)
Via .babelrc
.babelrc options
"plugins": "app-decorators-element-to-function"
Via CLI
$ babel --plugins app-decorators-element-to-
Via Node API
;
The goal of this babel-plugin is for app-decorators @component:
see also: https://github.com/babel/babel/issues/1548
Example 1
input:
output:
; HTMLImageElement
Tests
git clone https://github.com/SerkanSipahi/app-decorators.gitcd app-decorators/packages/app-decorators-element-to-functionnpm installnpm run test