esbuild plugin enabling wildcard/glob imports for dynamic imports, import statements, and require calls. Version 0.0.15, limited to platform=node and bundle=true. Uses fast-glob as matching engine. Supports both CJS and ESM output formats but primarily tested on CJS. Ignores node_modules by default and supports custom ignore patterns. A lightweight alternative to TypeScript path mapping or manual file listing.
npm install esbuild-plugin-wildcard-importsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures esbuild with wildcard imports plugin, bundling for Node.js with CJS output. The plugin resolves glob patterns in import paths.
Ensure esbuild options include platform: 'node' and bundle: true.
Use format=esm or avoid top-level await in dynamically imported modules.
Do not attempt to include node_modules in glob patterns; they are excluded by design.
If you need other path types, the plugin will not resolve glob patterns.
Add platform: 'node' and bundle: true to esbuild build options.
Change format to esm or avoid top-level await in dynamically imported files.
Use import wildcardImports from 'esbuild-plugin-wildcard-imports'