UNPKG

@modus/gimbal-plugin-source-map-explorer

Version:

Adds Source Map Explorer auditing to Gimbal

15 lines (14 loc) 800 B
import { ExploreResult } from 'source-map-explorer/dist/src'; import { Report, ReportItem } from "../../typings/command"; import { PluginOptions } from "../../typings/config/plugin"; import { Options } from "../../typings/module/registry"; import { BundleType, Config } from './config'; declare type RunModuleFn = (options: Options) => Promise<Report>; interface RawReport extends ExploreResult { bundle: string; } export declare const getThreshold: (file: string, bundleConfig: BundleType) => string | undefined; export declare const parseBundle: (rawBundle: RawReport, bundleConfig: BundleType) => ReportItem; export declare const runModule: (pluginConfig: Config) => RunModuleFn; export declare const registerModule: ({ bus }: PluginOptions, pluginConfig: Config) => Promise<void>; export {};