@codecov/rollup-plugin
Version:
Official Codecov Rollup plugin
41 lines (38 loc) • 1.3 kB
text/typescript
import * as _codecov_bundler_plugin_core from '@codecov/bundler-plugin-core';
import { Options } from '@codecov/bundler-plugin-core';
import { RollupPlugin } from 'unplugin';
/**
* Details for the Codecov Rollup plugin.
*
* @param {Options} options - See {@link @codecov/bundler-plugin-core!Options | Options} for more
* details.
*
* @example
* ```typescript
* // rollup.config.js
* import { defineConfig } from "rollup";
* import { codecovRollupPlugin } from "@codecov/rollup-plugin";
*
* export default defineConfig({
* plugins: [
* // Put the Codecov rollup plugin after all other plugins
* codecovRollupPlugin({
* enableBundleAnalysis: true,
* bundleName: "example-rollup-bundle",
* gitService: "github",
* }),
* ],
* });
* ```
*/
declare const codecovRollupPlugin: (options: Options) => RollupPlugin<any>[];
/**
* Do not use this plugin directly. For internal use only.
*
* Used to expose the rollup bundle analysis unplugin plugin that can be combined with other plugins
* to create a single plugin for a given meta-framework.
*
* @internal
*/
declare const _internal_rollupBundleAnalysisPlugin: _codecov_bundler_plugin_core.BundleAnalysisUploadPlugin;
export { _internal_rollupBundleAnalysisPlugin, codecovRollupPlugin };