Webpack preloader that expands glob patterns in ES6 import statements and Sass @import rules. Version 1.5.0 (latest) is stable; no recent updates. Replaces literal imports with individual file imports. Works only as a Webpack loader (preloader or chained). Alternatives include `bulk-require` or `import-meta-glob` for ESM. No TypeScript support. Not compatible with webpack 2+ as a preloader (must use chained loader). Last published in 2015.
npm install import-globVerified import paths — ran on the pinned version, not inferred.
Basic webpack config using import-glob as a loader and code that it transforms.
Use module.rules instead of module.preLoaders.
Always ensure the loader is applied to files containing glob imports.
Use Vite's import.meta.glob or Webpack 5's magic comments with context modules.
Move loader configuration from `module.preLoaders` to `module.rules` and ensure order if needed.
Ensure webpack config has the correct test and loader for files using glob imports.