lucide/tools
Daud Tariq bfe90f03d9
fix(lucide-react-native): include license banner once instead of in every module (#5194)
With `preserveModules`, rollup-plugin-license prepends the @license banner
to every emitted module, so all ~2,370 files in dist/esm and dist/cjs carried
it. Minifiers keep @license comments, so consumer bundles ended up with the
text repeated many times (#3744).

Add an opt-in `licenseBannerExclude` option to the shared rollup plugins and
use it in lucide-react-native to keep the banner only on `Icon`. Every icon
imports `createLucideIcon`, which imports `Icon`, and direct use of the `Icon`
component imports it too, so the license is still included in production
builds, exactly once.

Other packages are unchanged: the option defaults to no filtering.
2026-11-12 08:20:16 +01:00
..
build-font chore(typchecking): More typecheck jobs for all packages (#4885) 2026-09-22 13:49:09 +02:00
build-helpers fix(dev): avoid polynomial regex backtracking in toCamelCase helper (#5148) 2026-11-02 20:18:25 +01:00
build-icons feat(metadata|docs): reusable tag groups with $group: (#5037) 2026-10-29 17:29:58 +01:00
rollup-plugins fix(lucide-react-native): include license banner once instead of in every module (#5194) 2026-11-12 08:20:16 +01:00