You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@jswork/vite-require-context

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jswork/vite-require-context

Require context for vite.

1.0.4
latest
npmnpm
Version published
Weekly downloads
1
-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

vite-require-context

Require context for vite.

version license size download

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.

Keywords

context

FAQs

Package last updated on 27 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts