JSPM

  • Created
  • Published
  • Downloads 31602770
  • Score
    100M100P100Q272821F
  • License MIT

Package Exports

  • @babel/helper-split-export-declaration

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@babel/helper-split-export-declaration) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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