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

1.7.1 • Public • Published

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"]
}

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

373

Version

1.7.1

License

Apache-2.0

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • talend-frontend