vite 3.2.2 → 3.2.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.
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 { z as picocolors, v as createLogger, g as resolveConfig } from './chunks/dep-c842e491.js';
3
+ import { z as picocolors, v as createLogger, g as resolveConfig } from './chunks/dep-67e7f8ab.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -702,7 +702,7 @@ cli
702
702
  filterDuplicateOptions(options);
703
703
  // output structure is preserved even after bundling so require()
704
704
  // is ok here
705
- const { createServer } = await import('./chunks/dep-c842e491.js').then(function (n) { return n.D; });
705
+ const { createServer } = await import('./chunks/dep-67e7f8ab.js').then(function (n) { return n.D; });
706
706
  try {
707
707
  const server = await createServer({
708
708
  root,
@@ -750,7 +750,7 @@ cli
750
750
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
751
751
  .action(async (root, options) => {
752
752
  filterDuplicateOptions(options);
753
- const { build } = await import('./chunks/dep-c842e491.js').then(function (n) { return n.C; });
753
+ const { build } = await import('./chunks/dep-67e7f8ab.js').then(function (n) { return n.C; });
754
754
  const buildOptions = cleanOptions(options);
755
755
  try {
756
756
  await build({
@@ -775,7 +775,7 @@ cli
775
775
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
776
776
  .action(async (root, options) => {
777
777
  filterDuplicateOptions(options);
778
- const { optimizeDeps } = await import('./chunks/dep-c842e491.js').then(function (n) { return n.B; });
778
+ const { optimizeDeps } = await import('./chunks/dep-67e7f8ab.js').then(function (n) { return n.B; });
779
779
  try {
780
780
  const config = await resolveConfig({
781
781
  root,
@@ -800,7 +800,7 @@ cli
800
800
  .option('--outDir <dir>', `[string] output directory (default: dist)`)
801
801
  .action(async (root, options) => {
802
802
  filterDuplicateOptions(options);
803
- const { preview } = await import('./chunks/dep-c842e491.js').then(function (n) { return n.E; });
803
+ const { preview } = await import('./chunks/dep-67e7f8ab.js').then(function (n) { return n.E; });
804
804
  try {
805
805
  const server = await preview({
806
806
  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.2.2";
4
+ var version = "3.2.4";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -1151,6 +1151,7 @@ export declare interface InternalResolveOptions extends Required<ResolveOptions>
1151
1151
  ssrOptimizeCheck?: boolean;
1152
1152
  getDepsOptimizer?: (ssr: boolean) => DepsOptimizer | undefined;
1153
1153
  shouldExternalize?: (id: string) => boolean | undefined;
1154
+ isHookNodeResolve?: boolean;
1154
1155
  }
1155
1156
 
1156
1157
  export { InvalidatePayload }
@@ -1,4 +1,4 @@
1
- export { b as build, q as createFilter, v as createLogger, c as createServer, e as defineConfig, f as formatPostcssSourceMap, i as getDepOptimizationConfig, j as isDepsOptimizerEnabled, l as loadConfigFromFile, x as loadEnv, k as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, h as resolveBaseUrl, g as resolveConfig, y as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-c842e491.js';
1
+ export { b as build, q as createFilter, v as createLogger, c as createServer, e as defineConfig, f as formatPostcssSourceMap, i as getDepOptimizationConfig, j as isDepsOptimizerEnabled, l as loadConfigFromFile, x as loadEnv, k as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, h as resolveBaseUrl, g as resolveConfig, y as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-67e7f8ab.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.2.2";
34
+ var version = "3.2.4";
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.2.2",
3
+ "version": "3.2.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -72,8 +72,8 @@
72
72
  "@babel/types": "^7.20.0",
73
73
  "@jridgewell/trace-mapping": "^0.3.17",
74
74
  "@rollup/plugin-alias": "^4.0.2",
75
- "@rollup/plugin-commonjs": "^22.0.2",
76
- "@rollup/plugin-dynamic-import-vars": "^1.4.4",
75
+ "@rollup/plugin-commonjs": "^23.0.2",
76
+ "@rollup/plugin-dynamic-import-vars": "^2.0.1",
77
77
  "@rollup/plugin-json": "^4.1.0",
78
78
  "@rollup/plugin-node-resolve": "14.1.0",
79
79
  "@rollup/plugin-typescript": "^8.5.0",
@@ -123,6 +123,7 @@
123
123
  "ws": "^8.10.0"
124
124
  },
125
125
  "peerDependencies": {
126
+ "@types/node": ">= 14",
126
127
  "less": "*",
127
128
  "sass": "*",
128
129
  "stylus": "*",
@@ -130,6 +131,9 @@
130
131
  "terser": "^5.4.0"
131
132
  },
132
133
  "peerDependenciesMeta": {
134
+ "@types/node": {
135
+ "optional": true
136
+ },
133
137
  "sass": {
134
138
  "optional": true
135
139
  },
@@ -7,6 +7,7 @@ import type {
7
7
 
8
8
  export interface CustomEventMap {
9
9
  'vite:beforeUpdate': UpdatePayload
10
+ 'vite:afterUpdate': UpdatePayload
10
11
  'vite:beforePrune': PrunePayload
11
12
  'vite:beforeFullReload': FullReloadPayload
12
13
  'vite:error': ErrorPayload