vite 8.2.0 → 8.2.2
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.
- package/LICENSE.md +1 -1
- package/dist/client/bundledDevClient.mjs +393 -27
- package/dist/client/client.mjs +20 -14
- package/dist/node/chunks/build.js +98 -88
- package/dist/node/chunks/dist.js +62 -114
- package/dist/node/chunks/node.js +1053 -898
- package/dist/node/chunks/postcss-import.js +23 -25
- package/dist/node/index.d.ts +71 -56
- package/dist/node/module-runner.d.ts +13 -13
- package/dist/node/module-runner.js +30 -20
- package/package.json +16 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ft as __commonJSMin, pt as __require } from "./node.js";
|
|
2
2
|
import { t as require_lib } from "./lib.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/format-import-prelude.js
|
|
4
4
|
var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
module.exports = function formatImportPrelude(layer, media, supports) {
|
|
6
6
|
const parts = [];
|
|
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
15
15
|
};
|
|
16
16
|
}));
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
18
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/base64-encoded-import.js
|
|
19
19
|
var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20
20
|
const formatImportPrelude = require_format_import_prelude();
|
|
21
21
|
module.exports = function base64EncodedConditionalImport(prelude, conditions) {
|
|
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
28
28
|
};
|
|
29
29
|
}));
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
31
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-conditions.js
|
|
32
32
|
var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33
33
|
const base64EncodedConditionalImport = require_base64_encoded_import();
|
|
34
34
|
module.exports = function applyConditions(bundle, atRule) {
|
|
@@ -103,21 +103,18 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
103
103
|
};
|
|
104
104
|
}));
|
|
105
105
|
//#endregion
|
|
106
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
106
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-raws.js
|
|
107
107
|
var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
108
108
|
module.exports = function applyRaws(bundle) {
|
|
109
109
|
bundle.forEach((stmt, index) => {
|
|
110
110
|
if (index === 0) return;
|
|
111
|
-
if (stmt.
|
|
112
|
-
|
|
113
|
-
if (stmt.type === "nodes") stmt.nodes[0].raws.before = before;
|
|
114
|
-
else stmt.node.raws.before = before;
|
|
115
|
-
} else if (stmt.type === "nodes") stmt.nodes[0].raws.before = stmt.nodes[0].raws.before || "\n";
|
|
111
|
+
if (stmt.type === "nodes") delete stmt.nodes[0].raws.before;
|
|
112
|
+
else if (stmt.parent) delete stmt.node.raws.before;
|
|
116
113
|
});
|
|
117
114
|
};
|
|
118
115
|
}));
|
|
119
116
|
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
117
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/apply-styles.js
|
|
121
118
|
var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
122
119
|
module.exports = function applyStyles(bundle, styles) {
|
|
123
120
|
styles.nodes = [];
|
|
@@ -137,7 +134,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
137
134
|
};
|
|
138
135
|
}));
|
|
139
136
|
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
137
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/data-url.js
|
|
141
138
|
var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142
139
|
const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
|
|
143
140
|
const base64DataURLRegexp = /^data:text\/css;base64,/i;
|
|
@@ -156,7 +153,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
156
153
|
};
|
|
157
154
|
}));
|
|
158
155
|
//#endregion
|
|
159
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
156
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/parse-statements.js
|
|
160
157
|
var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
161
158
|
const valueParser = require_lib();
|
|
162
159
|
const { stringify } = valueParser;
|
|
@@ -215,7 +212,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
215
212
|
prev = prev.prev();
|
|
216
213
|
continue;
|
|
217
214
|
}
|
|
218
|
-
return result.warn("@import must precede all other statements (besides @charset or empty @layer)", { node: atRule });
|
|
215
|
+
return result.warn("@import statements must precede all other statements (besides @charset or empty @layer) and be consecutive", { node: atRule });
|
|
219
216
|
} while (prev);
|
|
220
217
|
if (atRule.nodes) return result.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.", { node: atRule });
|
|
221
218
|
const params = valueParser(atRule.params).nodes;
|
|
@@ -281,7 +278,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
281
278
|
}
|
|
282
279
|
}));
|
|
283
280
|
//#endregion
|
|
284
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
281
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/process-content.js
|
|
285
282
|
var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
286
283
|
const path$2 = __require("path");
|
|
287
284
|
let sugarss;
|
|
@@ -315,7 +312,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
315
312
|
}
|
|
316
313
|
}));
|
|
317
314
|
//#endregion
|
|
318
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
315
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/lib/parse-styles.js
|
|
319
316
|
var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
320
317
|
const path$1 = __require("path");
|
|
321
318
|
const dataURL = require_data_url();
|
|
@@ -341,15 +338,16 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
338
|
}
|
|
342
339
|
statements.forEach((stmt) => {
|
|
343
340
|
if (stmt.type === "charset") handleCharset(stmt);
|
|
344
|
-
else if (stmt.type === "import")
|
|
345
|
-
if (
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
341
|
+
else if (stmt.type === "import") {
|
|
342
|
+
if (stmt.children) stmt.children.forEach((child, index) => {
|
|
343
|
+
if (child.type === "import") beforeBundle.push(child);
|
|
344
|
+
else if (child.type === "layer") beforeBundle.push(child);
|
|
345
|
+
else if (child.type === "charset") handleCharset(child);
|
|
346
|
+
else bundle.push(child);
|
|
347
|
+
if (index === 0) child.parent = stmt;
|
|
348
|
+
});
|
|
349
|
+
else beforeBundle.push(stmt);
|
|
350
|
+
} else if (stmt.type === "layer") beforeBundle.push(stmt);
|
|
353
351
|
else if (stmt.type === "nodes") bundle.push(stmt);
|
|
354
352
|
});
|
|
355
353
|
return charset ? [charset, ...beforeBundle.concat(bundle)] : beforeBundle.concat(bundle);
|
|
@@ -418,7 +416,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
418
416
|
module.exports = parseStyles;
|
|
419
417
|
}));
|
|
420
418
|
//#endregion
|
|
421
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.
|
|
419
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.2.0_postcss@8.5.26/node_modules/postcss-import/index.js
|
|
422
420
|
var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
423
421
|
const path = __require("path");
|
|
424
422
|
const applyConditions = require_apply_conditions();
|
package/dist/node/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPre
|
|
|
30
30
|
import { withFilter } from "rolldown/filter";
|
|
31
31
|
import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap, KnownQueryTypeMap } from "#types/importGlob";
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.
|
|
33
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.5_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
34
34
|
//#region src/node/cli-commands.d.ts
|
|
35
35
|
interface StartOptions {
|
|
36
36
|
root?: string;
|
|
@@ -40,7 +40,7 @@ interface StartOptions {
|
|
|
40
40
|
open?: boolean;
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.
|
|
43
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.5_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
|
|
44
44
|
//#region src/node/config.d.ts
|
|
45
45
|
interface DevToolsConfig extends Partial<StartOptions> {
|
|
46
46
|
enabled: boolean;
|
|
@@ -65,6 +65,16 @@ interface DevToolsConfig extends Partial<StartOptions> {
|
|
|
65
65
|
* will be auto-approved without a terminal prompt.
|
|
66
66
|
*/
|
|
67
67
|
clientAuthTokens?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Origins allowed to open the DevTools WebSocket connection, in addition to the built-in
|
|
70
|
+
* loopback allowlist (`localhost`, `127.0.0.1`, etc).
|
|
71
|
+
*
|
|
72
|
+
* The loopback check is a plain string match against the `Origin` header, not a DNS/hosts-file
|
|
73
|
+
* resolution — a custom dev hostname that resolves to loopback via `/etc/hosts` or a local DNS
|
|
74
|
+
* override (e.g. `dev-my-app.example.com`) is invisible to it and gets rejected. List such
|
|
75
|
+
* hostnames here explicitly.
|
|
76
|
+
*/
|
|
77
|
+
allowedOrigins?: string[];
|
|
68
78
|
}
|
|
69
79
|
interface ResolvedDevToolsConfig {
|
|
70
80
|
config: Omit<DevToolsConfig, 'enabled'> & {
|
|
@@ -592,7 +602,7 @@ interface LoggerOptions {
|
|
|
592
602
|
customLogger?: Logger;
|
|
593
603
|
console?: Console;
|
|
594
604
|
}
|
|
595
|
-
declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
|
|
605
|
+
export declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
|
|
596
606
|
//#endregion
|
|
597
607
|
//#region src/node/http.d.ts
|
|
598
608
|
interface CommonServerOptions {
|
|
@@ -752,7 +762,7 @@ type PreviewServerHook = (this: MinimalPluginContextWithoutEnvironment, server:
|
|
|
752
762
|
/**
|
|
753
763
|
* Starts the Vite server in preview mode, to simulate a production deployment
|
|
754
764
|
*/
|
|
755
|
-
declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
|
|
765
|
+
export declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
|
|
756
766
|
//#endregion
|
|
757
767
|
//#region src/node/shortcuts.d.ts
|
|
758
768
|
type BindCLIShortcutsOptions<Server = ViteDevServer | PreviewServer> = {
|
|
@@ -1003,7 +1013,7 @@ interface DepOptimizationMetadata {
|
|
|
1003
1013
|
*
|
|
1004
1014
|
* @deprecated the optimization process runs automatically and does not need to be called
|
|
1005
1015
|
*/
|
|
1006
|
-
declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<DepOptimizationMetadata>;
|
|
1016
|
+
export declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<DepOptimizationMetadata>;
|
|
1007
1017
|
//#endregion
|
|
1008
1018
|
//#region src/node/server/transformRequest.d.ts
|
|
1009
1019
|
interface TransformResult {
|
|
@@ -1296,7 +1306,7 @@ type ServerHotChannelApi = {
|
|
|
1296
1306
|
};
|
|
1297
1307
|
type ServerHotChannel = HotChannel<ServerHotChannelApi>;
|
|
1298
1308
|
type NormalizedServerHotChannel = NormalizedHotChannel<ServerHotChannelApi>;
|
|
1299
|
-
declare function createServerHotChannel(): ServerHotChannel;
|
|
1309
|
+
export declare function createServerHotChannel(): ServerHotChannel;
|
|
1300
1310
|
//#endregion
|
|
1301
1311
|
//#region src/types/ws.d.ts
|
|
1302
1312
|
// WebSocket socket.
|
|
@@ -1626,6 +1636,7 @@ declare class MemoryFiles {
|
|
|
1626
1636
|
declare class BundledDev {
|
|
1627
1637
|
private environment;
|
|
1628
1638
|
private _devEngine;
|
|
1639
|
+
private viteRuntime?;
|
|
1629
1640
|
private initialBuildCompleted;
|
|
1630
1641
|
private _closed;
|
|
1631
1642
|
private clients;
|
|
@@ -1638,6 +1649,7 @@ declare class BundledDev {
|
|
|
1638
1649
|
constructor(environment: DevEnvironment);
|
|
1639
1650
|
private get devEngine();
|
|
1640
1651
|
private pendingPayloadFilenames;
|
|
1652
|
+
get hasBuildOutput(): boolean;
|
|
1641
1653
|
listen(): Promise<void>;
|
|
1642
1654
|
private waitForInitialBuildFinish;
|
|
1643
1655
|
private ensureOutputAndFlushReloadNeeded;
|
|
@@ -1670,7 +1682,7 @@ interface DevEnvironmentContext {
|
|
|
1670
1682
|
};
|
|
1671
1683
|
depsOptimizer?: DepsOptimizer;
|
|
1672
1684
|
}
|
|
1673
|
-
declare class DevEnvironment extends BaseEnvironment {
|
|
1685
|
+
export declare class DevEnvironment extends BaseEnvironment {
|
|
1674
1686
|
mode: "dev";
|
|
1675
1687
|
moduleGraph: EnvironmentModuleGraph;
|
|
1676
1688
|
depsOptimizer?: DepsOptimizer;
|
|
@@ -2138,6 +2150,9 @@ interface BuildEnvironmentOptions {
|
|
|
2138
2150
|
* a niche browser that comes with most modern JavaScript features
|
|
2139
2151
|
* but has poor CSS support, e.g. Android WeChat WebView, which
|
|
2140
2152
|
* doesn't support the #RGBA syntax.
|
|
2153
|
+
* When `build.cssMinify` is `lightningcss` (the default), this
|
|
2154
|
+
* option takes precedence over `css.lightningcss.targets` for the
|
|
2155
|
+
* minification step.
|
|
2141
2156
|
* @default target
|
|
2142
2157
|
*/
|
|
2143
2158
|
cssTarget?: EsbuildTarget | false;
|
|
@@ -2158,7 +2173,7 @@ interface BuildEnvironmentOptions {
|
|
|
2158
2173
|
/**
|
|
2159
2174
|
* Set to `false` to disable minification, or specify the minifier to use.
|
|
2160
2175
|
* Available options are 'oxc' or 'terser' or 'esbuild'.
|
|
2161
|
-
* @default 'oxc'
|
|
2176
|
+
* @default 'oxc' for client build, false for SSR build
|
|
2162
2177
|
*/
|
|
2163
2178
|
minify?: boolean | "oxc" | "terser" | "esbuild";
|
|
2164
2179
|
/**
|
|
@@ -2350,7 +2365,7 @@ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModu
|
|
|
2350
2365
|
* Bundles a single environment for production.
|
|
2351
2366
|
* Returns a Promise containing the build result.
|
|
2352
2367
|
*/
|
|
2353
|
-
declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
|
|
2368
|
+
export declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
|
|
2354
2369
|
type RenderBuiltAssetUrl = (filename: string, type: {
|
|
2355
2370
|
type: "asset" | "public";
|
|
2356
2371
|
hostId: string;
|
|
@@ -2360,7 +2375,7 @@ type RenderBuiltAssetUrl = (filename: string, type: {
|
|
|
2360
2375
|
relative?: boolean;
|
|
2361
2376
|
runtime?: string;
|
|
2362
2377
|
} | undefined;
|
|
2363
|
-
declare class BuildEnvironment extends BaseEnvironment {
|
|
2378
|
+
export declare class BuildEnvironment extends BaseEnvironment {
|
|
2364
2379
|
mode: "build";
|
|
2365
2380
|
isBuilt: boolean;
|
|
2366
2381
|
constructor(name: string, config: ResolvedConfig, setup?: {
|
|
@@ -2397,7 +2412,7 @@ type ResolvedBuilderOptions = Required<BuilderOptions>;
|
|
|
2397
2412
|
* Creates a ViteBuilder to orchestrate building multiple environments.
|
|
2398
2413
|
* @experimental
|
|
2399
2414
|
*/
|
|
2400
|
-
declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: null | boolean): Promise<ViteBuilder>;
|
|
2415
|
+
export declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: null | boolean): Promise<ViteBuilder>;
|
|
2401
2416
|
type BuildAppHook = (this: MinimalPluginContextWithoutEnvironment, builder: ViteBuilder) => Promise<void>;
|
|
2402
2417
|
//#endregion
|
|
2403
2418
|
//#region src/node/environment.d.ts
|
|
@@ -2409,7 +2424,7 @@ type Environment = DevEnvironment | BuildEnvironment | ScanEnvironment | Unknown
|
|
|
2409
2424
|
*
|
|
2410
2425
|
* @experimental
|
|
2411
2426
|
*/
|
|
2412
|
-
declare function perEnvironmentState<State>(initial: (environment: Environment) => State): (context: PluginContext) => State;
|
|
2427
|
+
export declare function perEnvironmentState<State>(initial: (environment: Environment) => State): (context: PluginContext) => State;
|
|
2413
2428
|
//#endregion
|
|
2414
2429
|
//#region src/node/server/pluginContainer.d.ts
|
|
2415
2430
|
type SkipInformation = {
|
|
@@ -2777,7 +2792,7 @@ interface ResolvedServerUrls {
|
|
|
2777
2792
|
*/
|
|
2778
2793
|
networkInterfaceNames?: (string | undefined)[];
|
|
2779
2794
|
}
|
|
2780
|
-
declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
|
|
2795
|
+
export declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
|
|
2781
2796
|
//#endregion
|
|
2782
2797
|
//#region src/node/plugins/html.d.ts
|
|
2783
2798
|
interface HtmlTagDescriptor {
|
|
@@ -3090,7 +3105,7 @@ type PluginOption = Thenable<Plugin | {
|
|
|
3090
3105
|
/**
|
|
3091
3106
|
* @experimental
|
|
3092
3107
|
*/
|
|
3093
|
-
declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
|
|
3108
|
+
export declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
|
|
3094
3109
|
//#endregion
|
|
3095
3110
|
//#region src/node/idResolver.d.ts
|
|
3096
3111
|
type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
|
|
@@ -3098,9 +3113,9 @@ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: stri
|
|
|
3098
3113
|
* Create an internal resolver to be used in special scenarios, e.g.
|
|
3099
3114
|
* optimizer and handling css @imports
|
|
3100
3115
|
*/
|
|
3101
|
-
declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
|
|
3116
|
+
export declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
|
|
3102
3117
|
//#endregion
|
|
3103
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.
|
|
3118
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.26_tsx@4.23.12_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
|
|
3104
3119
|
type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
|
|
3105
3120
|
interface Config {
|
|
3106
3121
|
parser?: string | ProcessOptions['parser'] | false;
|
|
@@ -3185,8 +3200,8 @@ interface PreprocessCSSResult {
|
|
|
3185
3200
|
/**
|
|
3186
3201
|
* @experimental
|
|
3187
3202
|
*/
|
|
3188
|
-
declare function preprocessCSS(code: string, filename: string, config: ResolvedConfig): Promise<PreprocessCSSResult>;
|
|
3189
|
-
declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): Promise<ExistingRawSourceMap>;
|
|
3203
|
+
export declare function preprocessCSS(code: string, filename: string, config: ResolvedConfig): Promise<PreprocessCSSResult>;
|
|
3204
|
+
export declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): Promise<ExistingRawSourceMap>;
|
|
3190
3205
|
type PreprocessorAdditionalDataResult = string | {
|
|
3191
3206
|
content: string;
|
|
3192
3207
|
map?: ExistingRawSourceMap;
|
|
@@ -3215,7 +3230,7 @@ interface ESBuildOptions extends esbuildOptions_EsbuildTransformOptions {
|
|
|
3215
3230
|
type ESBuildTransformResult = Omit<EsbuildTransformResult, "map"> & {
|
|
3216
3231
|
map: SourceMap;
|
|
3217
3232
|
};
|
|
3218
|
-
declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
|
|
3233
|
+
export declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
|
|
3219
3234
|
//#endregion
|
|
3220
3235
|
//#region src/node/plugins/json.d.ts
|
|
3221
3236
|
interface JsonOptions {
|
|
@@ -3313,7 +3328,7 @@ interface OxcOptions extends Omit<rolldown_utils_TransformOptions, "cwd" | "sour
|
|
|
3313
3328
|
jsxRefreshInclude?: string | RegExp | ReadonlyArray<string | RegExp>;
|
|
3314
3329
|
jsxRefreshExclude?: string | RegExp | ReadonlyArray<string | RegExp>;
|
|
3315
3330
|
}
|
|
3316
|
-
declare function transformWithOxc(code: string, filename: string, options?: rolldown_utils_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_utils_TransformResult, "errors">>;
|
|
3331
|
+
export declare function transformWithOxc(code: string, filename: string, options?: rolldown_utils_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_utils_TransformResult, "errors">>;
|
|
3317
3332
|
//#endregion
|
|
3318
3333
|
//#region src/node/config.d.ts
|
|
3319
3334
|
interface ConfigEnv {
|
|
@@ -3343,12 +3358,12 @@ type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFnObject |
|
|
|
3343
3358
|
* accepts a direct {@link UserConfig} object, or a function that returns it.
|
|
3344
3359
|
* The function receives a {@link ConfigEnv} object.
|
|
3345
3360
|
*/
|
|
3346
|
-
declare function defineConfig(config: UserConfig): UserConfig;
|
|
3347
|
-
declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
|
|
3348
|
-
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
3349
|
-
declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
|
|
3350
|
-
declare function defineConfig(config: UserConfigFn): UserConfigFn;
|
|
3351
|
-
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
3361
|
+
export declare function defineConfig(config: UserConfig): UserConfig;
|
|
3362
|
+
export declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
|
|
3363
|
+
export declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
3364
|
+
export declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
|
|
3365
|
+
export declare function defineConfig(config: UserConfigFn): UserConfigFn;
|
|
3366
|
+
export declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
3352
3367
|
interface CreateDevEnvironmentContext {
|
|
3353
3368
|
ws: WebSocketServer;
|
|
3354
3369
|
}
|
|
@@ -3839,16 +3854,16 @@ interface PluginHookUtils {
|
|
|
3839
3854
|
getSortedPluginHooks: <K extends keyof Plugin>(hookName: K) => NonNullable<HookHandler<Plugin[K]>>[];
|
|
3840
3855
|
}
|
|
3841
3856
|
type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
|
|
3842
|
-
declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
|
|
3843
|
-
declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
|
|
3844
|
-
declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
|
|
3857
|
+
export declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
|
|
3858
|
+
export declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
|
|
3859
|
+
export declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
|
|
3845
3860
|
path: string;
|
|
3846
3861
|
config: UserConfig;
|
|
3847
3862
|
dependencies: string[];
|
|
3848
3863
|
} | null>;
|
|
3849
3864
|
//#endregion
|
|
3850
3865
|
//#region src/node/server/middlewares/error.d.ts
|
|
3851
|
-
declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
|
|
3866
|
+
export declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
|
|
3852
3867
|
//#endregion
|
|
3853
3868
|
//#region src/node/ssr/runtime/serverModuleRunner.d.ts
|
|
3854
3869
|
/**
|
|
@@ -3866,23 +3881,23 @@ interface ServerModuleRunnerOptions extends Omit<ModuleRunnerOptions, "root" | "
|
|
|
3866
3881
|
*/
|
|
3867
3882
|
evaluator?: ModuleEvaluator;
|
|
3868
3883
|
}
|
|
3869
|
-
declare const createServerModuleRunnerTransport: (options: {
|
|
3884
|
+
export declare const createServerModuleRunnerTransport: (options: {
|
|
3870
3885
|
channel: NormalizedServerHotChannel;
|
|
3871
3886
|
}) => ModuleRunnerTransport;
|
|
3872
3887
|
/**
|
|
3873
3888
|
* Create an instance of the Vite SSR runtime that support HMR.
|
|
3874
3889
|
* @experimental
|
|
3875
3890
|
*/
|
|
3876
|
-
declare function createServerModuleRunner(environment: DevEnvironment, options?: ServerModuleRunnerOptions): ModuleRunner;
|
|
3891
|
+
export declare function createServerModuleRunner(environment: DevEnvironment, options?: ServerModuleRunnerOptions): ModuleRunner;
|
|
3877
3892
|
//#endregion
|
|
3878
3893
|
//#region src/node/server/environments/runnableEnvironment.d.ts
|
|
3879
|
-
declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
|
|
3894
|
+
export declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
|
|
3880
3895
|
interface RunnableDevEnvironmentContext extends Omit<DevEnvironmentContext, "hot"> {
|
|
3881
3896
|
runner?: (environment: RunnableDevEnvironment, options?: ServerModuleRunnerOptions) => ModuleRunner;
|
|
3882
3897
|
runnerOptions?: ServerModuleRunnerOptions;
|
|
3883
3898
|
hot?: boolean;
|
|
3884
3899
|
}
|
|
3885
|
-
declare function isRunnableDevEnvironment(environment: Environment): environment is RunnableDevEnvironment;
|
|
3900
|
+
export declare function isRunnableDevEnvironment(environment: Environment): environment is RunnableDevEnvironment;
|
|
3886
3901
|
declare class RunnableDevEnvironment extends DevEnvironment {
|
|
3887
3902
|
private _runner;
|
|
3888
3903
|
private _runnerFactory;
|
|
@@ -3896,8 +3911,8 @@ declare class RunnableDevEnvironment extends DevEnvironment {
|
|
|
3896
3911
|
interface FetchableDevEnvironmentContext extends DevEnvironmentContext {
|
|
3897
3912
|
handleRequest(request: Request): Promise<Response> | Response;
|
|
3898
3913
|
}
|
|
3899
|
-
declare function createFetchableDevEnvironment(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext): FetchableDevEnvironment;
|
|
3900
|
-
declare function isFetchableDevEnvironment(environment: Environment): environment is FetchableDevEnvironment;
|
|
3914
|
+
export declare function createFetchableDevEnvironment(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext): FetchableDevEnvironment;
|
|
3915
|
+
export declare function isFetchableDevEnvironment(environment: Environment): environment is FetchableDevEnvironment;
|
|
3901
3916
|
declare class FetchableDevEnvironment extends DevEnvironment {
|
|
3902
3917
|
private _handleRequest;
|
|
3903
3918
|
constructor(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext);
|
|
@@ -3913,7 +3928,7 @@ interface RunnerImportResult<T> {
|
|
|
3913
3928
|
* Import any file using the default Vite environment.
|
|
3914
3929
|
* @experimental
|
|
3915
3930
|
*/
|
|
3916
|
-
declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
|
|
3931
|
+
export declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
|
|
3917
3932
|
//#endregion
|
|
3918
3933
|
//#region src/node/ssr/fetchModule.d.ts
|
|
3919
3934
|
interface FetchModuleOptions {
|
|
@@ -3925,7 +3940,7 @@ interface FetchModuleOptions {
|
|
|
3925
3940
|
* Fetch module information for Vite module runner.
|
|
3926
3941
|
* @experimental
|
|
3927
3942
|
*/
|
|
3928
|
-
declare function fetchModule(environment: DevEnvironment, url: string, importer?: string, options?: FetchModuleOptions): Promise<moduleRunner_FetchResult>;
|
|
3943
|
+
export declare function fetchModule(environment: DevEnvironment, url: string, importer?: string, options?: FetchModuleOptions): Promise<moduleRunner_FetchResult>;
|
|
3929
3944
|
//#endregion
|
|
3930
3945
|
//#region src/node/ssr/ssrTransform.d.ts
|
|
3931
3946
|
interface ModuleRunnerTransformOptions {
|
|
@@ -3944,21 +3959,21 @@ declare const DEFAULT_SERVER_MAIN_FIELDS: readonly string[];
|
|
|
3944
3959
|
declare const DEFAULT_CLIENT_CONDITIONS: readonly string[];
|
|
3945
3960
|
declare const DEFAULT_SERVER_CONDITIONS: readonly string[];
|
|
3946
3961
|
declare const DEFAULT_EXTERNAL_CONDITIONS: readonly string[];
|
|
3947
|
-
declare const defaultAllowedOrigins: RegExp;
|
|
3962
|
+
export declare const defaultAllowedOrigins: RegExp;
|
|
3948
3963
|
//#endregion
|
|
3949
3964
|
//#region src/node/utils.d.ts
|
|
3950
3965
|
/**
|
|
3951
3966
|
* Inlined to keep `@rollup/pluginutils` in devDependencies
|
|
3952
3967
|
*/
|
|
3953
3968
|
type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
|
|
3954
|
-
declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
|
|
3969
|
+
export declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
|
|
3955
3970
|
resolve?: string | false | null;
|
|
3956
3971
|
}) => (id: unknown) => boolean;
|
|
3957
|
-
declare const rollupVersion = "4.23.0";
|
|
3958
|
-
declare function normalizePath(id: string): string;
|
|
3959
|
-
declare const isCSSRequest: (request: string) => boolean;
|
|
3960
|
-
declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
|
|
3961
|
-
declare function mergeAlias(a?: AliasOptions, b?: AliasOptions): AliasOptions | undefined;
|
|
3972
|
+
export declare const rollupVersion = "4.23.0";
|
|
3973
|
+
export declare function normalizePath(id: string): string;
|
|
3974
|
+
export declare const isCSSRequest: (request: string) => boolean;
|
|
3975
|
+
export declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
|
|
3976
|
+
export declare function mergeAlias(a?: AliasOptions, b?: AliasOptions): AliasOptions | undefined;
|
|
3962
3977
|
//#endregion
|
|
3963
3978
|
//#region src/node/server/send.d.ts
|
|
3964
3979
|
interface SendOptions {
|
|
@@ -3969,33 +3984,33 @@ interface SendOptions {
|
|
|
3969
3984
|
mappings: "";
|
|
3970
3985
|
} | null;
|
|
3971
3986
|
}
|
|
3972
|
-
declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
|
|
3987
|
+
export declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
|
|
3973
3988
|
//#endregion
|
|
3974
3989
|
//#region src/node/server/searchRoot.d.ts
|
|
3975
3990
|
/**
|
|
3976
3991
|
* Search up for the nearest workspace root
|
|
3977
3992
|
*/
|
|
3978
|
-
declare function searchForWorkspaceRoot(current: string, root?: string): string;
|
|
3993
|
+
export declare function searchForWorkspaceRoot(current: string, root?: string): string;
|
|
3979
3994
|
//#endregion
|
|
3980
3995
|
//#region src/node/server/middlewares/static.d.ts
|
|
3981
3996
|
/**
|
|
3982
3997
|
* Check if the url is allowed to be served, via the `server.fs` config.
|
|
3983
3998
|
* @deprecated Use the `isFileLoadingAllowed` function instead.
|
|
3984
3999
|
*/
|
|
3985
|
-
declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
|
|
3986
|
-
declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
|
|
4000
|
+
export declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
|
|
4001
|
+
export declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
|
|
3987
4002
|
/**
|
|
3988
4003
|
* Warning: parameters are not validated, only works with normalized absolute paths
|
|
3989
4004
|
*/
|
|
3990
|
-
declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
|
|
4005
|
+
export declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
|
|
3991
4006
|
//#endregion
|
|
3992
4007
|
//#region src/node/env.d.ts
|
|
3993
4008
|
/**
|
|
3994
4009
|
* Load `.env` files within the `envDir` and merge them with the matching
|
|
3995
4010
|
* variables already present in `process.env`.
|
|
3996
4011
|
*/
|
|
3997
|
-
declare function loadEnv(mode: string, envDir: string | false, prefixes?: string | string[]): Record<string, string>;
|
|
3998
|
-
declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
|
|
4012
|
+
export declare function loadEnv(mode: string, envDir: string | false, prefixes?: string | string[]): Record<string, string>;
|
|
4013
|
+
export declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
|
|
3999
4014
|
//#endregion
|
|
4000
4015
|
//#region src/node/plugins/manifest.d.ts
|
|
4001
4016
|
type Manifest = Record<string, ManifestChunk>;
|
|
@@ -4046,9 +4061,9 @@ interface ManifestChunk {
|
|
|
4046
4061
|
//#endregion
|
|
4047
4062
|
//#region src/node/index.d.ts
|
|
4048
4063
|
/** @deprecated - use `parseSync` instead */
|
|
4049
|
-
declare const parseAst: typeof parseAst$1;
|
|
4064
|
+
export declare const parseAst: typeof parseAst$1;
|
|
4050
4065
|
/** @deprecated - use `parse` instead */
|
|
4051
|
-
declare const parseAstAsync: typeof parseAstAsync$1;
|
|
4052
|
-
declare const esbuildVersion = "0.25.0";
|
|
4066
|
+
export declare const parseAstAsync: typeof parseAstAsync$1;
|
|
4067
|
+
export declare const esbuildVersion = "0.25.0";
|
|
4053
4068
|
//#endregion
|
|
4054
|
-
export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook,
|
|
4069
|
+
export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESTree, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlAssetSource, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type KnownQueryTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinifyOptions, type MinifyResult, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type OxcOptions, type ParseResult, type ParserOptions, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type Config as PostcssUserConfig, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rolldown, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, Visitor, type VisitorObject, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, type WsOptions, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, esmExternalRequirePlugin, minify, minifySync, ssrTransform as moduleRunnerTransform, parse, parseSync, rolldownVersion, VERSION as version, withFilter };
|
|
@@ -88,18 +88,18 @@ interface SSRImportMetadata extends DefineImportMetadata {
|
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/module-runner/constants.d.ts
|
|
91
|
-
declare const ssrModuleExportsKey = "__vite_ssr_exports__";
|
|
92
|
-
declare const ssrImportKey = "__vite_ssr_import__";
|
|
93
|
-
declare const ssrDynamicImportKey = "__vite_ssr_dynamic_import__";
|
|
94
|
-
declare const ssrExportAllKey = "__vite_ssr_exportAll__";
|
|
95
|
-
declare const ssrExportNameKey = "__vite_ssr_exportName__";
|
|
96
|
-
declare const ssrImportMetaKey = "__vite_ssr_import_meta__";
|
|
91
|
+
export declare const ssrModuleExportsKey = "__vite_ssr_exports__";
|
|
92
|
+
export declare const ssrImportKey = "__vite_ssr_import__";
|
|
93
|
+
export declare const ssrDynamicImportKey = "__vite_ssr_dynamic_import__";
|
|
94
|
+
export declare const ssrExportAllKey = "__vite_ssr_exportAll__";
|
|
95
|
+
export declare const ssrExportNameKey = "__vite_ssr_exportName__";
|
|
96
|
+
export declare const ssrImportMetaKey = "__vite_ssr_import_meta__";
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/module-runner/runner.d.ts
|
|
99
99
|
interface ModuleRunnerDebugger {
|
|
100
100
|
(formatter: unknown, ...args: unknown[]): void;
|
|
101
101
|
}
|
|
102
|
-
declare class ModuleRunner {
|
|
102
|
+
export declare class ModuleRunner {
|
|
103
103
|
options: ModuleRunnerOptions;
|
|
104
104
|
evaluator: ModuleEvaluator;
|
|
105
105
|
private debug?;
|
|
@@ -252,7 +252,7 @@ declare class EvaluatedModuleNode {
|
|
|
252
252
|
map: DecodedMap | undefined;
|
|
253
253
|
constructor(id: string, url: string);
|
|
254
254
|
}
|
|
255
|
-
declare class EvaluatedModules {
|
|
255
|
+
export declare class EvaluatedModules {
|
|
256
256
|
readonly idToModuleMap: Map<string, EvaluatedModuleNode>;
|
|
257
257
|
readonly fileToModulesMap: Map<string, Set<EvaluatedModuleNode>>;
|
|
258
258
|
readonly urlToIdModuleMap: Map<string, EvaluatedModuleNode>;
|
|
@@ -294,20 +294,20 @@ declare class EvaluatedModules {
|
|
|
294
294
|
getModuleSourceMapById(id: string): DecodedMap | null;
|
|
295
295
|
clear(): void;
|
|
296
296
|
}
|
|
297
|
-
declare function normalizeModuleId(file: string): string;
|
|
297
|
+
export declare function normalizeModuleId(file: string): string;
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region src/module-runner/esmEvaluator.d.ts
|
|
300
|
-
declare class ESModulesEvaluator implements ModuleEvaluator {
|
|
300
|
+
export declare class ESModulesEvaluator implements ModuleEvaluator {
|
|
301
301
|
readonly startOffset: number;
|
|
302
302
|
runInlinedModule(context: ModuleRunnerContext, code: string): Promise<any>;
|
|
303
303
|
runExternalModule(filepath: string): Promise<any>;
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region src/module-runner/createImportMeta.d.ts
|
|
307
|
-
declare function createDefaultImportMeta(modulePath: string): ModuleRunnerImportMeta;
|
|
307
|
+
export declare function createDefaultImportMeta(modulePath: string): ModuleRunnerImportMeta;
|
|
308
308
|
/**
|
|
309
309
|
* Create import.meta object for Node.js.
|
|
310
310
|
*/
|
|
311
|
-
declare function createNodeImportMeta(modulePath: string): ModuleRunnerImportMeta;
|
|
311
|
+
export declare function createNodeImportMeta(modulePath: string): ModuleRunnerImportMeta;
|
|
312
312
|
//#endregion
|
|
313
|
-
export {
|
|
313
|
+
export { type EvaluatedModuleNode, type FetchFunction, type FetchFunctionOptions, type FetchResult, type HMRLogger, type InterceptorOptions, type ModuleEvaluator, type ModuleRunnerContext, type ModuleRunnerHmr, type ModuleRunnerImportMeta, type ModuleRunnerOptions, type ModuleRunnerTransport, type ModuleRunnerTransportHandlers, type ResolvedResult, type SSRImportMetadata, createWebSocketModuleRunnerTransport };
|