babel-plugin-transform-glob-import
Import multiple files at once with globs
Example
Importing both dir/a.js
and dir/b.js
at once:
; console;
You can also import deeply nested globs. The result is a nested object for each directory:
// import dir/a.js and dir/b/c.js; console;
Importing only some files with destructuring also works:
// imports only dir/a.js, and dir/b.js;
License
MIT