{"id":19250,"library":"babel-plugin-zova-behavior","title":"babel-plugin-zova-behavior","description":"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.","status":"active","version":"1.1.8","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","framework","zova"],"install":[{"cmd":"npm install babel-plugin-zova-behavior","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-zova-behavior","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-zova-behavior","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for Babel plugin","package":"@babel/core","optional":false}],"imports":[{"note":"ESM-only since v1.0","wrong":"const babelPluginZovaBehavior = require('babel-plugin-zova-behavior')","symbol":"default","correct":"import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'"},{"note":"Named export also available","wrong":"import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'","symbol":"babelPluginZovaBehavior","correct":"import { babelPluginZovaBehavior } from 'babel-plugin-zova-behavior'"},{"note":"Use full package name","wrong":"module.exports = { plugins: ['zova-behavior'] }","symbol":"default (in babel.config.js)","correct":"module.exports = { plugins: ['babel-plugin-zova-behavior'] }"}],"quickstart":{"code":"// babel.config.js\nmodule.exports = {\n  plugins: ['babel-plugin-zova-behavior']\n};\n\n// In your source file\nimport { Behavior } from 'zova';\n\n@Behavior()\nexport class MyBehavior {\n  created() {\n    console.log('Behavior created');\n  }\n}","lang":"javascript","description":"Shows how to enable the plugin in Babel configuration and use the @Behavior decorator."},"warnings":[{"fix":"Upgrade to Babel 7 and plugin version >=1.1.0","message":"Babel 6 is not supported. Plugin uses Babel 7 API.","severity":"breaking","affected_versions":"<=1.0.0"},{"fix":"Consider using TC39 decorators when stable","message":"Decorator syntax is Stage 2 proposal, may change in future ECMAScript spec.","severity":"deprecated","affected_versions":"all"},{"fix":"Place 'babel-plugin-zova-behavior' before other decorator plugins in Babel config","message":"Plugin must be before other decorator plugins in plugin list.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install babel-plugin-zova-behavior --save-dev","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'babel-plugin-zova-behavior'"},{"fix":"Ensure decorator is only applied to classes extending predefined Zova base classes","cause":"Decorator applied to unsupported class type.","error":"TypeError: this[Symbol.for('zova:behavior')] is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}