Registry / devops / webpack-glob-entry

webpack-glob-entry

JSON →
library2.1.1jsnpmunverified

A utility function for webpack that converts glob patterns into entry objects, allowing multiple entry points to be specified via globs. Current stable version is 2.1.1, with no updates since January 2017. It simplifies webpack configuration by automating entry point discovery, supporting custom entry name functions and base path extraction. Unlike manual entry arrays or other glob plugins, it integrates directly into the entry field and provides helper functions for path manipulation. However, it has not been updated for webpack 4/5 and may have compatibility issues.

npm install webpack-glob-entry
INSTALL
IMPORT
SIG · WEBPACK-GLOB-ENTRY
W
webpack-glob-entry
devopsjavascriptv2.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

entry
const entry = require('webpack-glob-entry')
import entry from 'webpack-glob-entry'
Package is CommonJS-only; no ES module support.
entry.basePath
const entry = require('webpack-glob-entry').basePath
const basePath = require('webpack-glob-entry').basePath
basePath is a static method on the entry function, not a separate export.
entry (default)
const entry = require('webpack-glob-entry')
const { entry } = require('webpack-glob-entry')
The module exports a single function directly; destructuring will yield undefined.

Uses webpack-glob-entry to generate a webpack entry object from a glob pattern, showing basic usage with a single glob.

const entry = require('webpack-glob-entry'); const path = require('path'); module.exports = { entry: entry('js/*.entry.js'), // converts to { 'js/some': './js/some.entry.js' } output: { path: path.resolve(__dirname, 'public/build'), filename: '[name].bundle.js' } };
Debug
Known issues
breakingIn v2.0.0, entryNameFn now takes only one parameter (file path), not the previous two (file path and index).
fix
Update custom entry name functions to accept a single argument; remove the unused index parameter.
affects: >=2.0.0
gotchaPackage has not been updated since 2017; it may not be compatible with webpack 4 or 5 (e.g., entry object expectations).
fix
Test with your webpack version; consider alternatives like 'glob' with manual entry mapping.
affects: >=2.0.0
gotchaThe entry function expects glob patterns as separate arguments, not an array. Passing an array will cause incorrect behavior.
fix
Use spread: entry(...globArray) or call entry with multiple string arguments.
affects: >=1.0.0
Errors
Common errors & fixes
entry is not a function
Using ES import syntax with this CommonJS-only module.
fix
Use const entry = require('webpack-glob-entry')
Cannot find module 'webpack-glob-entry'
Package not installed or incorrect module path.
fix
Run npm install webpack-glob-entry --save-dev
TypeError: Cannot destructure property 'entry' of ... undefined
Using destructured import on the default export.
fix
Use const entry = require('webpack-glob-entry') without destructuring.
Upgrade
Version history
2.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
webpack-glob-entry — npm install webpack-glob-entry · libregistry