vite 6.3.5 → 7.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE.md +29 -0
  2. package/bin/vite.js +4 -4
  3. package/dist/client/client.mjs +793 -921
  4. package/dist/client/env.mjs +14 -19
  5. package/dist/node/chunks/dep-3PhSlasG.js +5 -0
  6. package/dist/node/chunks/dep-B4i1tHPo.js +30 -0
  7. package/dist/node/chunks/dep-BO5GbxpL.js +7345 -0
  8. package/dist/node/chunks/dep-BaSfMtGz.js +5 -0
  9. package/dist/node/chunks/dep-Bb92EWrU.js +5 -0
  10. package/dist/node/chunks/dep-C9KS6hrN.js +5 -0
  11. package/dist/node/chunks/dep-Ctugieod.js +150 -0
  12. package/dist/node/chunks/dep-D5HXLrlI.js +378 -0
  13. package/dist/node/chunks/dep-Da5Rc_CS.js +36548 -0
  14. package/dist/node/chunks/dep-Dg4W3IAQ.js +5597 -0
  15. package/dist/node/chunks/dep-uSUFJk9A.js +446 -0
  16. package/dist/node/cli.js +617 -865
  17. package/dist/node/constants.js +3 -148
  18. package/dist/node/index.d.ts +2724 -3124
  19. package/dist/node/index.js +25 -188
  20. package/dist/node/module-runner.d.ts +243 -234
  21. package/dist/node/module-runner.js +1043 -1172
  22. package/dist/node/moduleRunnerTransport-BWUZBVLX.d.ts +88 -0
  23. package/package.json +38 -41
  24. package/types/importGlob.d.ts +4 -0
  25. package/types/internal/cssPreprocessorOptions.d.ts +3 -22
  26. package/dist/node/chunks/dep-3RmXg9uo.js +0 -553
  27. package/dist/node/chunks/dep-AiMcmC_f.js +0 -822
  28. package/dist/node/chunks/dep-CvfTChi5.js +0 -8218
  29. package/dist/node/chunks/dep-DBxKXgDP.js +0 -49496
  30. package/dist/node/chunks/dep-SgSik2vo.js +0 -7113
  31. package/dist/node/moduleRunnerTransport.d-DJ_mE5sf.d.ts +0 -87
  32. package/dist/node-cjs/publicUtils.cjs +0 -3986
  33. package/index.cjs +0 -96
  34. package/index.d.cts +0 -6
@@ -1,290 +1,299 @@
1
- import { ModuleNamespace, ViteHotContext } from '../../types/hot.js';
2
- import { Update, HotPayload } from '../../types/hmrPayload.js';
3
- import { InferCustomEventPayload } from '../../types/customEvent.js';
4
- import { N as NormalizedModuleRunnerTransport, E as ExternalFetchResult, V as ViteFetchResult, M as ModuleRunnerTransport, F as FetchFunctionOptions, a as FetchResult } from './moduleRunnerTransport.d-DJ_mE5sf.js';
5
- export { b as ModuleRunnerTransportHandlers, c as createWebSocketModuleRunnerTransport } from './moduleRunnerTransport.d-DJ_mE5sf.js';
1
+ import { ExternalFetchResult, FetchFunctionOptions, FetchResult, ModuleRunnerTransport, ModuleRunnerTransportHandlers, NormalizedModuleRunnerTransport, ViteFetchResult, createWebSocketModuleRunnerTransport } from "./moduleRunnerTransport-BWUZBVLX.js";
2
+ import { ModuleNamespace, ViteHotContext } from "../../types/hot.js";
3
+ import { HotPayload, Update } from "../../types/hmrPayload.js";
4
+ import { InferCustomEventPayload } from "../../types/customEvent.js";
6
5
 
6
+ //#region src/module-runner/sourcemap/decoder.d.ts
7
7
  interface SourceMapLike {
8
- version: number;
9
- mappings?: string;
10
- names?: string[];
11
- sources?: string[];
12
- sourcesContent?: string[];
8
+ version: number;
9
+ mappings?: string;
10
+ names?: string[];
11
+ sources?: string[];
12
+ sourcesContent?: string[];
13
13
  }
14
14
  declare class DecodedMap {
15
- map: SourceMapLike;
16
- _encoded: string;
17
- _decoded: undefined | number[][][];
18
- _decodedMemo: Stats;
19
- url: string;
20
- version: number;
21
- names: string[];
22
- resolvedSources: string[];
23
- constructor(map: SourceMapLike, from: string);
15
+ map: SourceMapLike;
16
+ _encoded: string;
17
+ _decoded: undefined | number[][][];
18
+ _decodedMemo: Stats;
19
+ url: string;
20
+ version: number;
21
+ names: string[];
22
+ resolvedSources: string[];
23
+ constructor(map: SourceMapLike, from: string);
24
24
  }
25
25
  interface Stats {
26
- lastKey: number;
27
- lastNeedle: number;
28
- lastIndex: number;
26
+ lastKey: number;
27
+ lastNeedle: number;
28
+ lastIndex: number;
29
29
  }
30
-
30
+ //#endregion
31
+ //#region src/shared/hmr.d.ts
31
32
  type CustomListenersMap = Map<string, ((data: any) => void)[]>;
32
33
  interface HotModule {
33
- id: string;
34
- callbacks: HotCallback[];
34
+ id: string;
35
+ callbacks: HotCallback[];
35
36
  }
36
37
  interface HotCallback {
37
- deps: string[];
38
- fn: (modules: Array<ModuleNamespace | undefined>) => void;
38
+ deps: string[];
39
+ fn: (modules: Array<ModuleNamespace | undefined>) => void;
39
40
  }
40
41
  interface HMRLogger {
41
- error(msg: string | Error): void;
42
- debug(...msg: unknown[]): void;
42
+ error(msg: string | Error): void;
43
+ debug(...msg: unknown[]): void;
43
44
  }
44
45
  declare class HMRClient {
45
- logger: HMRLogger;
46
- private transport;
47
- private importUpdatedModule;
48
- hotModulesMap: Map<string, HotModule>;
49
- disposeMap: Map<string, (data: any) => void | Promise<void>>;
50
- pruneMap: Map<string, (data: any) => void | Promise<void>>;
51
- dataMap: Map<string, any>;
52
- customListenersMap: CustomListenersMap;
53
- ctxToListenersMap: Map<string, CustomListenersMap>;
54
- currentFirstInvalidatedBy: string | undefined;
55
- constructor(logger: HMRLogger, transport: NormalizedModuleRunnerTransport, importUpdatedModule: (update: Update) => Promise<ModuleNamespace>);
56
- notifyListeners<T extends string>(event: T, data: InferCustomEventPayload<T>): Promise<void>;
57
- send(payload: HotPayload): void;
58
- clear(): void;
59
- prunePaths(paths: string[]): Promise<void>;
60
- protected warnFailedUpdate(err: Error, path: string | string[]): void;
61
- private updateQueue;
62
- private pendingUpdateQueue;
63
- /**
64
- * buffer multiple hot updates triggered by the same src change
65
- * so that they are invoked in the same order they were sent.
66
- * (otherwise the order may be inconsistent because of the http request round trip)
67
- */
68
- queueUpdate(payload: Update): Promise<void>;
69
- private fetchUpdate;
46
+ logger: HMRLogger;
47
+ private transport;
48
+ private importUpdatedModule;
49
+ hotModulesMap: Map<string, HotModule>;
50
+ disposeMap: Map<string, (data: any) => void | Promise<void>>;
51
+ pruneMap: Map<string, (data: any) => void | Promise<void>>;
52
+ dataMap: Map<string, any>;
53
+ customListenersMap: CustomListenersMap;
54
+ ctxToListenersMap: Map<string, CustomListenersMap>;
55
+ currentFirstInvalidatedBy: string | undefined;
56
+ constructor(logger: HMRLogger, transport: NormalizedModuleRunnerTransport, importUpdatedModule: (update: Update) => Promise<ModuleNamespace>);
57
+ notifyListeners<T extends string>(event: T, data: InferCustomEventPayload<T>): Promise<void>;
58
+ send(payload: HotPayload): void;
59
+ clear(): void;
60
+ prunePaths(paths: string[]): Promise<void>;
61
+ protected warnFailedUpdate(err: Error, path: string | string[]): void;
62
+ private updateQueue;
63
+ private pendingUpdateQueue;
64
+ /**
65
+ * buffer multiple hot updates triggered by the same src change
66
+ * so that they are invoked in the same order they were sent.
67
+ * (otherwise the order may be inconsistent because of the http request round trip)
68
+ */
69
+ queueUpdate(payload: Update): Promise<void>;
70
+ private fetchUpdate;
70
71
  }
71
-
72
+ //#endregion
73
+ //#region src/shared/ssrTransform.d.ts
72
74
  interface DefineImportMetadata {
73
- /**
74
- * Imported names before being transformed to `ssrImportKey`
75
- *
76
- * import foo, { bar as baz, qux } from 'hello'
77
- * => ['default', 'bar', 'qux']
78
- *
79
- * import * as namespace from 'world
80
- * => undefined
81
- */
82
- importedNames?: string[];
75
+ /**
76
+ * Imported names before being transformed to `ssrImportKey`
77
+ *
78
+ * import foo, { bar as baz, qux } from 'hello'
79
+ * => ['default', 'bar', 'qux']
80
+ *
81
+ * import * as namespace from 'world
82
+ * => undefined
83
+ */
84
+ importedNames?: string[];
83
85
  }
84
86
  interface SSRImportMetadata extends DefineImportMetadata {
85
- isDynamicImport?: boolean;
87
+ isDynamicImport?: boolean;
86
88
  }
87
-
89
+ /**
90
+ * Vite converts `import { } from 'foo'` to `const _ = __vite_ssr_import__('foo')`.
91
+ * Top-level imports and dynamic imports work slightly differently in Node.js.
92
+ * This function normalizes the differences so it matches prod behaviour.
93
+ */
94
+ //#endregion
95
+ //#region src/module-runner/constants.d.ts
88
96
  declare const ssrModuleExportsKey = "__vite_ssr_exports__";
89
97
  declare const ssrImportKey = "__vite_ssr_import__";
90
98
  declare const ssrDynamicImportKey = "__vite_ssr_dynamic_import__";
91
99
  declare const ssrExportAllKey = "__vite_ssr_exportAll__";
100
+ declare const ssrExportNameKey = "__vite_ssr_exportName__";
92
101
  declare const ssrImportMetaKey = "__vite_ssr_import_meta__";
93
-
102
+ //#endregion
103
+ //#region src/module-runner/runner.d.ts
94
104
  interface ModuleRunnerDebugger {
95
- (formatter: unknown, ...args: unknown[]): void;
105
+ (formatter: unknown, ...args: unknown[]): void;
96
106
  }
97
107
  declare class ModuleRunner {
98
- options: ModuleRunnerOptions;
99
- evaluator: ModuleEvaluator;
100
- private debug?;
101
- evaluatedModules: EvaluatedModules;
102
- hmrClient?: HMRClient;
103
- private readonly envProxy;
104
- private readonly transport;
105
- private readonly resetSourceMapSupport?;
106
- private readonly concurrentModuleNodePromises;
107
- private closed;
108
- constructor(options: ModuleRunnerOptions, evaluator?: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined);
109
- /**
110
- * URL to execute. Accepts file path, server path or id relative to the root.
111
- */
112
- import<T = any>(url: string): Promise<T>;
113
- /**
114
- * Clear all caches including HMR listeners.
115
- */
116
- clearCache(): void;
117
- /**
118
- * Clears all caches, removes all HMR listeners, and resets source map support.
119
- * This method doesn't stop the HMR connection.
120
- */
121
- close(): Promise<void>;
122
- /**
123
- * Returns `true` if the runtime has been closed by calling `close()` method.
124
- */
125
- isClosed(): boolean;
126
- private processImport;
127
- private isCircularModule;
128
- private isCircularImport;
129
- private cachedRequest;
130
- private cachedModule;
131
- private getModuleInformation;
132
- protected directRequest(url: string, mod: EvaluatedModuleNode, _callstack: string[]): Promise<any>;
108
+ options: ModuleRunnerOptions;
109
+ evaluator: ModuleEvaluator;
110
+ private debug?;
111
+ evaluatedModules: EvaluatedModules;
112
+ hmrClient?: HMRClient;
113
+ private readonly envProxy;
114
+ private readonly transport;
115
+ private readonly resetSourceMapSupport?;
116
+ private readonly concurrentModuleNodePromises;
117
+ private closed;
118
+ constructor(options: ModuleRunnerOptions, evaluator?: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined);
119
+ /**
120
+ * URL to execute. Accepts file path, server path or id relative to the root.
121
+ */
122
+ import<T = any>(url: string): Promise<T>;
123
+ /**
124
+ * Clear all caches including HMR listeners.
125
+ */
126
+ clearCache(): void;
127
+ /**
128
+ * Clears all caches, removes all HMR listeners, and resets source map support.
129
+ * This method doesn't stop the HMR connection.
130
+ */
131
+ close(): Promise<void>;
132
+ /**
133
+ * Returns `true` if the runtime has been closed by calling `close()` method.
134
+ */
135
+ isClosed(): boolean;
136
+ private processImport;
137
+ private isCircularModule;
138
+ private isCircularImport;
139
+ private cachedRequest;
140
+ private cachedModule;
141
+ private getModuleInformation;
142
+ protected directRequest(url: string, mod: EvaluatedModuleNode, _callstack: string[]): Promise<any>;
133
143
  }
134
-
144
+ //#endregion
145
+ //#region src/module-runner/sourcemap/interceptor.d.ts
135
146
  interface RetrieveFileHandler {
136
- (path: string): string | null | undefined | false;
147
+ (path: string): string | null | undefined | false;
137
148
  }
138
149
  interface RetrieveSourceMapHandler {
139
- (path: string): null | {
140
- url: string;
141
- map: any;
142
- };
150
+ (path: string): null | {
151
+ url: string;
152
+ map: any;
153
+ };
143
154
  }
144
155
  interface InterceptorOptions {
145
- retrieveFile?: RetrieveFileHandler;
146
- retrieveSourceMap?: RetrieveSourceMapHandler;
156
+ retrieveFile?: RetrieveFileHandler;
157
+ retrieveSourceMap?: RetrieveSourceMapHandler;
147
158
  }
148
-
159
+ //#endregion
160
+ //#region src/module-runner/types.d.ts
149
161
  interface ModuleRunnerImportMeta extends ImportMeta {
150
- url: string;
151
- env: ImportMetaEnv;
152
- hot?: ViteHotContext;
153
- [key: string]: any;
162
+ url: string;
163
+ env: ImportMetaEnv;
164
+ hot?: ViteHotContext;
165
+ [key: string]: any;
154
166
  }
155
167
  interface ModuleRunnerContext {
156
- [ssrModuleExportsKey]: Record<string, any>;
157
- [ssrImportKey]: (id: string, metadata?: DefineImportMetadata) => Promise<any>;
158
- [ssrDynamicImportKey]: (id: string, options?: ImportCallOptions) => Promise<any>;
159
- [ssrExportAllKey]: (obj: any) => void;
160
- [ssrImportMetaKey]: ModuleRunnerImportMeta;
168
+ [ssrModuleExportsKey]: Record<string, any>;
169
+ [ssrImportKey]: (id: string, metadata?: DefineImportMetadata) => Promise<any>;
170
+ [ssrDynamicImportKey]: (id: string, options?: ImportCallOptions) => Promise<any>;
171
+ [ssrExportAllKey]: (obj: any) => void;
172
+ [ssrExportNameKey]: (name: string, getter: () => unknown) => void;
173
+ [ssrImportMetaKey]: ModuleRunnerImportMeta;
161
174
  }
162
175
  interface ModuleEvaluator {
163
- /**
164
- * Number of prefixed lines in the transformed code.
165
- */
166
- startOffset?: number;
167
- /**
168
- * Run code that was transformed by Vite.
169
- * @param context Function context
170
- * @param code Transformed code
171
- * @param module The module node
172
- */
173
- runInlinedModule(context: ModuleRunnerContext, code: string, module: Readonly<EvaluatedModuleNode>): Promise<any>;
174
- /**
175
- * Run externalized module.
176
- * @param file File URL to the external module
177
- */
178
- runExternalModule(file: string): Promise<any>;
176
+ /**
177
+ * Number of prefixed lines in the transformed code.
178
+ */
179
+ startOffset?: number;
180
+ /**
181
+ * Run code that was transformed by Vite.
182
+ * @param context Function context
183
+ * @param code Transformed code
184
+ * @param module The module node
185
+ */
186
+ runInlinedModule(context: ModuleRunnerContext, code: string, module: Readonly<EvaluatedModuleNode>): Promise<any>;
187
+ /**
188
+ * Run externalized module.
189
+ * @param file File URL to the external module
190
+ */
191
+ runExternalModule(file: string): Promise<any>;
179
192
  }
180
193
  type ResolvedResult = (ExternalFetchResult | ViteFetchResult) & {
181
- url: string;
182
- id: string;
194
+ url: string;
195
+ id: string;
183
196
  };
184
197
  type FetchFunction = (id: string, importer?: string, options?: FetchFunctionOptions) => Promise<FetchResult>;
185
198
  interface ModuleRunnerHmr {
186
- /**
187
- * Configure HMR logger.
188
- */
189
- logger?: false | HMRLogger;
199
+ /**
200
+ * Configure HMR logger.
201
+ */
202
+ logger?: false | HMRLogger;
190
203
  }
191
204
  interface ModuleRunnerOptions {
192
- /**
193
- * Root of the project
194
- * @deprecated not used and to be removed
195
- */
196
- root?: string;
197
- /**
198
- * A set of methods to communicate with the server.
199
- */
200
- transport: ModuleRunnerTransport;
201
- /**
202
- * Configure how source maps are resolved. Prefers `node` if `process.setSourceMapsEnabled` is available.
203
- * Otherwise it will use `prepareStackTrace` by default which overrides `Error.prepareStackTrace` method.
204
- * You can provide an object to configure how file contents and source maps are resolved for files that were not processed by Vite.
205
- */
206
- sourcemapInterceptor?: false | 'node' | 'prepareStackTrace' | InterceptorOptions;
207
- /**
208
- * Disable HMR or configure HMR options.
209
- *
210
- * @default true
211
- */
212
- hmr?: boolean | ModuleRunnerHmr;
213
- /**
214
- * Custom module cache. If not provided, creates a separate module cache for each ModuleRunner instance.
215
- */
216
- evaluatedModules?: EvaluatedModules;
205
+ /**
206
+ * A set of methods to communicate with the server.
207
+ */
208
+ transport: ModuleRunnerTransport;
209
+ /**
210
+ * Configure how source maps are resolved. Prefers `node` if `process.setSourceMapsEnabled` is available.
211
+ * Otherwise it will use `prepareStackTrace` by default which overrides `Error.prepareStackTrace` method.
212
+ * You can provide an object to configure how file contents and source maps are resolved for files that were not processed by Vite.
213
+ */
214
+ sourcemapInterceptor?: false | 'node' | 'prepareStackTrace' | InterceptorOptions;
215
+ /**
216
+ * Disable HMR or configure HMR options.
217
+ *
218
+ * @default true
219
+ */
220
+ hmr?: boolean | ModuleRunnerHmr;
221
+ /**
222
+ * Custom module cache. If not provided, creates a separate module cache for each ModuleRunner instance.
223
+ */
224
+ evaluatedModules?: EvaluatedModules;
217
225
  }
218
226
  interface ImportMetaEnv {
219
- [key: string]: any;
220
- BASE_URL: string;
221
- MODE: string;
222
- DEV: boolean;
223
- PROD: boolean;
224
- SSR: boolean;
227
+ [key: string]: any;
228
+ BASE_URL: string;
229
+ MODE: string;
230
+ DEV: boolean;
231
+ PROD: boolean;
232
+ SSR: boolean;
225
233
  }
226
-
234
+ //#endregion
235
+ //#region src/module-runner/evaluatedModules.d.ts
227
236
  declare class EvaluatedModuleNode {
228
- id: string;
229
- url: string;
230
- importers: Set<string>;
231
- imports: Set<string>;
232
- evaluated: boolean;
233
- meta: ResolvedResult | undefined;
234
- promise: Promise<any> | undefined;
235
- exports: any | undefined;
236
- file: string;
237
- map: DecodedMap | undefined;
238
- constructor(id: string, url: string);
237
+ id: string;
238
+ url: string;
239
+ importers: Set<string>;
240
+ imports: Set<string>;
241
+ evaluated: boolean;
242
+ meta: ResolvedResult | undefined;
243
+ promise: Promise<any> | undefined;
244
+ exports: any | undefined;
245
+ file: string;
246
+ map: DecodedMap | undefined;
247
+ constructor(id: string, url: string);
239
248
  }
240
249
  declare class EvaluatedModules {
241
- readonly idToModuleMap: Map<string, EvaluatedModuleNode>;
242
- readonly fileToModulesMap: Map<string, Set<EvaluatedModuleNode>>;
243
- readonly urlToIdModuleMap: Map<string, EvaluatedModuleNode>;
244
- /**
245
- * Returns the module node by the resolved module ID. Usually, module ID is
246
- * the file system path with query and/or hash. It can also be a virtual module.
247
- *
248
- * Module runner graph will have 1 to 1 mapping with the server module graph.
249
- * @param id Resolved module ID
250
- */
251
- getModuleById(id: string): EvaluatedModuleNode | undefined;
252
- /**
253
- * Returns all modules related to the file system path. Different modules
254
- * might have different query parameters or hash, so it's possible to have
255
- * multiple modules for the same file.
256
- * @param file The file system path of the module
257
- */
258
- getModulesByFile(file: string): Set<EvaluatedModuleNode> | undefined;
259
- /**
260
- * Returns the module node by the URL that was used in the import statement.
261
- * Unlike module graph on the server, the URL is not resolved and is used as is.
262
- * @param url Server URL that was used in the import statement
263
- */
264
- getModuleByUrl(url: string): EvaluatedModuleNode | undefined;
265
- /**
266
- * Ensure that module is in the graph. If the module is already in the graph,
267
- * it will return the existing module node. Otherwise, it will create a new
268
- * module node and add it to the graph.
269
- * @param id Resolved module ID
270
- * @param url URL that was used in the import statement
271
- */
272
- ensureModule(id: string, url: string): EvaluatedModuleNode;
273
- invalidateModule(node: EvaluatedModuleNode): void;
274
- /**
275
- * Extracts the inlined source map from the module code and returns the decoded
276
- * source map. If the source map is not inlined, it will return null.
277
- * @param id Resolved module ID
278
- */
279
- getModuleSourceMapById(id: string): DecodedMap | null;
280
- clear(): void;
250
+ readonly idToModuleMap: Map<string, EvaluatedModuleNode>;
251
+ readonly fileToModulesMap: Map<string, Set<EvaluatedModuleNode>>;
252
+ readonly urlToIdModuleMap: Map<string, EvaluatedModuleNode>;
253
+ /**
254
+ * Returns the module node by the resolved module ID. Usually, module ID is
255
+ * the file system path with query and/or hash. It can also be a virtual module.
256
+ *
257
+ * Module runner graph will have 1 to 1 mapping with the server module graph.
258
+ * @param id Resolved module ID
259
+ */
260
+ getModuleById(id: string): EvaluatedModuleNode | undefined;
261
+ /**
262
+ * Returns all modules related to the file system path. Different modules
263
+ * might have different query parameters or hash, so it's possible to have
264
+ * multiple modules for the same file.
265
+ * @param file The file system path of the module
266
+ */
267
+ getModulesByFile(file: string): Set<EvaluatedModuleNode> | undefined;
268
+ /**
269
+ * Returns the module node by the URL that was used in the import statement.
270
+ * Unlike module graph on the server, the URL is not resolved and is used as is.
271
+ * @param url Server URL that was used in the import statement
272
+ */
273
+ getModuleByUrl(url: string): EvaluatedModuleNode | undefined;
274
+ /**
275
+ * Ensure that module is in the graph. If the module is already in the graph,
276
+ * it will return the existing module node. Otherwise, it will create a new
277
+ * module node and add it to the graph.
278
+ * @param id Resolved module ID
279
+ * @param url URL that was used in the import statement
280
+ */
281
+ ensureModule(id: string, url: string): EvaluatedModuleNode;
282
+ invalidateModule(node: EvaluatedModuleNode): void;
283
+ /**
284
+ * Extracts the inlined source map from the module code and returns the decoded
285
+ * source map. If the source map is not inlined, it will return null.
286
+ * @param id Resolved module ID
287
+ */
288
+ getModuleSourceMapById(id: string): DecodedMap | null;
289
+ clear(): void;
281
290
  }
282
-
291
+ //#endregion
292
+ //#region src/module-runner/esmEvaluator.d.ts
283
293
  declare class ESModulesEvaluator implements ModuleEvaluator {
284
- readonly startOffset: number;
285
- runInlinedModule(context: ModuleRunnerContext, code: string): Promise<any>;
286
- runExternalModule(filepath: string): Promise<any>;
294
+ readonly startOffset: number;
295
+ runInlinedModule(context: ModuleRunnerContext, code: string): Promise<any>;
296
+ runExternalModule(filepath: string): Promise<any>;
287
297
  }
288
-
289
- export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules, FetchFunctionOptions, FetchResult, ModuleRunner, ModuleRunnerTransport, ssrDynamicImportKey, ssrExportAllKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };
290
- export type { FetchFunction, HMRLogger, InterceptorOptions, ModuleEvaluator, ModuleRunnerContext, ModuleRunnerHmr, ModuleRunnerImportMeta, ModuleRunnerOptions, ResolvedResult, SSRImportMetadata };
298
+ //#endregion
299
+ export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules, FetchFunction, FetchFunctionOptions, FetchResult, HMRLogger, InterceptorOptions, ModuleEvaluator, ModuleRunner, ModuleRunnerContext, ModuleRunnerHmr, ModuleRunnerImportMeta, ModuleRunnerOptions, ModuleRunnerTransport, ModuleRunnerTransportHandlers, ResolvedResult, SSRImportMetadata, createWebSocketModuleRunnerTransport, ssrDynamicImportKey, ssrExportAllKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };