diff options
Diffstat (limited to 'node_modules/@babel/plugin-syntax-decorators/README.md')
| -rw-r--r-- | node_modules/@babel/plugin-syntax-decorators/README.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/node_modules/@babel/plugin-syntax-decorators/README.md b/node_modules/@babel/plugin-syntax-decorators/README.md new file mode 100644 index 00000000..a0627557 --- /dev/null +++ b/node_modules/@babel/plugin-syntax-decorators/README.md @@ -0,0 +1,43 @@ +# @babel/plugin-syntax-decorators + +> Allow parsing of decorators. + +## Installation + +```sh +npm install --save-dev @babel/plugin-syntax-decorators +``` + +## Usage + +### Via `.babelrc` (Recommended) + +**.babelrc** + +```json +{ + "plugins": ["@babel/plugin-syntax-decorators"] +} +``` + +### Via CLI + +```sh +babel --plugins @babel/plugin-syntax-decorators script.js +``` + +### Via Node API + +```javascript +require("@babel/core").transform("code", { + plugins: ["@babel/plugin-syntax-decorators"] +}); +``` + +## Options + +### `legacy` + +`boolean`, defaults to `false`. + +Use the legacy (stage 1) decorators syntax. |
