mage-obsidian
| Install | |
|---|---|
npm install mage-obsidian |
|
| Latest Version: | 4.1.2 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · npm |
Development happens in mage-obsidian/framework. This package is published to npm from there; this repository is a read-only copy. Open issues and pull requests there.
mage-obsidian — JS Build Engine
📚 Documentation · 🚀 Live demo · 💬 Discussions
The JavaScript build engine behind MageObsidian, a modern frontend for Magento 2. ESM-only, consumed by the Vite harness as the mage-obsidian npm package.
What it does
- Theme inheritance resolution — merges module web assets with theme and parent-theme overrides into the final set of JS/Vue/CSS entries, Magento-style.
- Precompilation — generates per-theme
precompiled.js/precompiled.cssconsumed as Vite inputs. - JS interceptors — a port of Magento's plugin system (
before/around/after,sortOrder) implemented as a Vite plugin with virtual modules, so a module can customize another module's JS without patching its source. mage-obsidian:build-themes— the CLI that reads the config contract generated by the PHP side and runsvite build/ dev server per theme.
Usage
You normally don't install this package directly — it comes with the Vite harness:
composer require mage-obsidian/component-modern-frontend
pnpm --prefix vite install
See the documentation for theme/module configuration (theme.config.js, module.config.ts, interceptors and more).
Development
npm test # Jest with native ESM
Support the project
If MageObsidian saves you time, consider buying me a coffee. ❤️
Related Packages
Restyles Nuxt UI v4 with the SleekSpace design system: beveled corners, OKLCH ra...
Construction et rechargement à chaud des frontends de chaque module Nodefony — V...
Create, validate, type, build, package, and locally preview independently deploy...
Version History
| Version | Released | License |
|---|---|---|
| 4.1.2 | MIT | |
| 4.1.1 | MIT | |
| 4.1.0 | MIT | |
| 4.0.2 | MIT | |
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.9.1 | MIT | |
| 2.9.0 | MIT | |
| 2.8.0 | MIT | |
| 2.7.2 | MIT | |
| 2.7.1 | MIT | |
| 2.7.0 | MIT | |
| 2.6.1 | MIT | |
| 2.6.0 | MIT | |
| 2.5.0 | MIT | |
| 2.4.1 | MIT | |
| 2.4.0 | MIT | |
| 2.3.0 | MIT | |
| 2.2.0 | MIT | |
| 2.1.0 | MIT | |
| 2.0.0 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.12 | MIT | |
| 1.0.11 | MIT |
Showing the latest 30 of 41. See every release on npm