vite 3.2.0-beta.3 → 3.2.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  import require$$0$1 from 'postcss';
2
- import { z as commonjsGlobal } from './dep-5fd8eb18.js';
2
+ import { z as commonjsGlobal } from './dep-0e9c6c9f.js';
3
3
  import require$$0 from 'path';
4
4
  import require$$5 from 'crypto';
5
5
  import require$$0__default from 'fs';
@@ -46308,6 +46308,7 @@ function cssPostPlugin(config) {
46308
46308
  SPECIAL_QUERY_RE.test(id)) {
46309
46309
  return;
46310
46310
  }
46311
+ css = stripBomTag(css);
46311
46312
  const inlined = inlineRE.test(id);
46312
46313
  const modules = cssModulesCache.get(config).get(id);
46313
46314
  // #6984, #7552
@@ -46687,7 +46688,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
46687
46688
  logger: config.logger
46688
46689
  }));
46689
46690
  if (isModule) {
46690
- postcssPlugins.unshift((await import('./dep-ea6d21e3.js').then(function (n) { return n.i; })).default({
46691
+ postcssPlugins.unshift((await import('./dep-06c4efef.js').then(function (n) { return n.i; })).default({
46691
46692
  ...modulesOptions,
46692
46693
  getJSON(cssFileName, _modules, outputFileName) {
46693
46694
  modules = _modules;
@@ -55541,7 +55542,7 @@ async function instantiateModule(url, server, context = { global }, urlStack = [
55541
55542
  preserveSymlinks,
55542
55543
  isBuild: true,
55543
55544
  isProduction,
55544
- isRequire: false,
55545
+ isRequire: true,
55545
55546
  root
55546
55547
  };
55547
55548
  // Since dynamic imports can happen in parallel, we need to
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-5fd8eb18.js';
3
+ import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-0e9c6c9f.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -704,7 +704,7 @@ cli
704
704
  filterDuplicateOptions(options);
705
705
  // output structure is preserved even after bundling so require()
706
706
  // is ok here
707
- const { createServer } = await import('./chunks/dep-5fd8eb18.js').then(function (n) { return n.C; });
707
+ const { createServer } = await import('./chunks/dep-0e9c6c9f.js').then(function (n) { return n.C; });
708
708
  try {
709
709
  const server = await createServer({
710
710
  root,
@@ -752,7 +752,7 @@ cli
752
752
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
753
753
  .action(async (root, options) => {
754
754
  filterDuplicateOptions(options);
755
- const { build } = await import('./chunks/dep-5fd8eb18.js').then(function (n) { return n.B; });
755
+ const { build } = await import('./chunks/dep-0e9c6c9f.js').then(function (n) { return n.B; });
756
756
  const buildOptions = cleanOptions(options);
757
757
  try {
758
758
  await build({
@@ -777,7 +777,7 @@ cli
777
777
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
778
778
  .action(async (root, options) => {
779
779
  filterDuplicateOptions(options);
780
- const { optimizeDeps } = await import('./chunks/dep-5fd8eb18.js').then(function (n) { return n.A; });
780
+ const { optimizeDeps } = await import('./chunks/dep-0e9c6c9f.js').then(function (n) { return n.A; });
781
781
  try {
782
782
  const config = await resolveConfig({
783
783
  root,
@@ -801,7 +801,7 @@ cli
801
801
  .option('--open [path]', `[boolean | string] open browser on startup`)
802
802
  .action(async (root, options) => {
803
803
  filterDuplicateOptions(options);
804
- const { preview } = await import('./chunks/dep-5fd8eb18.js').then(function (n) { return n.D; });
804
+ const { preview } = await import('./chunks/dep-0e9c6c9f.js').then(function (n) { return n.D; });
805
805
  try {
806
806
  const server = await preview({
807
807
  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.0-beta.3";
4
+ var version = "3.2.0-beta.4";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -22,7 +22,6 @@ import { GeneralImportGlobOptions } from "../../types/importGlob";
22
22
  import type { GetManualChunk } from 'rollup';
23
23
  import { HMRPayload } from "../../types/hmrPayload";
24
24
  import * as http from 'node:http';
25
- import type { Http2SecureServer } from 'node:http2';
26
25
  import { ImportGlobEagerFunction } from "../../types/importGlob";
27
26
  import { ImportGlobFunction } from "../../types/importGlob";
28
27
  import { ImportGlobOptions } from "../../types/importGlob";
@@ -1545,7 +1544,7 @@ export declare interface PreviewServer {
1545
1544
  /**
1546
1545
  * native Node http server instance
1547
1546
  */
1548
- httpServer: http.Server | Http2SecureServer;
1547
+ httpServer: http.Server;
1549
1548
  /**
1550
1549
  * The resolved urls Vite prints on the CLI
1551
1550
  */
@@ -1558,7 +1557,7 @@ export declare interface PreviewServer {
1558
1557
 
1559
1558
  export declare type PreviewServerHook = (this: void, server: {
1560
1559
  middlewares: Connect.Server;
1561
- httpServer: http.Server | Http2SecureServer;
1560
+ httpServer: http.Server;
1562
1561
  }) => (() => void) | void | Promise<(() => void) | void>;
1563
1562
 
1564
1563
  export declare interface ProxyOptions extends HttpProxy.ServerOptions {
@@ -2471,7 +2470,7 @@ export declare interface ViteDevServer {
2471
2470
  * native Node http server instance
2472
2471
  * will be null in middleware mode
2473
2472
  */
2474
- httpServer: http.Server | Http2SecureServer | null;
2473
+ httpServer: http.Server | null;
2475
2474
  /**
2476
2475
  * chokidar watcher instance
2477
2476
  * https://github.com/paulmillr/chokidar#api
@@ -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-5fd8eb18.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-0e9c6c9f.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.0-beta.3";
34
+ var version = "3.2.0-beta.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.0-beta.3",
3
+ "version": "3.2.0-beta.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",