Sha256: 64d80b595ea7fca433e0e42d5e86ebbd7a2958c02ff5e6de6eb6598194d043de
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
import { Plugin, PluginHooks } from 'rollup'; export type ResolverFunction = PluginHooks['resolveId']; export interface ResolverObject { buildStart?: PluginHooks['buildStart']; resolveId: ResolverFunction; } export interface Alias { find: string | RegExp; replacement: string; customResolver?: ResolverFunction | ResolverObject | null; } export interface RollupAliasOptions { /** * Instructs the plugin to use an alternative resolving algorithm, * rather than the Rollup's resolver. * @default null */ customResolver?: ResolverFunction | ResolverObject | null; /** * Specifies an `Object`, or an `Array` of `Object`, * which defines aliases used to replace values in `import` or `require` statements. * With either format, the order of the entries is important, * in that the first defined rules are applied first. */ entries?: readonly Alias[] | { [find: string]: string }; } /** * 🍣 A Rollup plugin for defining aliases when bundling packages. */ export default function alias(options?: RollupAliasOptions): Plugin;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appmap-0.62.1 | ./node_modules/@rollup/plugin-alias/types/index.d.ts |