A Babel plugin for the Zova framework that enables module-based bean resolution and injection. Current stable version is 1.2.8. Released as part of the Zova project, follows Zova's release cadence. Key differentiator: transforms module-scoped bean decorators/annotations into runtime injectable code, essential for Zova's IoC container. Unlike generic DI plugins, it understands Zova's module system and generates proper module references.
npm install babel-plugin-zova-bean-moduleVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the Babel plugin in a typical Node.js project using CommonJS.
Ensure your source files are part of a Zova module (e.g., have @Module decorator or equivalent).
Migrate from @Bean() decorator (legacy) to @bean() (ES proposal) syntax.
Run npm install --save-dev babel-plugin-zova-bean-module and ensure it's listed in devDependencies.
Add '@babel/plugin-proposal-decorators' to your Babel plugins array: plugins: [['@babel/plugin-proposal-decorators', { version: '2023-05' }], 'babel-plugin-zova-bean-module']Use CommonJS require: const plugin = require('babel-plugin-zova-bean-module'); or reference the string name in Babel config.No dependency data recorded yet.