@jswork/vite-require-context
v1.0.3
Published
Require context for vite.
Downloads
7
Readme
vite-require-context
Require context for vite.
installation
npm install @jswork/vite-require-context
usage
import viteRequireContext from '@jswork/vite-require-context';
const moduleFiles = import.meta.glob('./shared/stores/*.ts', { eager: true });
const context = viteRequireContext(moduleFiles);
console.log('moduleFiles: ', moduleFiles, context);
license
Code released under the MIT license.