Comparing version 6.0.0-alpha.21 to 6.0.0-alpha.22
@@ -5,3 +5,3 @@ import path from 'node:path'; | ||
import { EventEmitter } from 'events'; | ||
import { I as colors, A as createLogger, r as resolveConfig } from './chunks/dep-D2vSWyBt.js'; | ||
import { I as colors, A as createLogger, r as resolveConfig } from './chunks/dep-1C5gbBiU.js'; | ||
import { VERSION } from './constants.js'; | ||
@@ -740,3 +740,3 @@ import 'node:fs/promises'; | ||
filterDuplicateOptions(options); | ||
const { createServer } = await import('./chunks/dep-D2vSWyBt.js').then(function (n) { return n.M; }); | ||
const { createServer } = await import('./chunks/dep-1C5gbBiU.js').then(function (n) { return n.M; }); | ||
try { | ||
@@ -834,3 +834,3 @@ const server = await createServer({ | ||
filterDuplicateOptions(options); | ||
const build = await import('./chunks/dep-D2vSWyBt.js').then(function (n) { return n.N; }); | ||
const build = await import('./chunks/dep-1C5gbBiU.js').then(function (n) { return n.N; }); | ||
const buildOptions = cleanGlobalCLIOptions( | ||
@@ -890,3 +890,3 @@ cleanBuilderCLIOptions(options) | ||
filterDuplicateOptions(options); | ||
const { optimizeDeps } = await import('./chunks/dep-D2vSWyBt.js').then(function (n) { return n.L; }); | ||
const { optimizeDeps } = await import('./chunks/dep-1C5gbBiU.js').then(function (n) { return n.L; }); | ||
try { | ||
@@ -917,3 +917,3 @@ const config = await resolveConfig( | ||
filterDuplicateOptions(options); | ||
const { preview } = await import('./chunks/dep-D2vSWyBt.js').then(function (n) { return n.O; }); | ||
const { preview } = await import('./chunks/dep-1C5gbBiU.js').then(function (n) { return n.O; }); | ||
try { | ||
@@ -920,0 +920,0 @@ const server = await preview({ |
export { parseAst, parseAstAsync } from 'rollup/parseAst'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-D2vSWyBt.js'; | ||
export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, j as buildErrorMessage, e as createBuilder, x as createFilter, f as createIdResolver, A as createLogger, k as createNodeDevEnvironment, c as createServer, n as createServerModuleRunner, d as defineConfig, m as fetchModule, g as formatPostcssSourceMap, F as isFileLoadingAllowed, E as isFileServingAllowed, l as loadConfigFromFile, G as loadEnv, w as mergeAlias, v as mergeConfig, q as moduleRunnerTransform, u as normalizePath, o as optimizeDeps, h as preprocessCSS, p as preview, r as resolveConfig, H as resolveEnvPrefix, y as rollupVersion, C as searchForWorkspaceRoot, z as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-D2vSWyBt.js'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-1C5gbBiU.js'; | ||
export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, j as buildErrorMessage, e as createBuilder, x as createFilter, f as createIdResolver, A as createLogger, k as createNodeDevEnvironment, c as createServer, n as createServerModuleRunner, d as defineConfig, m as fetchModule, g as formatPostcssSourceMap, F as isFileLoadingAllowed, E as isFileServingAllowed, l as loadConfigFromFile, G as loadEnv, w as mergeAlias, v as mergeConfig, q as moduleRunnerTransform, u as normalizePath, o as optimizeDeps, h as preprocessCSS, p as preview, r as resolveConfig, H as resolveEnvPrefix, y as rollupVersion, C as searchForWorkspaceRoot, z as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-1C5gbBiU.js'; | ||
export { VERSION as version } from './constants.js'; | ||
@@ -5,0 +5,0 @@ export { version as esbuildVersion } from 'esbuild'; |
@@ -126,2 +126,3 @@ import { ModuleNamespace, ViteHotContext } from '../../types/hot.js'; | ||
private readonly root; | ||
private readonly moduleInfoCache; | ||
private destroyed; | ||
@@ -152,2 +153,3 @@ constructor(options: ModuleRunnerOptions, evaluator: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined); | ||
private cachedModule; | ||
private getModuleInformation; | ||
protected directRequest(id: string, mod: ModuleCache, _callstack: string[]): Promise<any>; | ||
@@ -154,0 +156,0 @@ } |
@@ -878,2 +878,3 @@ const VALID_ID_PREFIX = "/@id/", NULL_BYTE_PLACEHOLDER = "__x00__"; | ||
root; | ||
moduleInfoCache = /* @__PURE__ */ new Map(); | ||
destroyed = !1; | ||
@@ -963,2 +964,9 @@ /** | ||
async cachedModule(url, importer) { | ||
const cacheKey = `${url}~~${importer}`; | ||
let cached = this.moduleInfoCache.get(cacheKey); | ||
return cached || (cached = this.getModuleInformation(url, importer).finally(() => { | ||
this.moduleInfoCache.delete(cacheKey); | ||
}), this.moduleInfoCache.set(cacheKey, cached)), cached; | ||
} | ||
async getModuleInformation(url, importer) { | ||
if (this.destroyed) | ||
@@ -965,0 +973,0 @@ throw new Error("Vite module runner has been destroyed."); |
{ | ||
"name": "vite", | ||
"version": "6.0.0-alpha.21", | ||
"version": "6.0.0-alpha.22", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3336779
92854