@chuckcchen/vite-plugin 1.0.12 → 1.0.13
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/dist/factory/detectors.d.ts +23 -0
- package/dist/factory/detectors.d.ts.map +1 -0
- package/dist/factory/detectors.js +60 -0
- package/dist/factory/detectors.js.map +1 -0
- package/dist/factory/hooks.d.ts +84 -0
- package/dist/factory/hooks.d.ts.map +1 -0
- package/dist/factory/hooks.js +227 -0
- package/dist/factory/hooks.js.map +1 -0
- package/dist/factory/index.d.ts +68 -0
- package/dist/factory/index.d.ts.map +1 -0
- package/dist/factory/index.js +92 -0
- package/dist/factory/index.js.map +1 -0
- package/dist/factory/presets.d.ts +105 -0
- package/dist/factory/presets.d.ts.map +1 -0
- package/dist/factory/presets.js +172 -0
- package/dist/factory/presets.js.map +1 -0
- package/dist/factory.d.ts +56 -0
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +155 -10
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +9 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +35 -1
- package/dist/utils.js.map +1 -1
- package/dist/vite-config-parser.d.ts +203 -0
- package/dist/vite-config-parser.d.ts.map +1 -0
- package/dist/vite-config-parser.js +465 -0
- package/dist/vite-config-parser.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vite Config Parser - Centralized Vite configuration parsing module
|
|
3
|
+
*
|
|
4
|
+
* This module provides a unified interface for parsing and extracting
|
|
5
|
+
* configuration from Vite's ResolvedConfig object.
|
|
6
|
+
*
|
|
7
|
+
* Supported Vite Config Properties:
|
|
8
|
+
* - build.outDir: Custom output directory
|
|
9
|
+
* - build.assetsDir: Static assets directory name
|
|
10
|
+
* - build.ssr: SSR entry point (string or boolean)
|
|
11
|
+
* - build.manifest: Whether to generate manifest.json
|
|
12
|
+
* - build.ssrManifest: Whether to generate SSR manifest
|
|
13
|
+
* - base: Public base path
|
|
14
|
+
* - rollupOptions.input: Entry file(s) - string, array, or object
|
|
15
|
+
* - rollupOptions.output.dir: Output directory override
|
|
16
|
+
* - rollupOptions.output.entryFileNames: Output filename pattern
|
|
17
|
+
* - rollupOptions.output.assetFileNames: Asset filename pattern
|
|
18
|
+
* - rollupOptions.output.chunkFileNames: Chunk filename pattern
|
|
19
|
+
*
|
|
20
|
+
* Not Supported (with reasons):
|
|
21
|
+
* - rollupOptions.output.entryFileNames as function: Cannot be statically evaluated
|
|
22
|
+
* - rollupOptions.output.assetFileNames as function: Cannot be statically evaluated
|
|
23
|
+
* - rollupOptions.output.chunkFileNames as function: Cannot be statically evaluated
|
|
24
|
+
* - build.lib: Library mode is not applicable for EdgeOne deployment
|
|
25
|
+
* - build.watch: Watch mode is not relevant for production builds
|
|
26
|
+
*/
|
|
27
|
+
import path from "path";
|
|
28
|
+
import fs from "fs/promises";
|
|
29
|
+
/**
|
|
30
|
+
* Default server entry file candidates
|
|
31
|
+
*/
|
|
32
|
+
const DEFAULT_SERVER_ENTRY_CANDIDATES = [
|
|
33
|
+
"index.js",
|
|
34
|
+
"index.mjs",
|
|
35
|
+
"entry-server.js",
|
|
36
|
+
"entry-server.mjs",
|
|
37
|
+
"server.js",
|
|
38
|
+
"server.mjs",
|
|
39
|
+
];
|
|
40
|
+
// ============================================================================
|
|
41
|
+
// ViteConfigParser Class
|
|
42
|
+
// ============================================================================
|
|
43
|
+
/**
|
|
44
|
+
* Vite Configuration Parser
|
|
45
|
+
*
|
|
46
|
+
* Provides a unified interface for extracting and parsing Vite configuration.
|
|
47
|
+
* Handles various configuration patterns and provides sensible defaults.
|
|
48
|
+
*/
|
|
49
|
+
export class ViteConfigParser {
|
|
50
|
+
constructor(config, projectRoot, options = {}) {
|
|
51
|
+
this.config = config;
|
|
52
|
+
this.projectRoot = projectRoot;
|
|
53
|
+
this.logger = options.logger;
|
|
54
|
+
this.serverEntryCandidates =
|
|
55
|
+
options.serverEntryCandidates || DEFAULT_SERVER_ENTRY_CANDIDATES;
|
|
56
|
+
}
|
|
57
|
+
// ==========================================================================
|
|
58
|
+
// Main Parse Method
|
|
59
|
+
// ==========================================================================
|
|
60
|
+
/**
|
|
61
|
+
* Parse complete Vite configuration information
|
|
62
|
+
*/
|
|
63
|
+
async parse() {
|
|
64
|
+
const outDir = this.getOutputDir();
|
|
65
|
+
const assetsDir = this.getAssetsDir();
|
|
66
|
+
const absoluteOutDir = this.getAbsoluteOutputDir();
|
|
67
|
+
const serverDir = this.getServerDir();
|
|
68
|
+
return {
|
|
69
|
+
// Basic
|
|
70
|
+
root: this.config.root,
|
|
71
|
+
base: this.getBase(),
|
|
72
|
+
mode: this.config.mode,
|
|
73
|
+
// Build output
|
|
74
|
+
outDir,
|
|
75
|
+
assetsDir,
|
|
76
|
+
absoluteOutDir,
|
|
77
|
+
absoluteAssetsDir: path.join(absoluteOutDir, assetsDir),
|
|
78
|
+
// SSR
|
|
79
|
+
isSSR: this.isSSRBuild(),
|
|
80
|
+
ssrEntry: this.getSSREntry(),
|
|
81
|
+
// Server
|
|
82
|
+
serverDir,
|
|
83
|
+
serverEntryPath: serverDir
|
|
84
|
+
? await this.findServerEntry(serverDir)
|
|
85
|
+
: null,
|
|
86
|
+
// Manifest
|
|
87
|
+
hasManifest: this.hasManifest(),
|
|
88
|
+
hasSSRManifest: this.hasSSRManifest(),
|
|
89
|
+
// Rollup patterns
|
|
90
|
+
entryFileNames: this.getEntryFileNames(),
|
|
91
|
+
assetFileNames: this.getAssetFileNames(),
|
|
92
|
+
chunkFileNames: this.getChunkFileNames(),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
// ==========================================================================
|
|
96
|
+
// Basic Configuration
|
|
97
|
+
// ==========================================================================
|
|
98
|
+
/**
|
|
99
|
+
* Get public base path
|
|
100
|
+
* Used for asset URL prefixing
|
|
101
|
+
*/
|
|
102
|
+
getBase() {
|
|
103
|
+
return this.config.base || "/";
|
|
104
|
+
}
|
|
105
|
+
// ==========================================================================
|
|
106
|
+
// Output Directory Configuration
|
|
107
|
+
// ==========================================================================
|
|
108
|
+
/**
|
|
109
|
+
* Get output directory (relative path)
|
|
110
|
+
* Priority: rollupOptions.output.dir > build.outDir > "dist"
|
|
111
|
+
*/
|
|
112
|
+
getOutputDir() {
|
|
113
|
+
const buildConfig = this.config.build;
|
|
114
|
+
// Check rollupOptions.output.dir first (takes precedence)
|
|
115
|
+
const rollupOutput = buildConfig.rollupOptions?.output;
|
|
116
|
+
if (rollupOutput) {
|
|
117
|
+
const outputDir = Array.isArray(rollupOutput)
|
|
118
|
+
? rollupOutput[0]?.dir
|
|
119
|
+
: rollupOutput.dir;
|
|
120
|
+
if (outputDir) {
|
|
121
|
+
this.logger?.verbose(`Output dir from rollupOptions.output.dir: ${outputDir}`);
|
|
122
|
+
return outputDir;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// Fall back to build.outDir
|
|
126
|
+
const outDir = buildConfig.outDir || "dist";
|
|
127
|
+
this.logger?.verbose(`Output dir from build.outDir: ${outDir}`);
|
|
128
|
+
return outDir;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get absolute output directory path
|
|
132
|
+
*/
|
|
133
|
+
getAbsoluteOutputDir() {
|
|
134
|
+
const outDir = this.getOutputDir();
|
|
135
|
+
if (path.isAbsolute(outDir)) {
|
|
136
|
+
return outDir;
|
|
137
|
+
}
|
|
138
|
+
return path.join(this.projectRoot, outDir);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Get assets directory name (relative to outDir)
|
|
142
|
+
* Default: "assets"
|
|
143
|
+
*/
|
|
144
|
+
getAssetsDir() {
|
|
145
|
+
return this.config.build.assetsDir || "assets";
|
|
146
|
+
}
|
|
147
|
+
// ==========================================================================
|
|
148
|
+
// SSR Configuration
|
|
149
|
+
// ==========================================================================
|
|
150
|
+
/**
|
|
151
|
+
* Check if this is an SSR build
|
|
152
|
+
*/
|
|
153
|
+
isSSRBuild() {
|
|
154
|
+
const ssr = this.config.build.ssr;
|
|
155
|
+
return ssr !== false && ssr !== undefined;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Get SSR entry point (if specified as string path)
|
|
159
|
+
*/
|
|
160
|
+
getSSREntry() {
|
|
161
|
+
const ssr = this.config.build.ssr;
|
|
162
|
+
if (typeof ssr === "string") {
|
|
163
|
+
this.logger?.verbose(`SSR entry from build.ssr: ${ssr}`);
|
|
164
|
+
return ssr;
|
|
165
|
+
}
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Get server output directory for SSR builds
|
|
170
|
+
*/
|
|
171
|
+
getServerDir() {
|
|
172
|
+
if (!this.isSSRBuild()) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
return this.getAbsoluteOutputDir();
|
|
176
|
+
}
|
|
177
|
+
// ==========================================================================
|
|
178
|
+
// Manifest Configuration
|
|
179
|
+
// ==========================================================================
|
|
180
|
+
/**
|
|
181
|
+
* Check if manifest.json is generated
|
|
182
|
+
*/
|
|
183
|
+
hasManifest() {
|
|
184
|
+
return this.config.build.manifest === true;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Check if SSR manifest is generated
|
|
188
|
+
*/
|
|
189
|
+
hasSSRManifest() {
|
|
190
|
+
return this.config.build.ssrManifest === true;
|
|
191
|
+
}
|
|
192
|
+
// ==========================================================================
|
|
193
|
+
// Rollup Output Patterns
|
|
194
|
+
// ==========================================================================
|
|
195
|
+
/**
|
|
196
|
+
* Get entry file naming pattern
|
|
197
|
+
* Returns null if pattern is a function (cannot be statically evaluated)
|
|
198
|
+
*/
|
|
199
|
+
getEntryFileNames() {
|
|
200
|
+
const output = this.getRollupOutput();
|
|
201
|
+
const pattern = output?.entryFileNames;
|
|
202
|
+
if (typeof pattern === "function") {
|
|
203
|
+
this.logger?.verbose("entryFileNames is a function, cannot be statically evaluated");
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
if (typeof pattern === "string") {
|
|
207
|
+
return pattern;
|
|
208
|
+
}
|
|
209
|
+
return "[name].js";
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Get asset file naming pattern
|
|
213
|
+
* Returns null if pattern is a function (cannot be statically evaluated)
|
|
214
|
+
*/
|
|
215
|
+
getAssetFileNames() {
|
|
216
|
+
const output = this.getRollupOutput();
|
|
217
|
+
const pattern = output?.assetFileNames;
|
|
218
|
+
if (typeof pattern === "function") {
|
|
219
|
+
this.logger?.verbose("assetFileNames is a function, cannot be statically evaluated");
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
if (typeof pattern === "string") {
|
|
223
|
+
return pattern;
|
|
224
|
+
}
|
|
225
|
+
return "assets/[name]-[hash][extname]";
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get chunk file naming pattern
|
|
229
|
+
* Returns null if pattern is a function (cannot be statically evaluated)
|
|
230
|
+
*/
|
|
231
|
+
getChunkFileNames() {
|
|
232
|
+
const output = this.getRollupOutput();
|
|
233
|
+
const pattern = output?.chunkFileNames;
|
|
234
|
+
if (typeof pattern === "function") {
|
|
235
|
+
this.logger?.verbose("chunkFileNames is a function, cannot be statically evaluated");
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
if (typeof pattern === "string") {
|
|
239
|
+
return pattern;
|
|
240
|
+
}
|
|
241
|
+
return "assets/[name]-[hash].js";
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Get rollup output configuration (handles array case)
|
|
245
|
+
*/
|
|
246
|
+
getRollupOutput() {
|
|
247
|
+
const output = this.config.build.rollupOptions?.output;
|
|
248
|
+
if (Array.isArray(output)) {
|
|
249
|
+
return output[0];
|
|
250
|
+
}
|
|
251
|
+
return output;
|
|
252
|
+
}
|
|
253
|
+
// ==========================================================================
|
|
254
|
+
// Server Entry Detection
|
|
255
|
+
// ==========================================================================
|
|
256
|
+
/**
|
|
257
|
+
* Find server entry file path
|
|
258
|
+
* Priority:
|
|
259
|
+
* 1. Derive from rollupOptions.input + entryFileNames pattern
|
|
260
|
+
* 2. Derive from build.ssr entry
|
|
261
|
+
* 3. Fall back to candidate file search
|
|
262
|
+
*/
|
|
263
|
+
async findServerEntry(serverDir) {
|
|
264
|
+
// Try to derive from Vite config first
|
|
265
|
+
const derivedEntry = await this.deriveServerEntryFromConfig(serverDir);
|
|
266
|
+
if (derivedEntry) {
|
|
267
|
+
return derivedEntry;
|
|
268
|
+
}
|
|
269
|
+
// Fall back to candidate search
|
|
270
|
+
return this.searchServerEntryCandidates(serverDir);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Derive server entry path from Vite configuration
|
|
274
|
+
*/
|
|
275
|
+
async deriveServerEntryFromConfig(serverDir) {
|
|
276
|
+
// Get input name from various sources
|
|
277
|
+
const inputName = this.extractInputName();
|
|
278
|
+
if (!inputName) {
|
|
279
|
+
this.logger?.verbose("No input name found in Vite config");
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
this.logger?.verbose(`Extracted input name: ${inputName}`);
|
|
283
|
+
// Get entry file pattern
|
|
284
|
+
const entryPattern = this.getEntryFileNames();
|
|
285
|
+
if (!entryPattern) {
|
|
286
|
+
// Pattern is a function, cannot derive statically
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
// Replace [name] placeholder
|
|
290
|
+
let outputFileName = entryPattern.replace(/\[name\]/g, inputName);
|
|
291
|
+
// Handle [hash] placeholder - need to search for matching file
|
|
292
|
+
if (outputFileName.includes("[hash]")) {
|
|
293
|
+
this.logger?.verbose(`Entry pattern contains [hash], searching for matching file`);
|
|
294
|
+
return this.findFileByPattern(serverDir, outputFileName);
|
|
295
|
+
}
|
|
296
|
+
// Direct path check
|
|
297
|
+
const fullPath = path.join(serverDir, outputFileName);
|
|
298
|
+
if (await this.pathExists(fullPath)) {
|
|
299
|
+
this.logger?.verbose(`Found server entry from config: ${fullPath}`);
|
|
300
|
+
return fullPath;
|
|
301
|
+
}
|
|
302
|
+
this.logger?.verbose(`Server entry not found at expected path: ${fullPath}`);
|
|
303
|
+
return null;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Extract input name from Vite configuration
|
|
307
|
+
* Handles: build.ssr (string), rollupOptions.input (string/array/object)
|
|
308
|
+
*/
|
|
309
|
+
extractInputName() {
|
|
310
|
+
const buildConfig = this.config.build;
|
|
311
|
+
// Try build.ssr first (if it's a string path)
|
|
312
|
+
if (typeof buildConfig.ssr === "string") {
|
|
313
|
+
const name = path.basename(buildConfig.ssr, path.extname(buildConfig.ssr));
|
|
314
|
+
this.logger?.verbose(`Input name from build.ssr: ${name}`);
|
|
315
|
+
return name;
|
|
316
|
+
}
|
|
317
|
+
// Try rollupOptions.input
|
|
318
|
+
const input = buildConfig.rollupOptions?.input;
|
|
319
|
+
if (!input) {
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
322
|
+
if (typeof input === "string") {
|
|
323
|
+
return path.basename(input, path.extname(input));
|
|
324
|
+
}
|
|
325
|
+
if (Array.isArray(input) && input.length > 0) {
|
|
326
|
+
return path.basename(input[0], path.extname(input[0]));
|
|
327
|
+
}
|
|
328
|
+
if (typeof input === "object" && input !== null) {
|
|
329
|
+
const keys = Object.keys(input);
|
|
330
|
+
if (keys.length > 0) {
|
|
331
|
+
return keys[0];
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return null;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Search for server entry using candidate file names
|
|
338
|
+
*/
|
|
339
|
+
async searchServerEntryCandidates(serverDir) {
|
|
340
|
+
for (const candidate of this.serverEntryCandidates) {
|
|
341
|
+
const entryPath = path.join(serverDir, candidate);
|
|
342
|
+
if (await this.pathExists(entryPath)) {
|
|
343
|
+
this.logger?.verbose(`Found server entry candidate: ${entryPath}`);
|
|
344
|
+
return entryPath;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// Also search in subdirectories (one level deep)
|
|
348
|
+
try {
|
|
349
|
+
const subdirs = await fs.readdir(serverDir);
|
|
350
|
+
for (const subdir of subdirs) {
|
|
351
|
+
const subdirPath = path.join(serverDir, subdir);
|
|
352
|
+
try {
|
|
353
|
+
const stat = await fs.stat(subdirPath);
|
|
354
|
+
if (stat.isDirectory()) {
|
|
355
|
+
for (const candidate of this.serverEntryCandidates) {
|
|
356
|
+
const entryPath = path.join(subdirPath, candidate);
|
|
357
|
+
if (await this.pathExists(entryPath)) {
|
|
358
|
+
this.logger?.verbose(`Found server entry in subdirectory: ${entryPath}`);
|
|
359
|
+
return entryPath;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
catch {
|
|
365
|
+
// Ignore stat errors
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
catch (error) {
|
|
370
|
+
this.logger?.verbose(`Failed to search subdirectories: ${error instanceof Error ? error.message : String(error)}`);
|
|
371
|
+
}
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Find file matching a pattern with placeholders
|
|
376
|
+
* Supports: [name], [hash], *
|
|
377
|
+
*/
|
|
378
|
+
async findFileByPattern(baseDir, pattern) {
|
|
379
|
+
// Split pattern into directory parts and file pattern
|
|
380
|
+
const parts = pattern.split("/");
|
|
381
|
+
const filePattern = parts.pop() || "";
|
|
382
|
+
const subDir = parts.join("/");
|
|
383
|
+
const searchDir = subDir ? path.join(baseDir, subDir) : baseDir;
|
|
384
|
+
if (!(await this.pathExists(searchDir))) {
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
// Convert pattern to regex
|
|
388
|
+
const regexPattern = filePattern
|
|
389
|
+
.replace(/\[name\]/g, "([^-]+)")
|
|
390
|
+
.replace(/\[hash\]/g, "[a-zA-Z0-9]+")
|
|
391
|
+
.replace(/\*/g, ".*")
|
|
392
|
+
.replace(/\./g, "\\.");
|
|
393
|
+
const regex = new RegExp(`^${regexPattern}$`);
|
|
394
|
+
try {
|
|
395
|
+
const files = await fs.readdir(searchDir);
|
|
396
|
+
for (const file of files) {
|
|
397
|
+
if (regex.test(file)) {
|
|
398
|
+
const fullPath = path.join(searchDir, file);
|
|
399
|
+
this.logger?.verbose(`Found file matching pattern "${pattern}": ${fullPath}`);
|
|
400
|
+
return fullPath;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
this.logger?.verbose(`Error searching for pattern "${pattern}": ${error instanceof Error ? error.message : String(error)}`);
|
|
406
|
+
}
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Check if path exists
|
|
411
|
+
*/
|
|
412
|
+
async pathExists(filePath) {
|
|
413
|
+
try {
|
|
414
|
+
await fs.access(filePath);
|
|
415
|
+
return true;
|
|
416
|
+
}
|
|
417
|
+
catch {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
// ============================================================================
|
|
423
|
+
// Factory Functions
|
|
424
|
+
// ============================================================================
|
|
425
|
+
/**
|
|
426
|
+
* Create a ViteConfigParser instance
|
|
427
|
+
*/
|
|
428
|
+
export function createViteConfigParser(config, projectRoot, options) {
|
|
429
|
+
return new ViteConfigParser(config, projectRoot, options);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Parse Vite configuration (convenience function)
|
|
433
|
+
*/
|
|
434
|
+
export async function parseViteConfig(config, projectRoot, options) {
|
|
435
|
+
const parser = createViteConfigParser(config, projectRoot, options);
|
|
436
|
+
return parser.parse();
|
|
437
|
+
}
|
|
438
|
+
// ============================================================================
|
|
439
|
+
// Standalone Helper Functions (for backward compatibility)
|
|
440
|
+
// ============================================================================
|
|
441
|
+
/**
|
|
442
|
+
* Get the effective output directory from Vite config
|
|
443
|
+
* @deprecated Use ViteConfigParser.getOutputDir() instead
|
|
444
|
+
*/
|
|
445
|
+
export function getOutputDirFromViteConfig(viteConfig, logger) {
|
|
446
|
+
const parser = new ViteConfigParser(viteConfig, viteConfig.root, { logger });
|
|
447
|
+
return parser.getOutputDir();
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Get the effective server directory from Vite config
|
|
451
|
+
* @deprecated Use ViteConfigParser.getServerDir() instead
|
|
452
|
+
*/
|
|
453
|
+
export function getServerDirFromViteConfig(viteConfig, projectRoot, logger) {
|
|
454
|
+
const parser = new ViteConfigParser(viteConfig, projectRoot, { logger });
|
|
455
|
+
return parser.getServerDir();
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Extract server entry path from Vite config
|
|
459
|
+
* @deprecated Use ViteConfigParser.findServerEntry() instead
|
|
460
|
+
*/
|
|
461
|
+
export async function getServerEntryFromViteConfig(viteConfig, serverDir, logger) {
|
|
462
|
+
const parser = new ViteConfigParser(viteConfig, viteConfig.root, { logger });
|
|
463
|
+
return parser.findServerEntry(serverDir);
|
|
464
|
+
}
|
|
465
|
+
//# sourceMappingURL=vite-config-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-config-parser.js","sourceRoot":"","sources":["../src/vite-config-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,aAAa,CAAC;AAmE7B;;GAEG;AACH,MAAM,+BAA+B,GAAG;IACtC,UAAU;IACV,WAAW;IACX,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,YAAY;CACb,CAAC;AAEF,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,OAAO,gBAAgB;IAM3B,YACE,MAAsB,EACtB,WAAm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