vite 3.0.5 → 3.0.6

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-5cb728cb.js';
2
+ import { z as commonjsGlobal } from './dep-88cc3a4f.js';
3
3
  import require$$0 from 'path';
4
4
  import require$$5 from 'crypto';
5
5
  import require$$0__default from 'fs';
@@ -7,7 +7,7 @@ import require$$0$3 from 'tty';
7
7
  import { transform as transform$2, build as build$3, formatMessages } from 'esbuild';
8
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';
9
9
  import * as require$$0$2 from 'fs';
10
- import require$$0__default, { statSync as statSync$1, existsSync, readFileSync, promises as promises$1, readdirSync } from 'fs';
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';
12
12
  import assert$1 from 'assert';
13
13
  import require$$0$6, { format as format$2, inspect } from 'util';
@@ -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, DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS$1, OPTIMIZABLE_ENTRY_RE, VALID_ID_PREFIX, FS_PREFIX, wildcardHosts, loopbackHosts, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_MAIN_FIELDS, DEP_VERSION_RE, SPECIAL_QUERY_RE, KNOWN_ASSET_TYPES, JS_TYPES_RE, ESBUILD_MODULES_TARGET, CLIENT_DIR, NULL_BYTE_PLACEHOLDER, VERSION, VITE_PACKAGE_DIR, ENV_ENTRY, 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, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_MAIN_FIELDS, DEP_VERSION_RE, SPECIAL_QUERY_RE, KNOWN_ASSET_TYPES, JS_TYPES_RE, ESBUILD_MODULES_TARGET, CLIENT_DIR, NULL_BYTE_PLACEHOLDER, VERSION, VITE_PACKAGE_DIR, ENV_ENTRY, 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 require$$0$8, { createRequire as createRequire$2 } from 'module';
@@ -33308,7 +33308,7 @@ function assetPlugin(config) {
33308
33308
  const url = await fileToUrl(id, config, this);
33309
33309
  return `export default ${JSON.stringify(url)}`;
33310
33310
  },
33311
- renderChunk(code, chunk) {
33311
+ renderChunk(code, chunk, outputOptions) {
33312
33312
  let match;
33313
33313
  let s;
33314
33314
  // Urls added with JS using e.g.
@@ -33324,7 +33324,7 @@ function assetPlugin(config) {
33324
33324
  const file = getAssetFilename(hash, config) || this.getFileName(hash);
33325
33325
  chunk.viteMetadata.importedAssets.add(cleanUrl(file));
33326
33326
  const filename = file + postfix;
33327
- const replacement = toOutputFilePathInString(filename, 'asset', chunk.fileName, 'js', config);
33327
+ const replacement = toOutputFilePathInString(filename, 'asset', chunk.fileName, 'js', config, outputOptions.format);
33328
33328
  const replacementString = typeof replacement === 'string'
33329
33329
  ? JSON.stringify(replacement).slice(1, -1)
33330
33330
  : `"+${replacement.runtime}+"`;
@@ -33338,7 +33338,7 @@ function assetPlugin(config) {
33338
33338
  s = s || (s = new MagicString(code));
33339
33339
  const [full, hash] = match;
33340
33340
  const publicUrl = publicAssetUrlMap.get(hash).slice(1);
33341
- const replacement = toOutputFilePathInString(publicUrl, 'public', chunk.fileName, 'js', config);
33341
+ const replacement = toOutputFilePathInString(publicUrl, 'public', chunk.fileName, 'js', config, outputOptions.format);
33342
33342
  const replacementString = typeof replacement === 'string'
33343
33343
  ? JSON.stringify(replacement).slice(1, -1)
33344
33344
  : `"+${replacement.runtime}+"`;
@@ -34364,6 +34364,9 @@ function resolvePackageEntry(id, { dir, data, setResolvedCache, getResolvedCache
34364
34364
  // likely UMD or CJS(!!! e.g. firebase 7.x), prefer module
34365
34365
  entryPoint = data.module;
34366
34366
  }
34367
+ else {
34368
+ entryPoint = browserEntry;
34369
+ }
34367
34370
  }
34368
34371
  }
34369
34372
  else {
@@ -35824,7 +35827,8 @@ function globEntries(pattern, config) {
35824
35827
  ? []
35825
35828
  : [`**/__tests__/**`, `**/coverage/**`])
35826
35829
  ],
35827
- absolute: true
35830
+ absolute: true,
35831
+ suppressErrors: true // suppress EACCES errors
35828
35832
  });
35829
35833
  }
35830
35834
  const scriptModuleRE = /(<script\b[^>]*type\s*=\s*(?:"module"|'module')[^>]*>)(.*?)<\/script>/gims;
@@ -37736,6 +37740,7 @@ function propagateUpdate(node, boundaries, currentChain = [node]) {
37736
37740
  // if the imports of `node` have not been analyzed, then `node` has not
37737
37741
  // been loaded in the browser and we should stop propagation.
37738
37742
  if (node.id && node.isSelfAccepting === undefined) {
37743
+ debugHmr(`[propagate update] stop propagation because not analyzed: ${picocolors.exports.dim(node.id)}`);
37739
37744
  return false;
37740
37745
  }
37741
37746
  if (node.isSelfAccepting) {
@@ -39056,7 +39061,7 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
39056
39061
  // let binding used in a property shorthand
39057
39062
  // { foo } -> { foo: __import_x__.foo }
39058
39063
  // skip for destructuring patterns
39059
- if (!isNodeInPatternWeakMap.get(parent) ||
39064
+ if (!isNodeInPattern(parent) ||
39060
39065
  isInDestructuringAssignment(parent, parentStack)) {
39061
39066
  s.appendLeft(id.end, `: ${binding}`);
39062
39067
  }
@@ -39111,7 +39116,9 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
39111
39116
  dynamicDeps: [...dynamicDeps]
39112
39117
  };
39113
39118
  }
39114
- const isNodeInPatternWeakMap = new WeakMap();
39119
+ const isNodeInPatternWeakSet = new WeakSet();
39120
+ const setIsNodeInPattern = (node) => isNodeInPatternWeakSet.add(node);
39121
+ const isNodeInPattern = (node) => isNodeInPatternWeakSet.has(node);
39115
39122
  /**
39116
39123
  * Same logic from \@vue/compiler-core & \@vue/compiler-sfc
39117
39124
  * Except this is using acorn AST
@@ -39226,7 +39233,7 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
39226
39233
  }
39227
39234
  else if (node.type === 'Property' && parent.type === 'ObjectPattern') {
39228
39235
  // mark property in destructuring pattern
39229
- isNodeInPatternWeakMap.set(node, true);
39236
+ setIsNodeInPattern(node);
39230
39237
  }
39231
39238
  else if (node.type === 'VariableDeclarator') {
39232
39239
  const parentFunction = findParentFunction(parentStack);
@@ -39269,8 +39276,11 @@ function isRefIdentifier(id, parent, parentStack) {
39269
39276
  return false;
39270
39277
  }
39271
39278
  // property key
39272
- // this also covers object destructuring pattern
39273
- if (isStaticPropertyKey(id, parent) || isNodeInPatternWeakMap.get(parent)) {
39279
+ if (isStaticPropertyKey(id, parent)) {
39280
+ return false;
39281
+ }
39282
+ // object destructuring pattern
39283
+ if (isNodeInPattern(parent) && parent.value === id) {
39274
39284
  return false;
39275
39285
  }
39276
39286
  // non-assignment array destructuring pattern
@@ -40056,7 +40066,7 @@ function throwOutdatedRequest(id) {
40056
40066
  const isDebug$1 = !!process.env.DEBUG;
40057
40067
  const debug$7 = createDebugger('vite:import-analysis');
40058
40068
  const clientDir = normalizePath$3(CLIENT_DIR);
40059
- const skipRE = /\.(map|json)$/;
40069
+ const skipRE = /\.(map|json)($|\?)/;
40060
40070
  const canSkipImportAnalysis = (id) => skipRE.test(id) || isDirectCSSRequest(id);
40061
40071
  const optimizedDepChunkRE$1 = /\/chunk-[A-Z0-9]{8}\.js/;
40062
40072
  const optimizedDepDynamicRE$1 = /-[A-Z0-9]{8}\.js/;
@@ -41155,7 +41165,7 @@ const assetAttrsConfig = {
41155
41165
  const isAsyncScriptMap = new WeakMap();
41156
41166
  async function traverseHtml(html, filePath, visitor) {
41157
41167
  // lazy load compiler
41158
- const { parse, transform } = await import('./dep-b58adab6.js').then(function (n) { return n.c; });
41168
+ const { parse, transform } = await import('./dep-c7c58113.js').then(function (n) { return n.c; });
41159
41169
  // @vue/compiler-core doesn't like lowercase doctypes
41160
41170
  html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
41161
41171
  try {
@@ -41839,7 +41849,7 @@ function cssPlugin(config) {
41839
41849
  }
41840
41850
  return url;
41841
41851
  };
41842
- const { code: css, modules, deps, map } = await compileCSS(id, raw, config, urlReplacer, atImportResolvers, server);
41852
+ const { code: css, modules, deps, map } = await compileCSS(id, raw, config, urlReplacer, atImportResolvers);
41843
41853
  if (modules) {
41844
41854
  moduleCache.set(id, modules);
41845
41855
  }
@@ -42293,7 +42303,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
42293
42303
  logger: config.logger
42294
42304
  }));
42295
42305
  if (isModule) {
42296
- postcssPlugins.unshift((await import('./dep-0f192b10.js').then(function (n) { return n.i; })).default({
42306
+ postcssPlugins.unshift((await import('./dep-2274fed5.js').then(function (n) { return n.i; })).default({
42297
42307
  ...modulesOptions,
42298
42308
  getJSON(cssFileName, _modules, outputFileName) {
42299
42309
  modules = _modules;
@@ -43763,7 +43773,32 @@ function wrapSsrTransform(fn) {
43763
43773
  function injectSsrFlag(options) {
43764
43774
  return { ...(options ?? {}), ssr: true };
43765
43775
  }
43766
- function toOutputFilePathInString(filename, type, hostId, hostType, config, toRelative = toImportMetaURLBasedRelativePath) {
43776
+ /*
43777
+ The following functions are copied from rollup
43778
+ https://github.com/rollup/rollup/blob/c5269747cd3dd14c4b306e8cea36f248d9c1aa01/src/ast/nodes/MetaProperty.ts#L189-L232
43779
+
43780
+ https://github.com/rollup/rollup
43781
+ The MIT License (MIT)
43782
+ Copyright (c) 2017 [these people](https://github.com/rollup/rollup/graphs/contributors)
43783
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
43784
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
43785
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43786
+ */
43787
+ const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
43788
+ const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${relativePath}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
43789
+ const relativeUrlMechanisms = {
43790
+ amd: (relativePath) => {
43791
+ if (relativePath[0] !== '.')
43792
+ relativePath = './' + relativePath;
43793
+ return getResolveUrl(`require.toUrl('${relativePath}'), document.baseURI`);
43794
+ },
43795
+ cjs: (relativePath) => `(typeof document === 'undefined' ? ${getResolveUrl(`'file:' + __dirname + '/${relativePath}'`, `(require('u' + 'rl').URL)`)} : ${getRelativeUrlFromDocument(relativePath)})`,
43796
+ es: (relativePath) => getResolveUrl(`'${relativePath}', import.meta.url`),
43797
+ iife: (relativePath) => getRelativeUrlFromDocument(relativePath),
43798
+ system: (relativePath) => getResolveUrl(`'${relativePath}', module.meta.url`),
43799
+ umd: (relativePath) => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getResolveUrl(`'file:' + __dirname + '/${relativePath}'`, `(require('u' + 'rl').URL)`)} : ${getRelativeUrlFromDocument(relativePath, true)})`
43800
+ };
43801
+ function toOutputFilePathInString(filename, type, hostId, hostType, config, format, toRelative = getToImportMetaURLBasedRelativePath(format)) {
43767
43802
  const { renderBuiltUrl } = config.experimental;
43768
43803
  let relative = config.base === '' || config.base === './';
43769
43804
  if (renderBuiltUrl) {
@@ -43790,10 +43825,11 @@ function toOutputFilePathInString(filename, type, hostId, hostType, config, toRe
43790
43825
  }
43791
43826
  return config.base + filename;
43792
43827
  }
43793
- function toImportMetaURLBasedRelativePath(filename, importer) {
43794
- return {
43795
- runtime: `new URL(${JSON.stringify(path$n.posix.relative(path$n.dirname(importer), filename))},import.meta.url).href`
43796
- };
43828
+ function getToImportMetaURLBasedRelativePath(format) {
43829
+ const toRelativePath = relativeUrlMechanisms[format];
43830
+ return (filename, importer) => ({
43831
+ runtime: toRelativePath(path$n.posix.relative(path$n.dirname(importer), filename))
43832
+ });
43797
43833
  }
43798
43834
  function toOutputFilePathWithoutRuntime(filename, type, hostId, hostType, config, toRelative) {
43799
43835
  const { renderBuiltUrl } = config.experimental;
@@ -50217,6 +50253,14 @@ async function httpServerStart(httpServer, serverOptions) {
50217
50253
  });
50218
50254
  });
50219
50255
  }
50256
+ function setClientErrorHandler(server, logger) {
50257
+ server.on('clientError', (err, socket) => {
50258
+ if (err.code === 'HPE_HEADER_OVERFLOW') {
50259
+ logger.warn(picocolors.exports.yellow('Server responded with status code 431. ' +
50260
+ 'See https://vitejs.dev/guide/troubleshooting.html#_431-request-header-fields-too-large.'));
50261
+ }
50262
+ });
50263
+ }
50220
50264
 
50221
50265
  /**
50222
50266
  * This plugin hooks into Node's module resolution algorithm at runtime,
@@ -59095,6 +59139,9 @@ async function createServer(inlineConfig = {}) {
59095
59139
  ? null
59096
59140
  : await resolveHttpServer(serverConfig, middlewares, httpsOptions);
59097
59141
  const ws = createWebSocketServer(httpServer, config, httpsOptions);
59142
+ if (httpServer) {
59143
+ setClientErrorHandler(httpServer, config.logger);
59144
+ }
59098
59145
  const { ignored = [], ...watchOptions } = serverConfig.watch || {};
59099
59146
  const watcher = chokidar.watch(path$n.resolve(root), {
59100
59147
  ignored: [
@@ -59653,6 +59700,7 @@ async function preview(inlineConfig = {}) {
59653
59700
  const config = await resolveConfig(inlineConfig, 'serve', 'production');
59654
59701
  const app = connect();
59655
59702
  const httpServer = await resolveHttpServer(config.preview, app, await resolveHttpsConfig(config.preview?.https));
59703
+ setClientErrorHandler(httpServer, config.logger);
59656
59704
  // apply server hooks from plugins
59657
59705
  const postHooks = [];
59658
59706
  for (const plugin of config.plugins) {
@@ -60096,7 +60144,7 @@ function webWorkerPlugin(config) {
60096
60144
  map: { mappings: '' } // Empty sourcemap to suppress Rollup warning
60097
60145
  };
60098
60146
  },
60099
- renderChunk(code, chunk) {
60147
+ renderChunk(code, chunk, outputOptions) {
60100
60148
  let s;
60101
60149
  const result = () => {
60102
60150
  return (s && {
@@ -60113,7 +60161,7 @@ function webWorkerPlugin(config) {
60113
60161
  while ((match = workerAssetUrlRE.exec(code))) {
60114
60162
  const [full, hash] = match;
60115
60163
  const filename = fileNameHash.get(hash);
60116
- const replacement = toOutputFilePathInString(filename, 'asset', chunk.fileName, 'js', config);
60164
+ const replacement = toOutputFilePathInString(filename, 'asset', chunk.fileName, 'js', config, outputOptions.format);
60117
60165
  const replacementString = typeof replacement === 'string'
60118
60166
  ? JSON.stringify(replacement).slice(1, -1)
60119
60167
  : `"+${replacement.runtime}+"`;
@@ -60121,20 +60169,19 @@ function webWorkerPlugin(config) {
60121
60169
  contentOnly: true
60122
60170
  });
60123
60171
  }
60124
- // TODO: check if this should be removed
60125
- if (config.isWorker) {
60126
- s = s.replace('import.meta.url', 'self.location.href');
60127
- return result();
60128
- }
60129
- }
60130
- if (!isWorker) {
60131
- const workerMap = workerCache.get(config);
60132
- workerMap.assets.forEach((asset) => {
60133
- this.emitFile(asset);
60134
- workerMap.assets.delete(asset.fileName);
60135
- });
60136
60172
  }
60137
60173
  return result();
60174
+ },
60175
+ generateBundle(opts) {
60176
+ // @ts-ignore asset emits are skipped in legacy bundle
60177
+ if (opts.__vite_skip_asset_emit__ || isWorker) {
60178
+ return;
60179
+ }
60180
+ const workerMap = workerCache.get(config);
60181
+ workerMap.assets.forEach((asset) => {
60182
+ this.emitFile(asset);
60183
+ workerMap.assets.delete(asset.fileName);
60184
+ });
60138
60185
  }
60139
60186
  };
60140
60187
  }
@@ -1,4 +1,4 @@
1
- import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-5cb728cb.js';
1
+ import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-88cc3a4f.js';
2
2
 
3
3
  import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
4
4
  import { dirname as __cjs_dirname } from 'node:path';
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-5cb728cb.js';
3
+ import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-88cc3a4f.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -694,7 +694,7 @@ cli
694
694
  .action(async (root, options) => {
695
695
  // output structure is preserved even after bundling so require()
696
696
  // is ok here
697
- const { createServer } = await import('./chunks/dep-5cb728cb.js').then(function (n) { return n.E; });
697
+ const { createServer } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.E; });
698
698
  try {
699
699
  const server = await createServer({
700
700
  root,
@@ -741,7 +741,7 @@ cli
741
741
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
742
742
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
743
743
  .action(async (root, options) => {
744
- const { build } = await import('./chunks/dep-5cb728cb.js').then(function (n) { return n.D; });
744
+ const { build } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.D; });
745
745
  const buildOptions = cleanOptions(options);
746
746
  try {
747
747
  await build({
@@ -765,7 +765,7 @@ cli
765
765
  .command('optimize [root]', 'pre-bundle dependencies')
766
766
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
767
767
  .action(async (root, options) => {
768
- const { optimizeDeps } = await import('./chunks/dep-5cb728cb.js').then(function (n) { return n.C; });
768
+ const { optimizeDeps } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.C; });
769
769
  try {
770
770
  const config = await resolveConfig({
771
771
  root,
@@ -788,7 +788,7 @@ cli
788
788
  .option('--https', `[boolean] use TLS + HTTP/2`)
789
789
  .option('--open [path]', `[boolean | string] open browser on startup`)
790
790
  .action(async (root, options) => {
791
- const { preview } = await import('./chunks/dep-5cb728cb.js').then(function (n) { return n.F; });
791
+ const { preview } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.F; });
792
792
  try {
793
793
  const server = await preview({
794
794
  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.0.5";
4
+ var version = "3.0.6";
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-5cb728cb.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-88cc3a4f.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.0.5";
34
+ var version = "3.0.6";
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.0.5",
3
+ "version": "3.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -61,7 +61,7 @@
61
61
  "esbuild": "^0.14.47",
62
62
  "postcss": "^8.4.16",
63
63
  "resolve": "^1.22.1",
64
- "rollup": "^2.75.6"
64
+ "rollup": ">=2.75.6 <2.77.0 || ~2.77.0"
65
65
  },
66
66
  "optionalDependencies": {
67
67
  "fsevents": "~2.3.2"