babel-plugin-import-directory icon indicating copy to clipboard operation
babel-plugin-import-directory copied to clipboard

Add support for importing specific module from directory

Open gurs1kh opened this issue 7 years ago • 1 comments

Using the README.md example, it would be nice if you could do something like:

import { actionA, actionB } from './actions';

This way you could import only what you need without having to write out a separate import for each one.

gurs1kh avatar Jul 11 '18 04:07 gurs1kh

This is done by adding one asterisk to the path:

import {
  LoggedOutScreen,
  ClientsListScreen,
  ReceiptsScreen,
} from './src/screens/*';

It's in the latest examples.

jfeldstein avatar Jan 19 '20 15:01 jfeldstein