htc 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 周之前
..
lib 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 周之前
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 周之前
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 周之前

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);
  },
});