1 | import { Plugin, PluginHooks } from 'rollup';
|
2 |
|
3 | export type ResolverFunction = PluginHooks['resolveId'];
|
4 |
|
5 | export interface ResolverObject {
|
6 | buildStart?: PluginHooks['buildStart'];
|
7 | resolveId: ResolverFunction;
|
8 | }
|
9 |
|
10 | export interface Alias {
|
11 | find: string | RegExp;
|
12 | replacement: string;
|
13 | customResolver?: ResolverFunction | ResolverObject | null;
|
14 | }
|
15 |
|
16 | export interface ResolvedAlias {
|
17 | find: string | RegExp;
|
18 | replacement: string;
|
19 | customResolver: ResolverFunction | null;
|
20 | }
|
21 |
|
22 | export interface RollupAliasOptions {
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | customResolver?: ResolverFunction | ResolverObject | null;
|
29 |
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | entries?: readonly Alias[] | { [find: string]: string };
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export default function alias(options?: RollupAliasOptions): Plugin;
|