vite 3.2.8 → 3.2.10

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.
@@ -44169,7 +44169,7 @@ async function compileCSS(id, code, config, urlReplacer) {
44169
44169
  }));
44170
44170
  }
44171
44171
  if (isModule) {
44172
- postcssPlugins.unshift((await import('./dep-ae4d20cb.js').then(function (n) { return n.i; })).default({
44172
+ postcssPlugins.unshift((await import('./dep-48c482ee.js').then(function (n) { return n.i; })).default({
44173
44173
  ...modulesOptions,
44174
44174
  // TODO: convert null to undefined (`null` should be removed from `CSSModulesOptions.localsConvention`)
44175
44175
  localsConvention: modulesOptions?.localsConvention ?? undefined,
@@ -62048,9 +62048,14 @@ async function createServer(inlineConfig = {}) {
62048
62048
  _importGlobMap: new Map(),
62049
62049
  _forceOptimizeOnRestart: false,
62050
62050
  _pendingRequests: new Map(),
62051
- _fsDenyGlob: picomatch$3(config.server.fs.deny, {
62052
- matchBase: true,
62053
- nocase: true
62051
+ _fsDenyGlob: picomatch$3(
62052
+ // matchBase: true does not work as it's documented
62053
+ // https://github.com/micromatch/picomatch/issues/89
62054
+ // convert patterns without `/` on our side for now
62055
+ config.server.fs.deny.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`), {
62056
+ matchBase: false,
62057
+ nocase: true,
62058
+ dot: true
62054
62059
  })
62055
62060
  };
62056
62061
  server.transformIndexHtml = createDevHtmlTransformFn(server);
@@ -1,6 +1,6 @@
1
1
  import require$$0__default from 'fs';
2
2
  import require$$0 from 'postcss';
3
- import { A as commonjsGlobal } from './dep-f11f7337.js';
3
+ import { A as commonjsGlobal } from './dep-372dab03.js';
4
4
  import require$$0$1 from 'path';
5
5
  import require$$5 from 'crypto';
6
6
  import require$$0$2 from 'util';
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-f11f7337.js';
3
+ import { z as picocolors, v as createLogger, g as resolveConfig } from './chunks/dep-372dab03.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-f11f7337.js').then(function (n) { return n.D; });
705
+ const { createServer } = await import('./chunks/dep-372dab03.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-f11f7337.js').then(function (n) { return n.C; });
753
+ const { build } = await import('./chunks/dep-372dab03.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-f11f7337.js').then(function (n) { return n.B; });
778
+ const { optimizeDeps } = await import('./chunks/dep-372dab03.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-f11f7337.js').then(function (n) { return n.E; });
803
+ const { preview } = await import('./chunks/dep-372dab03.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.8";
4
+ var version = "3.2.10";
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-f11f7337.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-372dab03.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.8";
34
+ var version = "3.2.10";
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.8",
3
+ "version": "3.2.10",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -42,20 +42,6 @@
42
42
  "url": "https://github.com/vitejs/vite/issues"
43
43
  },
44
44
  "homepage": "https://github.com/vitejs/vite/tree/main/#readme",
45
- "scripts": {
46
- "dev": "rimraf dist && pnpm run build-bundle -w",
47
- "build": "rimraf dist && run-s build-bundle build-types",
48
- "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
49
- "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
50
- "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
51
- "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
52
- "build-types-roll": "api-extractor run && rimraf temp",
53
- "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
54
- "build-types-check": "tsc --project tsconfig.check.json",
55
- "lint": "eslint --cache --ext .ts src/**",
56
- "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
57
- "prepublishOnly": "npm run build"
58
- },
59
45
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
60
46
  "dependencies": {
61
47
  "esbuild": "^0.15.9",
@@ -152,5 +138,18 @@
152
138
  "terser": {
153
139
  "optional": true
154
140
  }
141
+ },
142
+ "scripts": {
143
+ "dev": "rimraf dist && pnpm run build-bundle -w",
144
+ "build": "rimraf dist && run-s build-bundle build-types",
145
+ "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
146
+ "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
147
+ "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
148
+ "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
149
+ "build-types-roll": "api-extractor run && rimraf temp",
150
+ "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
151
+ "build-types-check": "tsc --project tsconfig.check.json",
152
+ "lint": "eslint --cache --ext .ts src/**",
153
+ "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
155
154
  }
156
- }
155
+ }