vite 3.2.4 → 3.2.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.
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-67e7f8ab.js';
3
+ import { z as picocolors, v as createLogger, g as resolveConfig } from './chunks/dep-1889fec9.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-67e7f8ab.js').then(function (n) { return n.D; });
705
+ const { createServer } = await import('./chunks/dep-1889fec9.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-67e7f8ab.js').then(function (n) { return n.C; });
753
+ const { build } = await import('./chunks/dep-1889fec9.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-67e7f8ab.js').then(function (n) { return n.B; });
778
+ const { optimizeDeps } = await import('./chunks/dep-1889fec9.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-67e7f8ab.js').then(function (n) { return n.E; });
803
+ const { preview } = await import('./chunks/dep-1889fec9.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.4";
4
+ var version = "3.2.6";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -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-67e7f8ab.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-1889fec9.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.4";
34
+ var version = "3.2.6";
35
35
 
36
36
  const VERSION = version;
37
37
  const VITE_PACKAGE_DIR = path$3.resolve(
package/index.cjs CHANGED
@@ -15,7 +15,8 @@ const asyncFunctions = [
15
15
  'resolveConfig',
16
16
  'optimizeDeps',
17
17
  'formatPostcssSourceMap',
18
- 'loadConfigFromFile'
18
+ 'loadConfigFromFile',
19
+ 'preprocessCSS'
19
20
  ]
20
21
  asyncFunctions.forEach((name) => {
21
22
  module.exports[name] = (...args) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -78,7 +78,9 @@
78
78
  "@rollup/plugin-node-resolve": "14.1.0",
79
79
  "@rollup/plugin-typescript": "^8.5.0",
80
80
  "@rollup/pluginutils": "^4.2.1",
81
+ "@types/escape-html": "^1.0.0",
81
82
  "acorn": "^8.8.1",
83
+ "acorn-walk": "^8.2.0",
82
84
  "cac": "^6.7.14",
83
85
  "chokidar": "^3.5.3",
84
86
  "connect": "^3.7.0",
@@ -91,6 +93,7 @@
91
93
  "dotenv": "^14.3.2",
92
94
  "dotenv-expand": "^5.1.0",
93
95
  "es-module-lexer": "^1.1.0",
96
+ "escape-html": "^1.0.3",
94
97
  "estree-walker": "^3.0.1",
95
98
  "etag": "^1.8.1",
96
99
  "fast-glob": "^3.2.12",
@@ -109,7 +112,7 @@
109
112
  "picomatch": "^2.3.1",
110
113
  "postcss-import": "^15.0.0",
111
114
  "postcss-load-config": "^4.0.1",
112
- "postcss-modules": "^5.0.0",
115
+ "postcss-modules": "^6.0.0",
113
116
  "resolve.exports": "^1.1.0",
114
117
  "sirv": "^2.0.2",
115
118
  "source-map-js": "^1.0.2",