From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- .../@babel/plugin-syntax-decorators/README.md | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 node_modules/@babel/plugin-syntax-decorators/README.md (limited to 'node_modules/@babel/plugin-syntax-decorators/README.md') 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. -- cgit v1.2.3