Comparing version 4.2.1 to 4.3.9
@@ -176,2 +176,7 @@ /// <reference path="./types/importMeta.d.ts" /> | ||
declare module '*.opus' { | ||
const src: string | ||
export default src | ||
} | ||
// fonts | ||
@@ -178,0 +183,0 @@ declare module '*.woff' { |
@@ -5,5 +5,7 @@ import path from 'node:path'; | ||
import { EventEmitter } from 'events'; | ||
import { A as picocolorsExports, B as bindShortcuts, w as createLogger, h as resolveConfig } from './chunks/dep-79892de8.js'; | ||
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-e8f070e8.js'; | ||
import { VERSION } from './constants.js'; | ||
import 'node:fs/promises'; | ||
import 'node:url'; | ||
import 'node:util'; | ||
import 'node:module'; | ||
@@ -23,9 +25,7 @@ import 'tty'; | ||
import 'node:os'; | ||
import 'node:child_process'; | ||
import 'node:crypto'; | ||
import 'node:util'; | ||
import 'node:dns'; | ||
import 'resolve'; | ||
import 'crypto'; | ||
import 'node:buffer'; | ||
import 'node:fs/promises'; | ||
import 'module'; | ||
@@ -45,3 +45,2 @@ import 'node:assert'; | ||
import 'node:readline'; | ||
import 'node:child_process'; | ||
import 'node:zlib'; | ||
@@ -674,3 +673,3 @@ | ||
fs.writeFileSync(outPath, JSON.stringify(profile)); | ||
log(picocolorsExports.yellow(`CPU profile written to ${picocolorsExports.white(picocolorsExports.dim(outPath))}`)); | ||
log(colors.yellow(`CPU profile written to ${colors.white(colors.dim(outPath))}`)); | ||
profileSession = undefined; | ||
@@ -736,3 +735,3 @@ res(); | ||
// is ok here | ||
const { createServer } = await import('./chunks/dep-79892de8.js').then(function (n) { return n.F; }); | ||
const { createServer } = await import('./chunks/dep-e8f070e8.js').then(function (n) { return n.I; }); | ||
try { | ||
@@ -756,5 +755,5 @@ const server = await createServer({ | ||
const startupDurationString = viteStartTime | ||
? picocolorsExports.dim(`ready in ${picocolorsExports.reset(picocolorsExports.bold(Math.ceil(performance.now() - viteStartTime)))} ms`) | ||
? colors.dim(`ready in ${colors.reset(colors.bold(Math.ceil(performance.now() - viteStartTime)))} ms`) | ||
: ''; | ||
info(`\n ${picocolorsExports.green(`${picocolorsExports.bold('VITE')} v${VERSION}`)} ${startupDurationString}\n`, { clear: !server.config.logger.hasWarned }); | ||
info(`\n ${colors.green(`${colors.bold('VITE')} v${VERSION}`)} ${startupDurationString}\n`, { clear: !server.config.logger.hasWarned }); | ||
server.printUrls(); | ||
@@ -791,3 +790,3 @@ bindShortcuts(server, { | ||
const logger = createLogger(options.logLevel); | ||
logger.error(picocolorsExports.red(`error when starting dev server:\n${e.stack}`), { | ||
logger.error(colors.red(`error when starting dev server:\n${e.stack}`), { | ||
error: e, | ||
@@ -817,3 +816,3 @@ }); | ||
filterDuplicateOptions(options); | ||
const { build } = await import('./chunks/dep-79892de8.js').then(function (n) { return n.E; }); | ||
const { build } = await import('./chunks/dep-e8f070e8.js').then(function (n) { return n.H; }); | ||
const buildOptions = cleanOptions(options); | ||
@@ -833,3 +832,3 @@ try { | ||
catch (e) { | ||
createLogger(options.logLevel).error(picocolorsExports.red(`error during build:\n${e.stack}`), { error: e }); | ||
createLogger(options.logLevel).error(colors.red(`error during build:\n${e.stack}`), { error: e }); | ||
process.exit(1); | ||
@@ -847,3 +846,3 @@ } | ||
filterDuplicateOptions(options); | ||
const { optimizeDeps } = await import('./chunks/dep-79892de8.js').then(function (n) { return n.D; }); | ||
const { optimizeDeps } = await import('./chunks/dep-e8f070e8.js').then(function (n) { return n.G; }); | ||
try { | ||
@@ -855,2 +854,3 @@ const config = await resolveConfig({ | ||
logLevel: options.logLevel, | ||
mode: options.mode, | ||
}, 'serve'); | ||
@@ -860,3 +860,3 @@ await optimizeDeps(config, options.force, true); | ||
catch (e) { | ||
createLogger(options.logLevel).error(picocolorsExports.red(`error when optimizing deps:\n${e.stack}`), { error: e }); | ||
createLogger(options.logLevel).error(colors.red(`error when optimizing deps:\n${e.stack}`), { error: e }); | ||
process.exit(1); | ||
@@ -875,3 +875,3 @@ } | ||
filterDuplicateOptions(options); | ||
const { preview } = await import('./chunks/dep-79892de8.js').then(function (n) { return n.G; }); | ||
const { preview } = await import('./chunks/dep-e8f070e8.js').then(function (n) { return n.J; }); | ||
try { | ||
@@ -898,3 +898,3 @@ const server = await preview({ | ||
catch (e) { | ||
createLogger(options.logLevel).error(picocolorsExports.red(`error when starting preview server:\n${e.stack}`), { error: e }); | ||
createLogger(options.logLevel).error(colors.red(`error when starting preview server:\n${e.stack}`), { error: e }); | ||
process.exit(1); | ||
@@ -901,0 +901,0 @@ } |
@@ -97,2 +97,3 @@ import path, { resolve } from 'node:path'; | ||
'aac', | ||
'opus', | ||
// fonts | ||
@@ -99,0 +100,0 @@ 'woff2?', |
@@ -1,2 +0,3 @@ | ||
export { b as build, e as buildErrorMessage, u as createFilter, w as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, j as getDepOptimizationConfig, k as isDepsOptimizerEnabled, l as loadConfigFromFile, y as loadEnv, q as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, i as resolveBaseUrl, h as resolveConfig, z as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, x as searchForWorkspaceRoot, v as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-79892de8.js'; | ||
import { i as isInNodeModules } from './chunks/dep-e8f070e8.js'; | ||
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-e8f070e8.js'; | ||
export { VERSION as version } from './constants.js'; | ||
@@ -6,4 +7,6 @@ export { version as esbuildVersion } from 'esbuild'; | ||
import 'node:fs'; | ||
import 'node:fs/promises'; | ||
import 'node:path'; | ||
import 'node:url'; | ||
import 'node:util'; | ||
import 'node:perf_hooks'; | ||
@@ -24,9 +27,7 @@ import 'node:module'; | ||
import 'node:os'; | ||
import 'node:child_process'; | ||
import 'node:crypto'; | ||
import 'node:util'; | ||
import 'node:dns'; | ||
import 'resolve'; | ||
import 'crypto'; | ||
import 'node:buffer'; | ||
import 'node:fs/promises'; | ||
import 'module'; | ||
@@ -45,3 +46,2 @@ import 'node:assert'; | ||
import 'node:readline'; | ||
import 'node:child_process'; | ||
import 'node:zlib'; | ||
@@ -73,3 +73,3 @@ | ||
return (id, { getModuleInfo }) => { | ||
if (id.includes('node_modules') && | ||
if (isInNodeModules(id) && | ||
!isCSSRequest(id) && | ||
@@ -76,0 +76,0 @@ staticImportedByEntry(id, getModuleInfo, cache.cache)) { |
{ | ||
"name": "vite", | ||
"version": "4.2.1", | ||
"version": "4.3.9", | ||
"type": "module", | ||
@@ -70,5 +70,4 @@ "license": "MIT", | ||
"esbuild": "^0.17.5", | ||
"postcss": "^8.4.21", | ||
"resolve": "^1.22.1", | ||
"rollup": "^3.18.0" | ||
"postcss": "^8.4.23", | ||
"rollup": "^3.21.0" | ||
}, | ||
@@ -79,13 +78,15 @@ "optionalDependencies": { | ||
"devDependencies": { | ||
"@ampproject/remapping": "^2.2.0", | ||
"@babel/parser": "^7.21.2", | ||
"@babel/types": "^7.21.2", | ||
"@jridgewell/trace-mapping": "^0.3.17", | ||
"@rollup/plugin-alias": "^4.0.3", | ||
"@rollup/plugin-commonjs": "^24.0.1", | ||
"@ampproject/remapping": "^2.2.1", | ||
"@babel/parser": "^7.21.4", | ||
"@babel/types": "^7.21.4", | ||
"@jridgewell/trace-mapping": "^0.3.18", | ||
"@rollup/plugin-alias": "^4.0.4", | ||
"@rollup/plugin-commonjs": "^24.1.0", | ||
"@rollup/plugin-dynamic-import-vars": "^2.0.3", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "15.0.1", | ||
"@rollup/plugin-typescript": "^11.0.0", | ||
"@rollup/plugin-node-resolve": "15.0.2", | ||
"@rollup/plugin-typescript": "^11.1.0", | ||
"@rollup/pluginutils": "^5.0.2", | ||
"@types/pnpapi": "^0.0.2", | ||
"@types/escape-html": "^1.0.2", | ||
"acorn": "^8.8.2", | ||
@@ -104,3 +105,4 @@ "acorn-walk": "^8.2.0", | ||
"dotenv-expand": "^9.0.0", | ||
"es-module-lexer": "^1.2.0", | ||
"es-module-lexer": "^1.2.1", | ||
"escape-html": "^1.0.3", | ||
"estree-walker": "^3.0.3", | ||
@@ -114,3 +116,3 @@ "etag": "^1.8.1", | ||
"micromatch": "^4.0.5", | ||
"mlly": "^1.1.1", | ||
"mlly": "^1.2.0", | ||
"mrmime": "^1.0.1", | ||
@@ -126,14 +128,13 @@ "okie": "^1.0.1", | ||
"postcss-modules": "^6.0.0", | ||
"resolve.exports": "^2.0.1", | ||
"resolve.exports": "^2.0.2", | ||
"rollup-plugin-license": "^3.0.1", | ||
"sirv": "^2.0.2", | ||
"source-map-js": "^1.0.2", | ||
"source-map-support": "^0.5.21", | ||
"strip-ansi": "^7.0.1", | ||
"strip-literal": "^1.0.1", | ||
"tsconfck": "^2.1.0", | ||
"tsconfck": "^2.1.1", | ||
"tslib": "^2.5.0", | ||
"types": "link:./types", | ||
"ufo": "^1.1.1", | ||
"ws": "^8.12.1" | ||
"ws": "^8.13.0" | ||
}, | ||
@@ -140,0 +141,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
3253717
10
83838
58
- Removedresolve@^1.22.1
- Removedfunction-bind@1.1.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
Updatedpostcss@^8.4.23
Updatedrollup@^3.21.0