Registry /
devops / license-info-webpack-plugin
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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LicenseInfoWebpackPlugin
✓ import LicenseInfoWebpackPlugin from 'license-info-webpack-plugin'
✗ const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin')
The package exports a default export. Using require with destructuring may fail; use require('license-info-webpack-plugin').default instead.
default
✓ const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default
✗ const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin')
In CommonJS, the plugin is not the default export of the module; you must access .default to get the constructor.
LicenseInfoWebpackPlugin (type)
✓ import type { LicenseInfoWebpackPluginOptions } from 'license-info-webpack-plugin'
The package does not export TypeScript types; type definitions must be authored manually or are not provided.
Demonstrates basic usage of the plugin in a webpack configuration, showing all available options.
const path = require('path');
const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default;
module.exports = {
mode: 'production',
entry: './src/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
plugins: [
new LicenseInfoWebpackPlugin({
glob: '{LICENSE,license,License}*',
outputType: 'banner',
includeLicenseFile: true
})
]
};
Errors
Common errors & fixes
TypeError: LicenseInfoWebpackPlugin is not a constructor
Using require without .default when the package uses ES module default export.
fixconst LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default; Error: Plugin could not be instantiated - options.glob is not a string
The glob option expects a string pattern; passing an array or other type.
fixSet glob to a string like '{LICENSE,license,License}*'. Audit
Dependencies
No dependency data recorded yet.