Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

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

Package Overview
Dependencies
1
Maintainers
1
Versions
25
Issues
File Explorer

Advanced tools

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

Transform default imports from specific path to named import from index

    1.5.1latest
    Github

Version published
Maintainers
1
Weekly downloads
599
decreased by-3.23%

Weekly downloads

Readme

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

Last updated on 28 Jun 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc