time-analytics-webpack-plugin
Version:
analytize the time of loaders and plugins
11 lines (10 loc) • 402 B
TypeScript
import type { RuleSetRule } from 'webpack';
/**
* get the folder name after the last "node_moduels"
*
* If the folder name is starts with '@', then try to combine next path as the whole name
*
* otherwise, the whole path
*/
export declare function getLoaderName(path: string): string;
export declare function normalizeRules(rules: RuleSetRule[] | undefined): RuleSetRule[] | undefined;