An esbuild plugin (v0.2.0, stable but low activity) that enables glob patterns in import statements to bundle multiple files as a single module. Differentiates from alternatives like esbuild-plugin-import-glob by supporting `entryPoint` and `camelCase` options for organizing imports into nested objects keyed by directory structure. Built on fast-glob for performance.
npm install esbuild-plugin-glob-importNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up the plugin with esbuild, enabling glob imports that organize files by directory, with camelCase keys and entry point filtering.
Add a declaration file (e.g., glob.d.ts) with `declare module '*?glob'` or use `// @ts-ignore` comments.
Upgrade to v0.2.0 and review default options; if relying on falsey entryPoint, set `entryPoint: false` explicitly.
Ensure fast-glob is installed (npm install fast-glob) and at a compatible version.
Set `camelCase: false` to preserve original names, or rename source files accordingly.
Run `npm install fast-glob` in your project.
Use `import globImport from 'esbuild-plugin-glob-import'` (no named import).
Create a type declaration file (e.g., glob.d.ts) with `declare module '*?glob'` or suppress with `// @ts-ignore`.
Ensure entryPointMatch is either null or a function.