A Babel plugin that cooperates with Istanbul to report code coverage data to Canyon's coverage backend. This plugin instruments JavaScript code during Babel transformation, capturing coverage information that can be sent to Canyon's server for aggregation and visualization. The current stable version is v3.0.10 and is actively maintained. It is designed specifically for use with the Canyon coverage platform, differentiating itself by tight integration with Canyon's API and support for incremental coverage reports. It requires axios as a peer dependency to communicate with the Canyon server. The plugin is suitable for CI/CD pipelines where coverage reporting is needed.
npm install babel-plugin-canyonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the Babel plugin in a project to instrument code and send coverage to Canyon server.
Upgrade to v3.x and update plugin options according to the new documentation (https://docs.canyonjs.io/cn/docs/ecosystem/babel-plugin-canyon).
Migrate to @canyonjs/babel-plugin when available.
Install axios: npm install axios.
Ensure your project uses Babel 7 or later.
Install axios (npm install axios) and ensure it is available at runtime.
Run 'npm install --save-dev babel-plugin-canyon' and check that the package is in node_modules.
Use 'canyon' as the plugin name (e.g., plugins: ['canyon']).