Liferay npm Bundler Namespace Packages Plugin

JSON →
library 2.32.2 ·javascript maintenance
verified May 27, 2026

This plugin for `liferay-npm-bundler` modifies `package.json` files during the bundling process to prefix package names with the root project's name. This mechanism creates isolated dependency graphs for individual Liferay projects, effectively preventing dependency conflicts and ensuring predictable runtime behavior, particularly crucial when dealing with peer dependencies. It specifically targets package name entries and handles scoped packages by prepending the project's name to the scope (e.g., `@a-scope/a-package` becomes `@my-project$a-scope/a-package`). Introduced with `liferay-npm-bundler` 2.x to enable isolated dependencies, it addresses scenarios where package names need to be unique per bundle. The current stable version is 2.32.2. However, it is critical to note that its core dependency, `liferay-npm-bundler`, has been deprecated as of Liferay 2024.Q4/Portal GA129 and is slated for future removal, as Liferay shifts towards standard JavaScript tooling like esbuild, webpack, or vite. While still functional for existing Liferay DXP setups, its long-term relevance is diminishing. Its primary differentiator is providing project-level dependency sandboxing within the Liferay ecosystem, prioritizing stability and predictability over cross-project dependency deduplication.

total hits 12
actors 7 distinct systems
last hit 8d ago Script
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany