glob-imports
v3.0.3
Published
Support for glob-based file imports in JavaScript/TypeScript.
Downloads
20
Readme
glob-imports
Support for glob-based file imports in JavaScript/TypeScript.
Given the following file structure:
.
└── utils/
├── index.js
├── foo.js
├── bar.js
└── baz.js
Before:
// ./utils/index.js
export * from './foo.js';
export * from './bar.js';
export * from './baz.js';
// ... and all the other files inside `utils/`
After:
// ./utils/index.js
export * from 'glob:./!(index).js';