Registry / babel-plugin-zova-component

babel-plugin-zova-component

JSON →
library1.1.8jsnpmunverified

babel-plugin-zova-component is a Babel plugin for transforming component metadata in the Zova framework. Version 1.1.8 is the latest stable release; the plugin is released as part of the Zova ecosystem with no fixed cadence. It is specifically designed to work with Zova's component system, automatically inserting runtime metadata during the build process. Unlike generic Babel plugins, this one is tightly coupled to Zova's architecture and should only be used within Zova projects. The plugin requires Babel 7+ and is typically used alongside other Zova-specific build tools.

npm install babel-plugin-zova-component
INSTALL
IMPORT
SIG · BABEL-PLUGIN-ZOVA-
B
babel-plugin-zova-component
javascriptv1.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
module.exports = require('babel-plugin-zova-component');
import plugin from 'babel-plugin-zova-component';
This package is CJS-only and should be used with require(). ESM import will fail.
babel-plugin-zova-component
// babel.config.js module.exports = { plugins: ['babel-plugin-zova-component'] };
module.exports = { presets: ['babel-plugin-zova-component'] };
This is a plugin, not a preset. Do not place it in the presets array.
babel-plugin-zova-component (with options)
// babel.config.js module.exports = { plugins: [ ['babel-plugin-zova-component', { /* options */ }] ] };
module.exports = { plugins: [ { 'babel-plugin-zova-component': { /* options */ } } ] };
Options should be passed in an array entry, not an object with the plugin name as key.

Configures Babel with the plugin and shows a typical component definition in Zova.

// babel.config.js module.exports = { presets: [ ['@babel/preset-env', { targets: { node: 'current' } }] ], plugins: ['babel-plugin-zova-component'] }; // index.js import { defineComponent } from 'zova'; export default defineComponent({ // component code }); // Run: npx babel index.js --out-file compiled.js
Debug
Known issues
gotchaThis plugin only works within Zova projects. Using it in non-Zova projects will produce no transformation or may error.
fix
Ensure your project is built on the Zova framework. If you are not using Zova, remove this plugin.
affects: >=1.0
gotchaThe plugin expects components to be defined using Zova's 'defineComponent' or similar Zova-specific syntax. Plain React or Vue component definitions will not be processed.
fix
Wrap your components with Zova's defineComponent or use Zova's component API.
affects: >=1.0
deprecatedSome configuration options from earlier versions have been deprecated. Check the plugin source for current supported options.
fix
Update your config to use only documented options. Refer to the plugin's README or source code for the latest list.
affects: <=1.1.0
breakingVersion 1.1.0 changed the way metadata is inserted, which may break custom serialization or tree-shaking setups.
fix
Review your build output for changes in metadata format. If you rely on or parse the inserted metadata, adjust accordingly.
affects: >=1.1.0 <1.1.0
Errors
Common errors & fixes
Error: [BABEL] unknown plugin "babel-plugin-zova-component" specified in "..."
The plugin is not installed or not in node_modules.
fix
Run 'npm install babel-plugin-zova-component --save-dev' or 'yarn add babel-plugin-zova-component --dev'.
TypeError: (0 , _babelPluginZovaComponent.default) is not a function
Attempting to import the plugin via ES module import instead of require().
fix
Use require() in your Babel config: module.exports = { plugins: [require('babel-plugin-zova-component')] };
ReferenceError: defineComponent is not defined
The plugin's transform depends on Zova's defineComponent being available globally or imported.
fix
Import defineComponent from 'zova' in your component files: import { defineComponent } from 'zova';
Upgrade
Version history
1.1.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
babel-plugin-zova-component — npm install babel-plugin-zova-component · libregistry