/
index.ts
85 lines (84 loc) · 2.33 KB
/
index.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
export * from './config'
export { createServer } from './server'
export { build } from './build'
export { optimizeDeps } from './optimizer'
export { send } from './server/send'
export { createLogger } from './logger'
export { resolvePackageData, resolvePackageEntry } from './plugins/resolve'
export { normalizePath } from './utils'
// additional types
export type {
ViteDevServer,
ServerOptions,
CorsOptions,
FileSystemServeOptions,
CorsOrigin,
ServerHook,
ResolvedServerOptions
} from './server'
export type {
BuildOptions,
LibraryOptions,
LibraryFormats,
ResolvedBuildOptions
} from './build'
export type {
DepOptimizationMetadata,
DepOptimizationOptions
} from './optimizer'
export type { Plugin } from './plugin'
export type {
Logger,
LogOptions,
LogErrorOptions,
LogLevel,
LogType,
LoggerOptions
} from './logger'
export type {
AliasOptions,
ResolverFunction,
ResolverObject,
Alias
} from 'types/alias'
export type {
IndexHtmlTransform,
IndexHtmlTransformHook,
IndexHtmlTransformContext,
IndexHtmlTransformResult,
HtmlTagDescriptor
} from './plugins/html'
export type { CSSOptions, CSSModulesOptions } from './plugins/css'
export type { JsonOptions } from './plugins/json'
export type { ESBuildOptions, ESBuildTransformResult } from './plugins/esbuild'
export type { Manifest, ManifestChunk } from './plugins/manifest'
export type {
PackageData,
ResolveOptions,
InternalResolveOptions
} from './plugins/resolve'
export type { WebSocketServer } from './server/ws'
export type { PluginContainer } from './server/pluginContainer'
export type { ModuleGraph, ModuleNode } from './server/moduleGraph'
export type { ProxyOptions } from './server/middlewares/proxy'
export type {
TransformOptions,
TransformResult
} from './server/transformRequest'
export type { HmrOptions, HmrContext } from './server/hmr'
export type {
HMRPayload,
ConnectedPayload,
UpdatePayload,
Update,
FullReloadPayload,
CustomPayload,
PrunePayload,
ErrorPayload
} from 'types/hmrPayload'
export type { Connect } from 'types/connect'
export type { HttpProxy } from 'types/http-proxy'
export type { FSWatcher, WatchOptions } from 'types/chokidar'
export type { Terser } from 'types/terser'
export type { RollupCommonJSOptions } from 'types/commonjs'
export type { RollupDynamicImportVarsOptions } from 'types/dynamicImportVars'