Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
react-icons / plugin / defaultImportConverter.js
Size: Mime:
module.exports = (babel, options) => {
  return {
    name: "default-import-converter",
    visitor: {
      ImportDeclaration(path) {
        var spec = path.node.specifiers.map(spec =>
          options.keys.includes(spec.local.name)
            ? babel.types.ImportDefaultSpecifier(spec.local)
            : spec
        );
        path.node.specifiers = spec;
      }
    }
  };
};