1 | export interface SharedDependency {
|
2 | id: string;
|
3 | name: string;
|
4 | ref: string;
|
5 | type: 'local' | 'remote';
|
6 | entry: string;
|
7 | }
|
8 | export interface PiletWebpackPluginOptions {
|
9 | /**
|
10 | * The name of the pilet.
|
11 | */
|
12 | name: string;
|
13 | /**
|
14 | * The version of the pilet.
|
15 | */
|
16 | version: string;
|
17 | /**
|
18 | * The name of the Piral instance / app shell.
|
19 | */
|
20 | piral: string;
|
21 | /**
|
22 | * The schema version. By default, v1 is used.
|
23 | */
|
24 | schema?: 'v0' | 'v1' | 'v2' | 'none';
|
25 | /**
|
26 | * The shared dependencies. By default, these are read from the
|
27 | * Piral instance.
|
28 | */
|
29 | externals?: Array<string>;
|
30 | /**
|
31 | * Additional environment variables to define.
|
32 | */
|
33 | variables?: Record<string, string>;
|
34 | /**
|
35 | * The shared dependencies to consider.
|
36 | */
|
37 | importmap?: Array<SharedDependency>;
|
38 | }
|