Comparing version 6.0.5 to 6.0.6
@@ -5,3 +5,3 @@ import path from 'node:path'; | ||
import { EventEmitter } from 'events'; | ||
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-BZMjGe_U.js'; | ||
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-0AosnpPU.js'; | ||
import { VERSION } from './constants.js'; | ||
@@ -744,3 +744,3 @@ import 'node:fs/promises'; | ||
filterDuplicateOptions(options); | ||
const { createServer } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.Q; }); | ||
const { createServer } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.Q; }); | ||
try { | ||
@@ -838,3 +838,3 @@ const server = await createServer({ | ||
filterDuplicateOptions(options); | ||
const { createBuilder } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.R; }); | ||
const { createBuilder } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.R; }); | ||
const buildOptions = cleanGlobalCLIOptions( | ||
@@ -874,3 +874,3 @@ cleanBuilderCLIOptions(options) | ||
filterDuplicateOptions(options); | ||
const { optimizeDeps } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.P; }); | ||
const { optimizeDeps } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.P; }); | ||
try { | ||
@@ -901,3 +901,3 @@ const config = await resolveConfig( | ||
filterDuplicateOptions(options); | ||
const { preview } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.S; }); | ||
const { preview } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.S; }); | ||
try { | ||
@@ -904,0 +904,0 @@ const server = await preview({ |
export { parseAst, parseAstAsync } from 'rollup/parseAst'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-BZMjGe_U.js'; | ||
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BZMjGe_U.js'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-0AosnpPU.js'; | ||
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-0AosnpPU.js'; | ||
export { DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js'; | ||
@@ -5,0 +5,0 @@ export { version as esbuildVersion } from 'esbuild'; |
@@ -186,3 +186,2 @@ import { ModuleNamespace, ViteHotContext } from '../../types/hot.js'; | ||
private readonly resetSourceMapSupport?; | ||
private readonly root; | ||
private readonly concurrentModuleNodePromises; | ||
@@ -276,4 +275,5 @@ private closed; | ||
* Root of the project | ||
* @deprecated not used and to be removed | ||
*/ | ||
root: string; | ||
root?: string; | ||
/** | ||
@@ -280,0 +280,0 @@ * A set of methods to communicate with the server. |
@@ -88,7 +88,3 @@ const VALID_ID_PREFIX = "/@id/", NULL_BYTE_PLACEHOLDER = "__x00__"; | ||
return segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : "."); | ||
}; | ||
function normalizeAbsoluteUrl(url, root) { | ||
return url = slash(url), url.startsWith("file://") && (url = decodeURI(url.slice(isWindows ? 8 : 7))), url.startsWith(root) && (url = url.slice(root.length - 1)), url; | ||
} | ||
const decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g; | ||
}, decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g; | ||
function encodePathChars(filepath) { | ||
@@ -1076,5 +1072,3 @@ return filepath.indexOf("%") !== -1 && (filepath = filepath.replace(percentRegEx, "%25")), !isWindows && filepath.indexOf("\\") !== -1 && (filepath = filepath.replace(backslashRegEx, "%5C")), filepath.indexOf(` | ||
constructor(options, evaluator = new ESModulesEvaluator(), debug) { | ||
this.options = options, this.evaluator = evaluator, this.debug = debug; | ||
const root = this.options.root; | ||
if (this.root = root[root.length - 1] === "/" ? root : `${root}/`, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) { | ||
if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) { | ||
const optionsHmr = options.hmr ?? !0, resolvedHmrLogger = optionsHmr === !0 || optionsHmr.logger === void 0 ? hmrLogger : optionsHmr.logger === !1 ? silentConsole : optionsHmr.logger; | ||
@@ -1105,3 +1099,2 @@ if (this.hmrClient = new HMRClient( | ||
resetSourceMapSupport; | ||
root; | ||
concurrentModuleNodePromises = /* @__PURE__ */ new Map(); | ||
@@ -1183,3 +1176,2 @@ closed = !1; | ||
async cachedModule(url, importer) { | ||
url = normalizeAbsoluteUrl(url, this.root); | ||
let cached = this.concurrentModuleNodePromises.get(url); | ||
@@ -1186,0 +1178,0 @@ if (cached) |
{ | ||
"name": "vite", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"type": "module", | ||
@@ -75,3 +75,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"esbuild": "0.24.0", | ||
"esbuild": "^0.24.2", | ||
"postcss": "^8.4.49", | ||
@@ -78,0 +78,0 @@ "rollup": "^4.23.0" |
@@ -9,3 +9,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
import type Less from 'less' | ||
// @ts-ignore `less` may not be installed | ||
// @ts-ignore `stylus` may not be installed | ||
import type Stylus from 'stylus' | ||
@@ -12,0 +12,0 @@ |
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
// @ts-ignore `sass` may not be installed | ||
// @ts-ignore `lightningcss` may not be installed | ||
import type Lightningcss from 'lightningcss' | ||
@@ -5,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
111
2816244
13
5
1
+ Added@esbuild/aix-ppc64@0.24.2(transitive)
+ Added@esbuild/android-arm@0.24.2(transitive)
+ Added@esbuild/android-arm64@0.24.2(transitive)
+ Added@esbuild/android-x64@0.24.2(transitive)
+ Added@esbuild/darwin-arm64@0.24.2(transitive)
+ Added@esbuild/darwin-x64@0.24.2(transitive)
+ Added@esbuild/freebsd-arm64@0.24.2(transitive)
+ Added@esbuild/freebsd-x64@0.24.2(transitive)
+ Added@esbuild/linux-arm@0.24.2(transitive)
+ Added@esbuild/linux-arm64@0.24.2(transitive)
+ Added@esbuild/linux-ia32@0.24.2(transitive)
+ Added@esbuild/linux-loong64@0.24.2(transitive)
+ Added@esbuild/linux-mips64el@0.24.2(transitive)
+ Added@esbuild/linux-ppc64@0.24.2(transitive)
+ Added@esbuild/linux-riscv64@0.24.2(transitive)
+ Added@esbuild/linux-s390x@0.24.2(transitive)
+ Added@esbuild/linux-x64@0.24.2(transitive)
+ Added@esbuild/netbsd-arm64@0.24.2(transitive)
+ Added@esbuild/netbsd-x64@0.24.2(transitive)
+ Added@esbuild/openbsd-arm64@0.24.2(transitive)
+ Added@esbuild/openbsd-x64@0.24.2(transitive)
+ Added@esbuild/sunos-x64@0.24.2(transitive)
+ Added@esbuild/win32-arm64@0.24.2(transitive)
+ Added@esbuild/win32-ia32@0.24.2(transitive)
+ Added@esbuild/win32-x64@0.24.2(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.29.1(transitive)
+ Added@rollup/rollup-android-arm64@4.29.1(transitive)
+ Added@rollup/rollup-darwin-arm64@4.29.1(transitive)
+ Added@rollup/rollup-darwin-x64@4.29.1(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.29.1(transitive)
+ Added@rollup/rollup-freebsd-x64@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.29.1(transitive)
+ Added@rollup/rollup-linux-loongarch64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.29.1(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.29.1(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.29.1(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.29.1(transitive)
+ Addedesbuild@0.24.2(transitive)
+ Addedrollup@4.29.1(transitive)
- Removed@esbuild/aix-ppc64@0.24.0(transitive)
- Removed@esbuild/android-arm@0.24.0(transitive)
- Removed@esbuild/android-arm64@0.24.0(transitive)
- Removed@esbuild/android-x64@0.24.0(transitive)
- Removed@esbuild/darwin-arm64@0.24.0(transitive)
- Removed@esbuild/darwin-x64@0.24.0(transitive)
- Removed@esbuild/freebsd-arm64@0.24.0(transitive)
- Removed@esbuild/freebsd-x64@0.24.0(transitive)
- Removed@esbuild/linux-arm@0.24.0(transitive)
- Removed@esbuild/linux-arm64@0.24.0(transitive)
- Removed@esbuild/linux-ia32@0.24.0(transitive)
- Removed@esbuild/linux-loong64@0.24.0(transitive)
- Removed@esbuild/linux-mips64el@0.24.0(transitive)
- Removed@esbuild/linux-ppc64@0.24.0(transitive)
- Removed@esbuild/linux-riscv64@0.24.0(transitive)
- Removed@esbuild/linux-s390x@0.24.0(transitive)
- Removed@esbuild/linux-x64@0.24.0(transitive)
- Removed@esbuild/netbsd-x64@0.24.0(transitive)
- Removed@esbuild/openbsd-arm64@0.24.0(transitive)
- Removed@esbuild/openbsd-x64@0.24.0(transitive)
- Removed@esbuild/sunos-x64@0.24.0(transitive)
- Removed@esbuild/win32-arm64@0.24.0(transitive)
- Removed@esbuild/win32-ia32@0.24.0(transitive)
- Removed@esbuild/win32-x64@0.24.0(transitive)
- Removed@rollup/rollup-android-arm-eabi@4.28.1(transitive)
- Removed@rollup/rollup-android-arm64@4.28.1(transitive)
- Removed@rollup/rollup-darwin-arm64@4.28.1(transitive)
- Removed@rollup/rollup-darwin-x64@4.28.1(transitive)
- Removed@rollup/rollup-freebsd-arm64@4.28.1(transitive)
- Removed@rollup/rollup-freebsd-x64@4.28.1(transitive)
- Removed@rollup/rollup-linux-arm-gnueabihf@4.28.1(transitive)
- Removed@rollup/rollup-linux-arm-musleabihf@4.28.1(transitive)
- Removed@rollup/rollup-linux-arm64-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-arm64-musl@4.28.1(transitive)
- Removed@rollup/rollup-linux-loongarch64-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-powerpc64le-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-riscv64-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-s390x-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-x64-gnu@4.28.1(transitive)
- Removed@rollup/rollup-linux-x64-musl@4.28.1(transitive)
- Removed@rollup/rollup-win32-arm64-msvc@4.28.1(transitive)
- Removed@rollup/rollup-win32-ia32-msvc@4.28.1(transitive)
- Removed@rollup/rollup-win32-x64-msvc@4.28.1(transitive)
- Removedesbuild@0.24.0(transitive)
- Removedrollup@4.28.1(transitive)
Updatedesbuild@^0.24.2