vite 3.1.3 → 3.1.5

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.
@@ -1,5 +1,5 @@
1
1
  import require$$0$1 from 'postcss';
2
- import { z as commonjsGlobal } from './dep-557f29e6.js';
2
+ import { z as commonjsGlobal } from './dep-49b3b5ea.js';
3
3
  import require$$0 from 'path';
4
4
  import require$$5 from 'crypto';
5
5
  import require$$0__default from 'fs';
@@ -1,11 +1,11 @@
1
1
  import fs$l, { promises as promises$2 } from 'node:fs';
2
- import path$n, { posix as posix$2, isAbsolute as isAbsolute$2, resolve as resolve$6, join as join$2, relative as relative$2, dirname as dirname$2, basename as basename$2, extname as extname$1 } from 'node:path';
2
+ import path$n, { posix as posix$2, isAbsolute as isAbsolute$3, resolve as resolve$6, join as join$2, relative as relative$2, dirname as dirname$2, basename as basename$2, extname as extname$1 } from 'node:path';
3
3
  import { URL as URL$3, pathToFileURL, URLSearchParams, parse as parse$k } from 'node:url';
4
4
  import { performance } from 'node:perf_hooks';
5
5
  import { createRequire as createRequire$1, builtinModules } from 'node:module';
6
6
  import require$$0$3 from 'tty';
7
7
  import { transform as transform$2, build as build$3, formatMessages } from 'esbuild';
8
- import require$$0$4, { sep, resolve as resolve$4, posix as posix$1, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join as join$1, win32 as win32$1, isAbsolute as isAbsolute$1, normalize } from 'path';
8
+ import require$$0$4, { sep, resolve as resolve$4, posix as posix$1, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join as join$1, win32 as win32$1, isAbsolute as isAbsolute$2, normalize } from 'path';
9
9
  import * as require$$0$2 from 'fs';
10
10
  import require$$0__default, { existsSync, readFileSync, statSync as statSync$1, promises as promises$1, readdirSync } from 'fs';
11
11
  import require$$0$5 from 'events';
@@ -22,7 +22,7 @@ import { createHash as createHash$2 } from 'node:crypto';
22
22
  import { promisify as promisify$4 } from 'node:util';
23
23
  import { promises } from 'node:dns';
24
24
  import resolve$5 from 'resolve';
25
- import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS$1, wildcardHosts, loopbackHosts, VALID_ID_PREFIX, NULL_BYTE_PLACEHOLDER, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, ENV_ENTRY, DEFAULT_MAIN_FIELDS, DEP_VERSION_RE, SPECIAL_QUERY_RE, KNOWN_ASSET_TYPES, CLIENT_DIR, JS_TYPES_RE, ESBUILD_MODULES_TARGET, VERSION, VITE_PACKAGE_DIR, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES } from '../constants.js';
25
+ import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS$1, wildcardHosts, loopbackHosts, VALID_ID_PREFIX, NULL_BYTE_PLACEHOLDER, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, ENV_ENTRY, DEFAULT_MAIN_FIELDS, SPECIAL_QUERY_RE, DEP_VERSION_RE, KNOWN_ASSET_TYPES, CLIENT_DIR, JS_TYPES_RE, ESBUILD_MODULES_TARGET, VERSION, VITE_PACKAGE_DIR, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES } from '../constants.js';
26
26
  import require$$5 from 'crypto';
27
27
  import require$$0$a from 'buffer';
28
28
  import { Buffer as Buffer$1 } from 'node:buffer';
@@ -4327,7 +4327,7 @@ function ownProp (obj, field) {
4327
4327
  var fs$i = require$$0__default;
4328
4328
  var path$i = require$$0$4;
4329
4329
  var minimatch = minimatch_1;
4330
- var isAbsolute = pathIsAbsolute.exports;
4330
+ var isAbsolute$1 = pathIsAbsolute.exports;
4331
4331
  var Minimatch = minimatch.Minimatch;
4332
4332
 
4333
4333
  function alphasort (a, b) {
@@ -4415,7 +4415,7 @@ function setopts (self, pattern, options) {
4415
4415
 
4416
4416
  // TODO: is an absolute `cwd` supposed to be resolved against `root`?
4417
4417
  // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
4418
- self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
4418
+ self.cwdAbs = isAbsolute$1(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
4419
4419
  if (process.platform === "win32")
4420
4420
  self.cwdAbs = self.cwdAbs.replace(/\\/g, "/");
4421
4421
  self.nomount = !!options.nomount;
@@ -4514,7 +4514,7 @@ function makeAbs (self, f) {
4514
4514
  var abs = f;
4515
4515
  if (f.charAt(0) === '/') {
4516
4516
  abs = path$i.join(self.root, f);
4517
- } else if (isAbsolute(f) || f === '') {
4517
+ } else if (isAbsolute$1(f) || f === '') {
4518
4518
  abs = f;
4519
4519
  } else if (self.changedCwd) {
4520
4520
  abs = path$i.resolve(self.cwd, f);
@@ -11473,7 +11473,7 @@ const normalizePath$4 = function normalizePath(filename) {
11473
11473
  };
11474
11474
 
11475
11475
  function getMatcherString(id, resolutionBase) {
11476
- if (resolutionBase === false || isAbsolute$1(id) || id.startsWith('*')) {
11476
+ if (resolutionBase === false || isAbsolute$2(id) || id.startsWith('*')) {
11477
11477
  return normalizePath$4(id);
11478
11478
  }
11479
11479
  // resolve('') is valid and will default to process.cwd()
@@ -13363,6 +13363,7 @@ function esbuildPlugin(options = {}) {
13363
13363
  // Remove optimization options for dev as we only need to transpile them,
13364
13364
  // and for build as the final optimization is in `buildEsbuildPlugin`
13365
13365
  const transformOptions = {
13366
+ target: 'esnext',
13366
13367
  ...options,
13367
13368
  minify: false,
13368
13369
  minifyIdentifiers: false,
@@ -34617,7 +34618,9 @@ function tryNodeResolve(id, importer, options, targetWeb, depsOptimizer, ssr, ex
34617
34618
  let resolvedId = id;
34618
34619
  if (isDeepImport) {
34619
34620
  if (!pkg?.data.exports && path$n.extname(id) !== resolvedExt) {
34620
- resolvedId += resolvedExt;
34621
+ resolvedId = resolved.id.slice(resolved.id.indexOf(id));
34622
+ isDebug$4 &&
34623
+ debug$c(`[processResult] ${picocolors.exports.cyan(id)} -> ${picocolors.exports.dim(resolvedId)}`);
34621
34624
  }
34622
34625
  }
34623
34626
  return { ...resolved, id: resolvedId, external: true };
@@ -36035,7 +36038,7 @@ async function toAbsoluteGlob(glob, root, importer, resolveId) {
36035
36038
  if (glob.startsWith('**'))
36036
36039
  return pre + glob;
36037
36040
  const resolved = normalizePath$3((await resolveId(glob, importer)) || glob);
36038
- if (isAbsolute$2(resolved)) {
36041
+ if (isAbsolute$3(resolved)) {
36039
36042
  return pre + globSafeResolvedPath(resolved, glob);
36040
36043
  }
36041
36044
  throw new Error(`Invalid glob: "${glob}" (resolved: "${resolved}"). It must start with '/' or './'`);
@@ -36160,11 +36163,11 @@ function updateModules(file, modules, timestamp, { config, ws }) {
36160
36163
  updates.push(...[...boundaries].map(({ boundary, acceptedVia }) => ({
36161
36164
  type: `${boundary.type}-update`,
36162
36165
  timestamp,
36163
- path: boundary.url,
36166
+ path: normalizeHmrUrl(boundary.url),
36164
36167
  explicitImportRequired: boundary.type === 'js'
36165
36168
  ? isExplicitImportRequired(acceptedVia.url)
36166
36169
  : undefined,
36167
- acceptedPath: acceptedVia.url
36170
+ acceptedPath: normalizeHmrUrl(acceptedVia.url)
36168
36171
  })));
36169
36172
  }
36170
36173
  if (needFullReload) {
@@ -36432,6 +36435,12 @@ function lexAcceptedHmrExports(code, start, exportNames) {
36432
36435
  }
36433
36436
  return urls.size > 0;
36434
36437
  }
36438
+ function normalizeHmrUrl(url) {
36439
+ if (!url.startsWith('.') && !url.startsWith('/')) {
36440
+ url = wrapId(url);
36441
+ }
36442
+ return url;
36443
+ }
36435
36444
  function error$1(pos) {
36436
36445
  const err = new Error(`import.meta.hot.accept() can only accept string literals or an ` +
36437
36446
  `Array of string literals.`);
@@ -37827,7 +37836,7 @@ function importAnalysisPlugin(config) {
37827
37836
  : `[detected api usage]`} ${prettyImporter}`);
37828
37837
  // inject hot context
37829
37838
  str().prepend(`import { createHotContext as __vite__createHotContext } from "${clientPublicPath}";` +
37830
- `import.meta.hot = __vite__createHotContext(${JSON.stringify(importerModule.url)});`);
37839
+ `import.meta.hot = __vite__createHotContext(${JSON.stringify(normalizeHmrUrl(importerModule.url))});`);
37831
37840
  }
37832
37841
  if (needQueryInjectHelper) {
37833
37842
  str().prepend(`import { injectQuery as __vite__injectQuery } from "${clientPublicPath}";`);
@@ -44299,7 +44308,7 @@ function cssPostPlugin(config) {
44299
44308
  // the legacy build should avoid inserting entry CSS modules here, they
44300
44309
  // will be collected into `chunk.viteMetadata.importedCss` and injected
44301
44310
  // later by the `'vite:build-html'` plugin into the `index.html`
44302
- if (chunk.isEntry) {
44311
+ if (chunk.isEntry && !config.build.lib) {
44303
44312
  return null;
44304
44313
  }
44305
44314
  chunkCSS = await finalizeCss(chunkCSS, true, config);
@@ -44511,7 +44520,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
44511
44520
  logger: config.logger
44512
44521
  }));
44513
44522
  if (isModule) {
44514
- postcssPlugins.unshift((await import('./dep-0fc42251.js').then(function (n) { return n.i; })).default({
44523
+ postcssPlugins.unshift((await import('./dep-42389c84.js').then(function (n) { return n.i; })).default({
44515
44524
  ...modulesOptions,
44516
44525
  getJSON(cssFileName, _modules, outputFileName) {
44517
44526
  modules = _modules;
@@ -53062,35 +53071,35 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
53062
53071
  function isInScope(name, parents) {
53063
53072
  return parents.some((node) => node && scopeMap.get(node)?.has(name));
53064
53073
  }
53065
- function handlePattern(p, parentFunction) {
53074
+ function handlePattern(p, parentScope) {
53066
53075
  if (p.type === 'Identifier') {
53067
- setScope(parentFunction, p.name);
53076
+ setScope(parentScope, p.name);
53068
53077
  }
53069
53078
  else if (p.type === 'RestElement') {
53070
- handlePattern(p.argument, parentFunction);
53079
+ handlePattern(p.argument, parentScope);
53071
53080
  }
53072
53081
  else if (p.type === 'ObjectPattern') {
53073
53082
  p.properties.forEach((property) => {
53074
53083
  if (property.type === 'RestElement') {
53075
- setScope(parentFunction, property.argument.name);
53084
+ setScope(parentScope, property.argument.name);
53076
53085
  }
53077
53086
  else {
53078
- handlePattern(property.value, parentFunction);
53087
+ handlePattern(property.value, parentScope);
53079
53088
  }
53080
53089
  });
53081
53090
  }
53082
53091
  else if (p.type === 'ArrayPattern') {
53083
53092
  p.elements.forEach((element) => {
53084
53093
  if (element) {
53085
- handlePattern(element, parentFunction);
53094
+ handlePattern(element, parentScope);
53086
53095
  }
53087
53096
  });
53088
53097
  }
53089
53098
  else if (p.type === 'AssignmentPattern') {
53090
- handlePattern(p.left, parentFunction);
53099
+ handlePattern(p.left, parentScope);
53091
53100
  }
53092
53101
  else {
53093
- setScope(parentFunction, p.name);
53102
+ setScope(parentScope, p.name);
53094
53103
  }
53095
53104
  }
53096
53105
  walk$1(root, {
@@ -53098,7 +53107,12 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
53098
53107
  if (node.type === 'ImportDeclaration') {
53099
53108
  return this.skip();
53100
53109
  }
53101
- parent && parentStack.unshift(parent);
53110
+ // track parent stack, skip for "else-if"/"else" branches as acorn nests
53111
+ // the ast within "if" nodes instead of flattening them
53112
+ if (parent &&
53113
+ !(parent.type === 'IfStatement' && node === parent.alternate)) {
53114
+ parentStack.unshift(parent);
53115
+ }
53102
53116
  if (node.type === 'MetaProperty' && node.meta.name === 'import') {
53103
53117
  onImportMeta(node);
53104
53118
  }
@@ -53116,9 +53130,9 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
53116
53130
  // If it is a function declaration, it could be shadowing an import
53117
53131
  // Add its name to the scope so it won't get replaced
53118
53132
  if (node.type === 'FunctionDeclaration') {
53119
- const parentFunction = findParentFunction(parentStack);
53120
- if (parentFunction) {
53121
- setScope(parentFunction, node.id.name);
53133
+ const parentScope = findParentScope(parentStack);
53134
+ if (parentScope) {
53135
+ setScope(parentScope, node.id.name);
53122
53136
  }
53123
53137
  }
53124
53138
  // walk function expressions and add its arguments to known identifiers
@@ -53157,14 +53171,18 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
53157
53171
  setIsNodeInPattern(node);
53158
53172
  }
53159
53173
  else if (node.type === 'VariableDeclarator') {
53160
- const parentFunction = findParentFunction(parentStack);
53174
+ const parentFunction = findParentScope(parentStack);
53161
53175
  if (parentFunction) {
53162
53176
  handlePattern(node.id, parentFunction);
53163
53177
  }
53164
53178
  }
53165
53179
  },
53166
53180
  leave(node, parent) {
53167
- parent && parentStack.shift();
53181
+ // untrack parent stack from above
53182
+ if (parent &&
53183
+ !(parent.type === 'IfStatement' && node === parent.alternate)) {
53184
+ parentStack.shift();
53185
+ }
53168
53186
  }
53169
53187
  });
53170
53188
  // emit the identifier events in BFS so the hoisted declarations
@@ -53226,11 +53244,13 @@ function isRefIdentifier(id, parent, parentStack) {
53226
53244
  }
53227
53245
  const isStaticProperty = (node) => node && node.type === 'Property' && !node.computed;
53228
53246
  const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
53247
+ const functionNodeTypeRE = /Function(?:Expression|Declaration)$|Method$/;
53229
53248
  function isFunction(node) {
53230
- return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
53249
+ return functionNodeTypeRE.test(node.type);
53231
53250
  }
53232
- function findParentFunction(parentStack) {
53233
- return parentStack.find((i) => isFunction(i));
53251
+ const scopeNodeTypeRE = /(?:Function|Class)(?:Expression|Declaration)$|Method$|^IfStatement$/;
53252
+ function findParentScope(parentStack) {
53253
+ return parentStack.find((i) => scopeNodeTypeRE.test(i.type));
53234
53254
  }
53235
53255
  function isInDestructuringAssignment(parent, parentStack) {
53236
53256
  if (parent &&
@@ -63420,40 +63440,31 @@ async function bundleConfigFile(fileName, isESM) {
63420
63440
  {
63421
63441
  name: 'externalize-deps',
63422
63442
  setup(build) {
63423
- build.onResolve({ filter: /.*/ }, ({ path: id, importer }) => {
63443
+ const options = {
63444
+ root: path$n.dirname(fileName),
63445
+ isBuild: true,
63446
+ isProduction: true,
63447
+ isRequire: !isESM,
63448
+ preferRelative: false,
63449
+ tryIndex: true,
63450
+ mainFields: DEFAULT_MAIN_FIELDS,
63451
+ conditions: [],
63452
+ dedupe: [],
63453
+ extensions: DEFAULT_EXTENSIONS$1,
63454
+ preserveSymlinks: false
63455
+ };
63456
+ build.onResolve({ filter: /.*/ }, ({ path: id, importer, kind }) => {
63424
63457
  // externalize bare imports
63425
- if (id[0] !== '.' && !path$n.isAbsolute(id)) {
63458
+ if (id[0] !== '.' && !isAbsolute(id)) {
63459
+ let idFsPath = tryNodeResolve(id, importer, options, false)?.id;
63460
+ if (idFsPath && (isESM || kind === 'dynamic-import')) {
63461
+ idFsPath = pathToFileURL(idFsPath).href;
63462
+ }
63426
63463
  return {
63464
+ path: idFsPath,
63427
63465
  external: true
63428
63466
  };
63429
63467
  }
63430
- // bundle the rest and make sure that the we can also access
63431
- // it's third-party dependencies. externalize if not.
63432
- // monorepo/
63433
- // ├─ package.json
63434
- // ├─ utils.js -----------> bundle (share same node_modules)
63435
- // ├─ vite-project/
63436
- // │ ├─ vite.config.js --> entry
63437
- // │ ├─ package.json
63438
- // ├─ foo-project/
63439
- // │ ├─ utils.js --------> external (has own node_modules)
63440
- // │ ├─ package.json
63441
- const idFsPath = path$n.resolve(path$n.dirname(importer), id);
63442
- const idPkgPath = lookupFile(idFsPath, [`package.json`], {
63443
- pathOnly: true
63444
- });
63445
- if (idPkgPath) {
63446
- const idPkgDir = path$n.dirname(idPkgPath);
63447
- // if this file needs to go up one or more directory to reach the vite config,
63448
- // that means it has it's own node_modules (e.g. foo-project)
63449
- if (path$n.relative(idPkgDir, fileName).startsWith('..')) {
63450
- return {
63451
- // normalize actual import after bundled as a single vite config
63452
- path: isESM ? pathToFileURL(idFsPath).href : idFsPath,
63453
- external: true
63454
- };
63455
- }
63456
- }
63457
63468
  });
63458
63469
  }
63459
63470
  },
@@ -63547,5 +63558,8 @@ function isDepsOptimizerEnabled(config, ssr) {
63547
63558
  (command === 'build' && disabled === 'build') ||
63548
63559
  (command === 'serve' && disabled === 'dev'));
63549
63560
  }
63561
+ function isAbsolute(id) {
63562
+ return path$n.isAbsolute(id) || path$n.posix.isAbsolute(id);
63563
+ }
63550
63564
 
63551
63565
  export { index$1 as A, build$1 as B, index as C, preview$1 as D, resolvePackageData as a, build as b, createServer as c, defineConfig as d, resolveConfig as e, formatPostcssSourceMap as f, resolveBaseUrl as g, getDepOptimizationConfig as h, isDepsOptimizerEnabled as i, mergeAlias as j, createFilter as k, loadConfigFromFile as l, mergeConfig as m, normalizePath$3 as n, optimizeDeps as o, preview as p, send as q, resolvePackageEntry as r, sortUserPlugins as s, transformWithEsbuild as t, createLogger as u, searchForWorkspaceRoot as v, loadEnv as w, resolveEnvPrefix as x, picocolors as y, commonjsGlobal as z };
package/dist/node/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { performance } from 'node:perf_hooks';
2
2
  import { EventEmitter } from 'events';
3
- import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-557f29e6.js';
3
+ import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-49b3b5ea.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -695,7 +695,7 @@ cli
695
695
  .action(async (root, options) => {
696
696
  // output structure is preserved even after bundling so require()
697
697
  // is ok here
698
- const { createServer } = await import('./chunks/dep-557f29e6.js').then(function (n) { return n.C; });
698
+ const { createServer } = await import('./chunks/dep-49b3b5ea.js').then(function (n) { return n.C; });
699
699
  try {
700
700
  const server = await createServer({
701
701
  root,
@@ -742,7 +742,7 @@ cli
742
742
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
743
743
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
744
744
  .action(async (root, options) => {
745
- const { build } = await import('./chunks/dep-557f29e6.js').then(function (n) { return n.B; });
745
+ const { build } = await import('./chunks/dep-49b3b5ea.js').then(function (n) { return n.B; });
746
746
  const buildOptions = cleanOptions(options);
747
747
  try {
748
748
  await build({
@@ -766,7 +766,7 @@ cli
766
766
  .command('optimize [root]', 'pre-bundle dependencies')
767
767
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
768
768
  .action(async (root, options) => {
769
- const { optimizeDeps } = await import('./chunks/dep-557f29e6.js').then(function (n) { return n.A; });
769
+ const { optimizeDeps } = await import('./chunks/dep-49b3b5ea.js').then(function (n) { return n.A; });
770
770
  try {
771
771
  const config = await resolveConfig({
772
772
  root,
@@ -789,7 +789,7 @@ cli
789
789
  .option('--https', `[boolean] use TLS + HTTP/2`)
790
790
  .option('--open [path]', `[boolean | string] open browser on startup`)
791
791
  .action(async (root, options) => {
792
- const { preview } = await import('./chunks/dep-557f29e6.js').then(function (n) { return n.D; });
792
+ const { preview } = await import('./chunks/dep-49b3b5ea.js').then(function (n) { return n.D; });
793
793
  try {
794
794
  const server = await preview({
795
795
  root,
@@ -1,7 +1,7 @@
1
1
  import path, { resolve } from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
 
4
- var version = "3.1.3";
4
+ var version = "3.1.5";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -1,4 +1,4 @@
1
- export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-557f29e6.js';
1
+ export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-49b3b5ea.js';
2
2
  export { VERSION as version } from './constants.js';
3
3
  export { version as esbuildVersion } from 'esbuild';
4
4
  export { VERSION as rollupVersion } from 'rollup';
@@ -31,7 +31,7 @@ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
31
31
  var readline__default = /*#__PURE__*/_interopDefaultLegacy(readline);
32
32
  var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
33
33
 
34
- var version = "3.1.3";
34
+ var version = "3.1.5";
35
35
 
36
36
  const VERSION = version;
37
37
  const VITE_PACKAGE_DIR = path$3.resolve(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
60
60
  "dependencies": {
61
- "esbuild": "^0.15.6",
61
+ "esbuild": "^0.15.9",
62
62
  "postcss": "^8.4.16",
63
63
  "resolve": "^1.22.1",
64
64
  "rollup": "~2.78.0"