Comparing version 5.3.5 to 5.4.0-beta.0
@@ -249,1 +249,18 @@ /// <reference path="./types/importMeta.d.ts" /> | ||
} | ||
declare interface VitePreloadErrorEvent extends Event { | ||
payload: Error | ||
} | ||
declare interface Window { | ||
addEventListener( | ||
type: 'vite:preloadError', | ||
listener: (this: Window, ev: VitePreloadErrorEvent) => unknown, | ||
options?: boolean | AddEventListenerOptions, | ||
): void | ||
removeEventListener( | ||
type: 'vite:preloadError', | ||
listener: (this: Window, ev: VitePreloadErrorEvent) => unknown, | ||
options?: boolean | EventListenerOptions, | ||
): void | ||
} |
@@ -5,3 +5,3 @@ import path from 'node:path'; | ||
import { EventEmitter } from 'events'; | ||
import { A as colors, v as createLogger, r as resolveConfig } from './chunks/dep-mCdpKltl.js'; | ||
import { A as colors, v as createLogger, r as resolveConfig } from './chunks/dep-BuSuK4CE.js'; | ||
import { VERSION } from './constants.js'; | ||
@@ -734,3 +734,3 @@ import 'node:fs/promises'; | ||
filterDuplicateOptions(options); | ||
const { createServer } = await import('./chunks/dep-mCdpKltl.js').then(function (n) { return n.E; }); | ||
const { createServer } = await import('./chunks/dep-BuSuK4CE.js').then(function (n) { return n.E; }); | ||
try { | ||
@@ -827,3 +827,3 @@ const server = await createServer({ | ||
filterDuplicateOptions(options); | ||
const { build } = await import('./chunks/dep-mCdpKltl.js').then(function (n) { return n.F; }); | ||
const { build } = await import('./chunks/dep-BuSuK4CE.js').then(function (n) { return n.F; }); | ||
const buildOptions = cleanOptions(options); | ||
@@ -857,3 +857,3 @@ try { | ||
filterDuplicateOptions(options); | ||
const { optimizeDeps } = await import('./chunks/dep-mCdpKltl.js').then(function (n) { return n.D; }); | ||
const { optimizeDeps } = await import('./chunks/dep-BuSuK4CE.js').then(function (n) { return n.D; }); | ||
try { | ||
@@ -884,3 +884,3 @@ const config = await resolveConfig( | ||
filterDuplicateOptions(options); | ||
const { preview } = await import('./chunks/dep-mCdpKltl.js').then(function (n) { return n.G; }); | ||
const { preview } = await import('./chunks/dep-BuSuK4CE.js').then(function (n) { return n.G; }); | ||
try { | ||
@@ -887,0 +887,0 @@ const server = await preview({ |
export { parseAst, parseAstAsync } from 'rollup/parseAst'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-mCdpKltl.js'; | ||
export { b as build, g as buildErrorMessage, k as createFilter, v as createLogger, c as createServer, d as defineConfig, h as fetchModule, f as formatPostcssSourceMap, x as isFileServingAllowed, l as loadConfigFromFile, y as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, e as preprocessCSS, p as preview, r as resolveConfig, z as resolveEnvPrefix, q as rollupVersion, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-mCdpKltl.js'; | ||
import { i as isInNodeModules, a as arraify } from './chunks/dep-BuSuK4CE.js'; | ||
export { b as build, g as buildErrorMessage, k as createFilter, v as createLogger, c as createServer, d as defineConfig, h as fetchModule, f as formatPostcssSourceMap, x as isFileServingAllowed, l as loadConfigFromFile, y as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, e as preprocessCSS, p as preview, r as resolveConfig, z as resolveEnvPrefix, q as rollupVersion, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BuSuK4CE.js'; | ||
export { VERSION as version } from './constants.js'; | ||
@@ -5,0 +5,0 @@ export { version as esbuildVersion } from 'esbuild'; |
@@ -319,5 +319,3 @@ const VALID_ID_PREFIX = "/@id/", NULL_BYTE_PLACEHOLDER = "__x00__"; | ||
if (!mod.meta || !("code" in mod.meta)) return null; | ||
const mapString = mod.meta.code.match( | ||
VITE_RUNTIME_SOURCEMAPPING_REGEXP | ||
)?.[1]; | ||
const mapString = VITE_RUNTIME_SOURCEMAPPING_REGEXP.exec(mod.meta.code)?.[1]; | ||
if (!mapString) return null; | ||
@@ -324,0 +322,0 @@ const baseFile = mod.meta.file || moduleId.split("?")[0]; |
{ | ||
"name": "vite", | ||
"version": "5.3.5", | ||
"version": "5.4.0-beta.0", | ||
"type": "module", | ||
@@ -76,3 +76,3 @@ "license": "MIT", | ||
"esbuild": "^0.21.3", | ||
"postcss": "^8.4.39", | ||
"postcss": "^8.4.40", | ||
"rollup": "^4.13.0" | ||
@@ -85,3 +85,3 @@ }, | ||
"@ampproject/remapping": "^2.3.0", | ||
"@babel/parser": "^7.24.8", | ||
"@babel/parser": "^7.25.0", | ||
"@jridgewell/trace-mapping": "^0.3.25", | ||
@@ -104,3 +104,3 @@ "@polka/compression": "^1.0.0-next.25", | ||
"cross-spawn": "^7.0.3", | ||
"debug": "^4.3.5", | ||
"debug": "^4.3.6", | ||
"dep-types": "link:./src/types", | ||
@@ -117,3 +117,3 @@ "dotenv": "^16.4.5", | ||
"lightningcss": "^1.25.1", | ||
"magic-string": "^0.30.10", | ||
"magic-string": "^0.30.11", | ||
"micromatch": "^4.0.7", | ||
@@ -120,0 +120,0 @@ "mlly": "^1.7.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3256697
90607
1
Updatedpostcss@^8.4.40