-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
97 lines (80 loc) · 2.14 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import type { Plugin } from 'vite'
export interface ViteAppsignalPluginOptionsSourceMapsOptions {
/**
* Paths to search for source maps.
*/
include: string[]
/**
* Paths to exclude from source maps search.
*/
exclude?: string[]
}
export interface ViteAppsignalOptions {
/**
* Organization-wide token for Appsignal API.
*/
pushApiKey: string
/**
* Frontend-monitoring API Key for this specific app and environment.
* This will be injected into the app as `import.meta.env.VITE_PLUGIN_APPSIGNAL_CONFIG.apiKey`.
*/
apiKey?: string
/**
* App ID for this specific app and environment.
* Is visible in the URL when you open the app in Appsignal (directly after the `/sites/` part).
*/
appId: string
/**
* Personal API Token for Appsignal API. Can be obtained at https://appsignal.com/users/edit.
*/
personalApiToken: string
/**
* Name of the application, i.e. "myapp"
*/
appName: string
/**
* Unique name of the revision.
* Defaults to latest git commit SHA (requires access to GIT and root directory to be repo).
*/
revision?: string
/**
* Environment name, i.e. "production"
*
* @default "development"
*/
env?: string
/**
* URL prefix to add to the beginning of all filenames.
* Defaults to `'~/'` but you might want to set this to the full URL.
* This is also useful if your files are stored in a sub folder, eg: `'~/static/js'`.
*
* @default '~/'
*/
urlPrefix?: string
/**
* List of URL prefixes to add to the beginning of all filenames, cloud be used instead of a single `urlPrefix`.
* Defaults to an array with a `urlPrefix` as single entry.
*/
urlPrefixes?: string[]
}
/**
* Plugin input options
*/
export interface ViteAppsignalPluginOptions extends ViteAppsignalOptions {
/**
* Show debug messages during run.
*/
debug?: boolean
/**
* Force enable sourcemap upload.
*/
skipEnvironmentCheck?: boolean
/**
* Source maps settings
*/
sourceMaps: ViteAppsignalPluginOptionsSourceMapsOptions
}
/*
Vite plugin function declaration
*/
export default function (options: ViteAppsignalPluginOptions): Plugin