Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@talend/babel-plugin-import-from-index

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@talend/babel-plugin-import-from-index

Transform default imports from specific path to named import from index

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
379
increased by3.27%
Maintainers
1
Weekly downloads
 
Created
Source

plugin-import-from-index

This module is a babel plugin that transform default imports from specific file, into named imports from index.

Before

import React from 'react';
import { SidePanel } from '@talend/react-components';
import Actions, { ActionButton, ActionDropdown } from '@talend/react-components/lib/actions';
import List from '@talend/react-components/lib/List';

After

import React from 'react';
import { SidePanel, Actions, ActionButton, ActionDropdown, List } from '@talend/react-components';

How to use

Installation

npm i --dev @talend/babel-plugin-import-from-index
yarn add -D @talend/babel-plugin-import-from-index

Configuration

// .babelrc.json
{
	"plugins": ["@talend/babel-plugin-import-from-index"]
}

FAQs

Package last updated on 04 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc