Babel plugin to import multiple files using wildcard syntax.
npm install --save-dev babel-plugin-wildcard-import
yarn add --dev babel-plugin-wildcard-import
In your babel configuration file, just add the package name into your plugins array.
{
plugins: [
'babel-plugin-wildcard-import'
]
}
or
{
plugins: [
'wildcard-import'
]
}