From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- .../helper-split-export-declaration/README.md | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 node_modules/@babel/helper-split-export-declaration/README.md (limited to 'node_modules/@babel/helper-split-export-declaration/README.md') diff --git a/node_modules/@babel/helper-split-export-declaration/README.md b/node_modules/@babel/helper-split-export-declaration/README.md new file mode 100644 index 00000000..195f151e --- /dev/null +++ b/node_modules/@babel/helper-split-export-declaration/README.md @@ -0,0 +1,23 @@ +# @babel/helper-split-export-declaration + +## API + +```js +declare export default splitExportDeclaration(path: NodePath); +``` + +## Usage + +```js +import traverse from "@babel/traverse"; +import splitExportDeclaration from "@babel/helper-split-export-declaration"; + +// ... + +traverse(file, { + ExportDefaultDeclaration(path) { + if (!path.get("declaration").isClassDeclaration()) return; + splitExportDeclaration(path); + }, +}); +``` -- cgit v1.2.3