diff options
Diffstat (limited to 'node_modules/@babel/helper-split-export-declaration/README.md')
| -rw-r--r-- | node_modules/@babel/helper-split-export-declaration/README.md | 23 |
1 files changed, 23 insertions, 0 deletions
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); + }, +}); +``` |
