Registry / web-framework / babel-plugin-zova-behavior

babel-plugin-zova-behavior

JSON →
library1.1.8jsnpmunverified

A Babel plugin for the Zova framework that enhances class-based component behavior with decorators and runtime metadata. Version 1.1.8 supports Babel 7.x and uses modern JavaScript transformation patterns. Key differentiator: provides seamless integration with Zova's behavior system for DI and lifecycle management. No known alternatives.

npm install babel-plugin-zova-behavior
INSTALL
IMPORT
SIG · BABEL-PLUGIN-ZOVA-
B
babel-plugin-zova-behavior
web-frameworkjavascriptv1.1.8
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'
const babelPluginZovaBehavior = require('babel-plugin-zova-behavior')
ESM-only since v1.0
babelPluginZovaBehavior
import { babelPluginZovaBehavior } from 'babel-plugin-zova-behavior'
import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'
Named export also available
default (in babel.config.js)
module.exports = { plugins: ['babel-plugin-zova-behavior'] }
module.exports = { plugins: ['zova-behavior'] }
Use full package name

Shows how to enable the plugin in Babel configuration and use the @Behavior decorator.

// babel.config.js module.exports = { plugins: ['babel-plugin-zova-behavior'] }; // In your source file import { Behavior } from 'zova'; @Behavior() export class MyBehavior { created() { console.log('Behavior created'); } }
Debug
Known issues
breakingBabel 6 is not supported. Plugin uses Babel 7 API.
fix
Upgrade to Babel 7 and plugin version >=1.1.0
affects: <=1.0.0
deprecatedDecorator syntax is Stage 2 proposal, may change in future ECMAScript spec.
fix
Consider using TC39 decorators when stable
affects: all
gotchaPlugin must be before other decorator plugins in plugin list.
fix
Place 'babel-plugin-zova-behavior' before other decorator plugins in Babel config
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-plugin-zova-behavior'
Package not installed or not in node_modules.
fix
Run npm install babel-plugin-zova-behavior --save-dev
TypeError: this[Symbol.for('zova:behavior')] is not a function
Decorator applied to unsupported class type.
fix
Ensure decorator is only applied to classes extending predefined Zova base classes
Upgrade
Version history
1.1.8latest on npm
Audit
Dependencies
@babel/corerequiredpeer dependency for Babel plugin
Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
babel-plugin-zova-behavior — npm install babel-plugin-zova-behavior · libregistry