forked from zhurui/management
詹力 1a19ec897f | ||
---|---|---|
.. | ||
lib | ||
README.md | ||
package.json |
README.md
@babel/helper-split-export-declaration
API
declare export default splitExportDeclaration(path: NodePath);
Usage
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);
},
});