{"library":"babel-plugin-import-glob","type":"library","category":null,"description":"Babel plugin that enables importing modules using glob patterns, allowing developers to import multiple modules from a directory in a single statement. Current stable version is 2.0.0, released with breaking changes: the glob: prefix is now optional, patterns must be relative (starting with ./ or ../), and identifiers are generated from the dynamic portions of the pattern. This plugin is tested with Node.js 4+. It supports default member import, namespace import, side-effect import, and member aliasing, but does not support importing the default export. The underlying mechanism uses the 'glob' package for pattern matching and 'identifierfy' for converting match strings to valid JavaScript identifiers. Key differentiators: avoids manual per-module imports, useful for template directories or side-effect modules, but not recommended for general use due to potential maintainability issues.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","babel-plugin"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install babel-plugin-import-glob","imports":["Not supported; use named imports or namespace import.","import { main } from './templates/**/*.handlebars.js'","import * as templates from './templates/**/*.handlebars.js'"]},{"cmd":"yarn add babel-plugin-import-glob","imports":[]},{"cmd":"pnpm add babel-plugin-import-glob","imports":[]}],"homepage":null,"github":"https://github.com/novemberborn/babel-plugin-import-glob","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-import-glob","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}