Rollup plugin (v0.4.0) that generates a disclosure.json file listing all bundled dependencies with their licenses, and optionally zips source files grouped by package. Works with rollup ≥1.0, vite ≥4.0, and rolldown ≥1.0.0-beta.0. Parses SPDX license expressions, aborts on ambiguous "or" licenses, and uses SPDX license texts. Similar to license-checker-webpack-plugin. Stable release cadence, TypeScript types included.
npm install rollup-plugin-ossNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal rollup config using rollup-plugin-oss with extra dependencies and filtering.
Ensure no circular dependency chains among bundled packages; see https://github.com/nodejs/readable-stream/issues/348
Manually specify the license using the 'extra' option or override the package's license field.
Use import statement or dynamic import() in an ESM context.
Use a function as filter for better flexibility.
npm install -D rollup-plugin-oss && use import syntax in an ESM module.
Use default import: import LicensePlugin from 'rollup-plugin-oss'.
Add an 'extra' entry for that dependency with a resolved license, or update the package's license.
No dependency data recorded yet.