vite 7.1.2 → 7.1.4

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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

package/LICENSE.md CHANGED
@@ -1282,7 +1282,7 @@ Repository: lodash/lodash
1282
1282
  ## magic-string
1283
1283
  License: MIT
1284
1284
  By: Rich Harris
1285
- Repository: https://github.com/rich-harris/magic-string
1285
+ Repository: https://github.com/rich-harris/magic-string.git
1286
1286
 
1287
1287
  > Copyright 2018 Rich Harris
1288
1288
  >
package/bin/vite.js CHANGED
@@ -24,7 +24,7 @@ const profileIndex = process.argv.indexOf('--profile')
24
24
 
25
25
  if (debugIndex > 0) {
26
26
  let value = process.argv[debugIndex + 1]
27
- if (!value || value.startsWith('-')) {
27
+ if (!value || value[0] === '-') {
28
28
  value = 'vite:*'
29
29
  } else {
30
30
  // support debugging multiple flags with comma-separated list
@@ -39,7 +39,7 @@ if (debugIndex > 0) {
39
39
 
40
40
  if (filterIndex > 0) {
41
41
  const filter = process.argv[filterIndex + 1]
42
- if (filter && !filter.startsWith('-')) {
42
+ if (filter && filter[0] !== '-') {
43
43
  process.env.VITE_DEBUG_FILTER = filter
44
44
  }
45
45
  }
@@ -65,7 +65,7 @@ function start() {
65
65
  if (profileIndex > 0) {
66
66
  process.argv.splice(profileIndex, 1)
67
67
  const next = process.argv[profileIndex]
68
- if (next && !next.startsWith('-')) {
68
+ if (next && next[0] !== '-') {
69
69
  process.argv.splice(profileIndex, 1)
70
70
  }
71
71
  const inspector = await import('node:inspector').then((r) => r.default)
@@ -1,5 +1,4 @@
1
- import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-CMEinpL-.js";
3
- import "./dep-BDCsDwBr.js";
1
+ import "./dep-SmwnYDP9.js";
2
+ import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-C6pp_iVS.js";
4
3
 
5
4
  export { createBuilder, resolveBuildPlugins };
@@ -1,5 +1,4 @@
1
- import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-CMEinpL-.js";
3
- import "./dep-BDCsDwBr.js";
1
+ import "./dep-SmwnYDP9.js";
2
+ import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-C6pp_iVS.js";
4
3
 
5
4
  export { optimizeDeps };
@@ -1,5 +1,4 @@
1
- import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { __commonJS } from "./dep-Drtntmtt.js";
1
+ import { __commonJS } from "./dep-lCKrEJQm.js";
3
2
 
4
3
  //#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
5
4
  var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js": ((exports, module) => {