vite 5.0.0-beta.17 → 5.0.0-beta.19

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
@@ -2,7 +2,7 @@ import path from 'node:path';
2
2
  import fs from 'node:fs';
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import { EventEmitter } from 'events';
5
- import { x as colors, k as createLogger, r as resolveConfig } from './chunks/dep-3p9Yqpeo.js';
5
+ import { x as colors, k as createLogger, r as resolveConfig } from './chunks/dep-uqAlfqPp.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -759,7 +759,7 @@ cli
759
759
  filterDuplicateOptions(options);
760
760
  // output structure is preserved even after bundling so require()
761
761
  // is ok here
762
- const { createServer } = await import('./chunks/dep-3p9Yqpeo.js').then(function (n) { return n.A; });
762
+ const { createServer } = await import('./chunks/dep-uqAlfqPp.js').then(function (n) { return n.A; });
763
763
  try {
764
764
  const server = await createServer({
765
765
  root,
@@ -780,9 +780,9 @@ cli
780
780
  const startupDurationString = viteStartTime
781
781
  ? colors.dim(`ready in ${colors.reset(colors.bold(Math.ceil(performance.now() - viteStartTime)))} ms`)
782
782
  : '';
783
+ const hasExistingLogs = process.stdout.bytesWritten > 0 || process.stderr.bytesWritten > 0;
783
784
  info(`\n ${colors.green(`${colors.bold('VITE')} v${VERSION}`)} ${startupDurationString}\n`, {
784
- clear: !server.config.logger.hasWarned &&
785
- !globalThis.__vite_cjs_skip_clear_screen,
785
+ clear: !hasExistingLogs,
786
786
  });
787
787
  server.printUrls();
788
788
  const customShortcuts = [];
@@ -839,7 +839,7 @@ cli
839
839
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
840
840
  .action(async (root, options) => {
841
841
  filterDuplicateOptions(options);
842
- const { build } = await import('./chunks/dep-3p9Yqpeo.js').then(function (n) { return n.C; });
842
+ const { build } = await import('./chunks/dep-uqAlfqPp.js').then(function (n) { return n.C; });
843
843
  const buildOptions = cleanOptions(options);
844
844
  try {
845
845
  await build({
@@ -867,7 +867,7 @@ cli
867
867
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
868
868
  .action(async (root, options) => {
869
869
  filterDuplicateOptions(options);
870
- const { optimizeDeps } = await import('./chunks/dep-3p9Yqpeo.js').then(function (n) { return n.B; });
870
+ const { optimizeDeps } = await import('./chunks/dep-uqAlfqPp.js').then(function (n) { return n.B; });
871
871
  try {
872
872
  const config = await resolveConfig({
873
873
  root,
@@ -893,7 +893,7 @@ cli
893
893
  .option('--outDir <dir>', `[string] output directory (default: dist)`)
894
894
  .action(async (root, options) => {
895
895
  filterDuplicateOptions(options);
896
- const { preview } = await import('./chunks/dep-3p9Yqpeo.js').then(function (n) { return n.D; });
896
+ const { preview } = await import('./chunks/dep-uqAlfqPp.js').then(function (n) { return n.D; });
897
897
  try {
898
898
  const server = await preview({
899
899
  root,
@@ -122,6 +122,5 @@ const wildcardHosts = new Set([
122
122
  ]);
123
123
  const DEFAULT_DEV_PORT = 5173;
124
124
  const DEFAULT_PREVIEW_PORT = 4173;
125
- const ASYNC_DISPOSE = Symbol.asyncDispose || Symbol.for('Symbol.asyncDispose');
126
125
 
127
- export { ASYNC_DISPOSE, CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, NULL_BYTE_PLACEHOLDER, OPTIMIZABLE_ENTRY_RE, SPECIAL_QUERY_RE, VALID_ID_PREFIX, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };
126
+ export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTENSIONS, DEFAULT_MAIN_FIELDS, DEFAULT_PREVIEW_PORT, DEP_VERSION_RE, ENV_ENTRY, ENV_PUBLIC_PATH, ESBUILD_MODULES_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, NULL_BYTE_PLACEHOLDER, OPTIMIZABLE_ENTRY_RE, SPECIAL_QUERY_RE, VALID_ID_PREFIX, VERSION, VITE_PACKAGE_DIR, loopbackHosts, wildcardHosts };
@@ -55,7 +55,7 @@ interface ResolverObject {
55
55
  * in that the first defined rules are applied first.
56
56
  *
57
57
  * This is passed to \@rollup/plugin-alias as the "entries" field
58
- * https:
58
+ * https://github.com/rollup/plugins/tree/master/packages/alias#entries
59
59
  */
60
60
  type AliasOptions = readonly Alias[] | { [find: string]: string }
61
61
 
@@ -63,6 +63,8 @@ type AnymatchFn = (testString: string) => boolean
63
63
  type AnymatchPattern = string | RegExp | AnymatchFn
64
64
  type AnymatchMatcher = AnymatchPattern | AnymatchPattern[]
65
65
 
66
+ // Inlined to avoid extra dependency (chokidar is bundled in the published build)
67
+
66
68
  declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
67
69
  options: WatchOptions
68
70
 
@@ -144,11 +146,11 @@ interface WatchOptions {
144
146
  persistent?: boolean
145
147
 
146
148
  /**
147
- * ([anymatch](https:
149
+ * ([anymatch](https://github.com/micromatch/anymatch)-compatible definition) Defines files/paths to
148
150
  * be ignored. The whole relative or absolute path is tested, not just filename. If a function
149
151
  * with two arguments is provided, it gets called twice per path - once with a single argument
150
152
  * (the path), second time with two arguments (the path and the
151
- * [`fs.Stats`](https:
153
+ * [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path).
152
154
  */
153
155
  ignored?: AnymatchMatcher
154
156
 
@@ -195,7 +197,7 @@ interface WatchOptions {
195
197
  useFsEvents?: boolean
196
198
 
197
199
  /**
198
- * If relying upon the [`fs.Stats`](https:
200
+ * If relying upon the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object that
199
201
  * may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is
200
202
  * provided even in cases where it wasn't already available from the underlying watch events.
201
203
  */
@@ -212,7 +214,7 @@ interface WatchOptions {
212
214
  interval?: number
213
215
 
214
216
  /**
215
- * Interval of file system polling for binary files. ([see list of binary extensions](https:
217
+ * Interval of file system polling for binary files. ([see list of binary extensions](https://gi
216
218
  * thub.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json))
217
219
  */
218
220
  binaryInterval?: number
@@ -251,6 +253,9 @@ interface AwaitWriteFinishOptions {
251
253
  pollInterval?: number
252
254
  }
253
255
 
256
+ // Inlined to avoid extra dependency
257
+ // MIT Licensed https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE
258
+
254
259
  declare namespace Connect {
255
260
  export type ServerHandle = HandleFunction | http.Server
256
261
 
@@ -351,6 +356,9 @@ declare namespace Connect {
351
356
  }
352
357
  }
353
358
 
359
+ // Inlined to avoid extra dependency
360
+ // MIT Licensed https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE
361
+
354
362
  declare namespace HttpProxy {
355
363
  export type ProxyTarget = ProxyTargetUrl | ProxyTargetDetailed
356
364
 
@@ -649,18 +657,18 @@ interface CommonServerOptions {
649
657
  /**
650
658
  * Configure custom proxy rules for the dev server. Expects an object
651
659
  * of `{ key: options }` pairs.
652
- * Uses [`http-proxy`](https:
653
- * Full options [here](https:
660
+ * Uses [`http-proxy`](https://github.com/http-party/node-http-proxy).
661
+ * Full options [here](https://github.com/http-party/node-http-proxy#options).
654
662
  *
655
663
  * Example `vite.config.js`:
656
664
  * ``` js
657
665
  * module.exports = {
658
666
  * proxy: {
659
- *
660
- * '/foo': 'http:
661
- *
667
+ * // string shorthand
668
+ * '/foo': 'http://localhost:4567/foo',
669
+ * // with options
662
670
  * '/api': {
663
- * target: 'http:
671
+ * target: 'http://jsonplaceholder.typicode.com',
664
672
  * changeOrigin: true,
665
673
  * rewrite: path => path.replace(/^\/api/, '')
666
674
  * }
@@ -671,7 +679,7 @@ interface CommonServerOptions {
671
679
  proxy?: Record<string, string | ProxyOptions>;
672
680
  /**
673
681
  * Configure CORS for the dev server.
674
- * Uses https:
682
+ * Uses https://github.com/expressjs/cors.
675
683
  * Set to `true` to allow all methods from any origin, or configure separately
676
684
  * using an object.
677
685
  */
@@ -682,7 +690,7 @@ interface CommonServerOptions {
682
690
  headers?: OutgoingHttpHeaders;
683
691
  }
684
692
  /**
685
- * https:
693
+ * https://github.com/expressjs/cors#configuration-options
686
694
  */
687
695
  interface CorsOptions {
688
696
  origin?: CorsOrigin | ((origin: string, cb: (err: Error, origins: CorsOrigin) => void) => void);
@@ -711,7 +719,7 @@ interface PreviewServer {
711
719
  * - Can also be used as the handler function of a custom http server
712
720
  * or as a middleware in any connect-style Node.js frameworks
713
721
  *
714
- * https:
722
+ * https://github.com/senchalabs/connect#use-middleware
715
723
  */
716
724
  middlewares: Connect.Server;
717
725
  /**
@@ -818,7 +826,6 @@ declare class ModuleGraph {
818
826
  getModulesByFile(file: string): Set<ModuleNode> | undefined;
819
827
  onFileChange(file: string): void;
820
828
  invalidateModule(mod: ModuleNode, seen?: Set<ModuleNode>, timestamp?: number, isHmr?: boolean,
821
-
822
829
  ): void;
823
830
  invalidateAll(): void;
824
831
  /**
@@ -838,10 +845,10 @@ declare class ModuleGraph {
838
845
 
839
846
  /**
840
847
  * This file is refactored into TypeScript based on
841
- * https:
848
+ * https://github.com/preactjs/wmr/blob/main/packages/wmr/src/lib/rollup-plugin-container.js
842
849
  */
843
850
 
844
- interface PluginContainer extends AsyncDisposable {
851
+ interface PluginContainer {
845
852
  options: InputOptions;
846
853
  getModuleInfo(id: string): ModuleInfo | null;
847
854
  buildStart(options: InputOptions): Promise<void>;
@@ -870,9 +877,12 @@ interface PluginContainer extends AsyncDisposable {
870
877
  close(): Promise<void>;
871
878
  }
872
879
 
880
+ // Modified and inlined to avoid extra dependency
881
+ // Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/ws/index.d.ts
882
+
873
883
  declare const WebSocketAlias: typeof WebSocket
874
884
  interface WebSocketAlias extends WebSocket {}
875
-
885
+ // WebSocket socket.
876
886
  declare class WebSocket extends EventEmitter {
877
887
  /** The connection is not yet open. */
878
888
  static readonly CONNECTING: 0
@@ -950,7 +960,7 @@ declare class WebSocket extends EventEmitter {
950
960
  */
951
961
  resume(): void
952
962
 
953
-
963
+ // HTML5 WebSocket events
954
964
  addEventListener(
955
965
  method: 'message',
956
966
  cb: (event: WebSocket.MessageEvent) => void,
@@ -989,7 +999,7 @@ declare class WebSocket extends EventEmitter {
989
999
  cb: (event: WebSocket.Event) => void,
990
1000
  ): void
991
1001
 
992
-
1002
+ // Events
993
1003
  on(
994
1004
  event: 'close',
995
1005
  listener: (this: WebSocket, code: number, reason: Buffer) => void,
@@ -1140,7 +1150,7 @@ declare class WebSocket extends EventEmitter {
1140
1150
  listener: (...args: any[]) => void,
1141
1151
  ): this
1142
1152
  }
1143
-
1153
+ // tslint:disable-line no-empty-interface
1144
1154
 
1145
1155
  declare namespace WebSocket {
1146
1156
  /**
@@ -1285,7 +1295,7 @@ declare namespace WebSocket {
1285
1295
  port: number
1286
1296
  }
1287
1297
 
1288
-
1298
+ // WebSocket Server
1289
1299
  class Server<T extends WebSocket = WebSocket> extends EventEmitter {
1290
1300
  options: ServerOptions
1291
1301
  path: string
@@ -1303,7 +1313,7 @@ declare namespace WebSocket {
1303
1313
  ): void
1304
1314
  shouldHandle(request: IncomingMessage): boolean | Promise<boolean>
1305
1315
 
1306
-
1316
+ // Events
1307
1317
  on(
1308
1318
  event: 'connection',
1309
1319
  cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
@@ -1390,11 +1400,11 @@ declare namespace WebSocket {
1390
1400
  }
1391
1401
 
1392
1402
  const WebSocketServer: typeof Server
1393
- interface WebSocketServer extends Server {}
1403
+ interface WebSocketServer extends Server {} // tslint:disable-line no-empty-interface
1394
1404
  const WebSocket: typeof WebSocketAlias
1395
- interface WebSocket extends WebSocketAlias {}
1405
+ interface WebSocket extends WebSocketAlias {} // tslint:disable-line no-empty-interface
1396
1406
 
1397
-
1407
+ // WebSocket stream
1398
1408
  function createWebSocketStream(
1399
1409
  websocket: WebSocket,
1400
1410
  options?: DuplexOptions,
@@ -1402,7 +1412,7 @@ declare namespace WebSocket {
1402
1412
  }
1403
1413
 
1404
1414
  type WebSocketCustomListener<T> = (data: T, client: WebSocketClient) => void;
1405
- interface WebSocketServer extends AsyncDisposable {
1415
+ interface WebSocketServer {
1406
1416
  /**
1407
1417
  * Listen on port and host
1408
1418
  */
@@ -1491,7 +1501,7 @@ interface ServerOptions extends CommonServerOptions {
1491
1501
  };
1492
1502
  /**
1493
1503
  * chokidar watch options or null to disable FS watching
1494
- * https:
1504
+ * https://github.com/paulmillr/chokidar#api
1495
1505
  */
1496
1506
  watch?: WatchOptions | null;
1497
1507
  /**
@@ -1506,7 +1516,7 @@ interface ServerOptions extends CommonServerOptions {
1506
1516
  /**
1507
1517
  * Origin for the generated asset URLs.
1508
1518
  *
1509
- * @example `http:
1519
+ * @example `http://127.0.0.1:8080`
1510
1520
  */
1511
1521
  origin?: string;
1512
1522
  /**
@@ -1516,7 +1526,7 @@ interface ServerOptions extends CommonServerOptions {
1516
1526
  preTransformRequests?: boolean;
1517
1527
  /**
1518
1528
  * Whether or not to ignore-list source files in the dev server sourcemap, used to populate
1519
- * the [`x_google_ignoreList` source map extension](https:
1529
+ * the [`x_google_ignoreList` source map extension](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).
1520
1530
  *
1521
1531
  * By default, it excludes all paths containing `node_modules`. You can pass `false` to
1522
1532
  * disable this behavior, or, for full control, a function that takes the source path and
@@ -1557,7 +1567,7 @@ interface FileSystemServeOptions {
1557
1567
  }
1558
1568
  type ServerHook = (this: void, server: ViteDevServer) => (() => void) | void | Promise<(() => void) | void>;
1559
1569
  type HttpServer = http.Server | Http2SecureServer;
1560
- interface ViteDevServer extends AsyncDisposable {
1570
+ interface ViteDevServer {
1561
1571
  /**
1562
1572
  * The resolved vite config object
1563
1573
  */
@@ -1568,7 +1578,7 @@ interface ViteDevServer extends AsyncDisposable {
1568
1578
  * - Can also be used as the handler function of a custom http server
1569
1579
  * or as a middleware in any connect-style Node.js frameworks
1570
1580
  *
1571
- * https:
1581
+ * https://github.com/senchalabs/connect#use-middleware
1572
1582
  */
1573
1583
  middlewares: Connect.Server;
1574
1584
  /**
@@ -1578,7 +1588,7 @@ interface ViteDevServer extends AsyncDisposable {
1578
1588
  httpServer: HttpServer | null;
1579
1589
  /**
1580
1590
  * chokidar watcher instance
1581
- * https:
1591
+ * https://github.com/paulmillr/chokidar#api
1582
1592
  */
1583
1593
  watcher: FSWatcher;
1584
1594
  /**
@@ -1842,10 +1852,10 @@ interface RollupCommonJSOptions {
1842
1852
  * imports i.e.
1843
1853
  *
1844
1854
  * ```js
1845
- *
1855
+ * // input
1846
1856
  * const foo = require('foo');
1847
1857
  *
1848
- *
1858
+ * // output
1849
1859
  * import * as foo from 'foo';
1850
1860
  * ```
1851
1861
  *
@@ -1937,6 +1947,10 @@ interface RollupDynamicImportVarsOptions {
1937
1947
  warnOnError?: boolean
1938
1948
  }
1939
1949
 
1950
+ // Modified and inlined to avoid extra dependency
1951
+ // Source: https://github.com/terser/terser/blob/master/tools/terser.d.ts
1952
+ // BSD Licensed https://github.com/terser/terser/blob/master/LICENSE
1953
+
1940
1954
  declare namespace Terser {
1941
1955
  export type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020
1942
1956
 
@@ -2171,13 +2185,13 @@ interface BuildOptions {
2171
2185
  *
2172
2186
  * Default: 'modules' - Similar to `@babel/preset-env`'s targets.esmodules,
2173
2187
  * transpile targeting browsers that natively support dynamic es module imports.
2174
- * https:
2188
+ * https://caniuse.com/es6-module-dynamic-import
2175
2189
  *
2176
2190
  * Another special value is 'esnext' - which only performs minimal transpiling
2177
2191
  * (for minification compat) and assumes native dynamic imports support.
2178
2192
  *
2179
- * For custom targets, see https:
2180
- * https:
2193
+ * For custom targets, see https://esbuild.github.io/api/#target and
2194
+ * https://esbuild.github.io/content-types/#javascript for more details.
2181
2195
  * @default 'modules'
2182
2196
  */
2183
2197
  target?: 'modules' | esbuild_TransformOptions['target'] | false;
@@ -2251,7 +2265,7 @@ interface BuildOptions {
2251
2265
  minify?: boolean | 'terser' | 'esbuild';
2252
2266
  /**
2253
2267
  * Options for terser
2254
- * https:
2268
+ * https://terser.org/docs/api-reference#minify-options
2255
2269
  *
2256
2270
  * In addition, you can also pass a `maxWorkers: number` option to specify the
2257
2271
  * max number of workers to spawn. Defaults to the number of CPUs minus 1.
@@ -2259,7 +2273,7 @@ interface BuildOptions {
2259
2273
  terserOptions?: TerserOptions;
2260
2274
  /**
2261
2275
  * Will be merged with internal rollup options.
2262
- * https:
2276
+ * https://rollupjs.org/configuration-options/
2263
2277
  */
2264
2278
  rollupOptions?: RollupOptions;
2265
2279
  /**
@@ -2342,7 +2356,7 @@ interface BuildOptions {
2342
2356
  chunkSizeWarningLimit?: number;
2343
2357
  /**
2344
2358
  * Rollup watch options
2345
- * https:
2359
+ * https://rollupjs.org/configuration-options/#watch
2346
2360
  * @default null
2347
2361
  */
2348
2362
  watch?: WatcherOptions | null;
@@ -2428,7 +2442,7 @@ type ExportsData = {
2428
2442
  exports: readonly string[];
2429
2443
  jsxLoader?: boolean;
2430
2444
  };
2431
- interface DepsOptimizer extends AsyncDisposable {
2445
+ interface DepsOptimizer {
2432
2446
  metadata: DepOptimizationMetadata;
2433
2447
  scanProcessing?: Promise<void>;
2434
2448
  registerMissingImport: (id: string, resolved: string) => OptimizedDepInfo;
@@ -2469,7 +2483,7 @@ interface DepOptimizationConfig {
2469
2483
  * - `external` is also omitted, use Vite's `optimizeDeps.exclude` option
2470
2484
  * - `plugins` are merged with Vite's dep plugin
2471
2485
  *
2472
- * https:
2486
+ * https://esbuild.github.io/api
2473
2487
  */
2474
2488
  esbuildOptions?: Omit<esbuild_BuildOptions, 'bundle' | 'entryPoints' | 'external' | 'write' | 'watch' | 'outdir' | 'outfile' | 'outbase' | 'outExtension' | 'metafile'>;
2475
2489
  /**
@@ -2507,7 +2521,7 @@ type DepOptimizationOptions = DepOptimizationConfig & {
2507
2521
  *
2508
2522
  * If neither of these fit your needs, you can specify custom entries using
2509
2523
  * this option - the value should be a fast-glob pattern or array of patterns
2510
- * (https:
2524
+ * (https://github.com/mrmlnc/fast-glob#basic-syntax) that are relative from
2511
2525
  * vite project root. This will overwrite default entries inference.
2512
2526
  */
2513
2527
  entries?: string | string[];
@@ -2652,6 +2666,8 @@ interface InternalResolveOptions extends Required<ResolveOptions> {
2652
2666
  shouldExternalize?: (id: string, importer?: string) => boolean | undefined;
2653
2667
  }
2654
2668
 
2669
+ // This file is autogenerated by build-prefixes.js. DO NOT EDIT!
2670
+
2655
2671
  interface Targets {
2656
2672
  android?: number,
2657
2673
  chrome?: number,
@@ -2715,7 +2731,7 @@ interface CSSOptions {
2715
2731
  */
2716
2732
  transformer?: 'postcss' | 'lightningcss';
2717
2733
  /**
2718
- * https:
2734
+ * https://github.com/css-modules/postcss-modules
2719
2735
  */
2720
2736
  modules?: CSSModulesOptions | false;
2721
2737
  preprocessorOptions?: Record<string, any>;
@@ -3170,7 +3186,7 @@ interface LegacyOptions {
3170
3186
  *
3171
3187
  * In Vite 5, the proxy is removed so dev and prod are consistent, but if you still require
3172
3188
  * the old behaviour, you can enable this option. If so, please leave your feedback at
3173
- * https:
3189
+ * https://github.com/vitejs/vite/discussions/14697.
3174
3190
  */
3175
3191
  proxySsrExternalModules?: boolean;
3176
3192
  }
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { i as isInNodeModules } from './chunks/dep-3p9Yqpeo.js';
3
- export { b as build, e as buildErrorMessage, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, u as isFileServingAllowed, l as loadConfigFromFile, v as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, r as resolveConfig, w as resolveEnvPrefix, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-3p9Yqpeo.js';
2
+ import { i as isInNodeModules } from './chunks/dep-uqAlfqPp.js';
3
+ export { b as build, e as buildErrorMessage, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, u as isFileServingAllowed, l as loadConfigFromFile, v as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, r as resolveConfig, w as resolveEnvPrefix, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-uqAlfqPp.js';
4
4
  export { VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  export { VERSION as rollupVersion } from 'rollup';
package/index.cjs CHANGED
@@ -27,7 +27,6 @@ asyncFunctions.forEach((name) => {
27
27
 
28
28
  function warnCjsUsage() {
29
29
  if (process.env.VITE_CJS_IGNORE_WARNING) return
30
- globalThis.__vite_cjs_skip_clear_screen = true
31
30
  const yellow = (str) => `\u001b[33m${str}\u001b[39m`
32
31
  const log = process.env.VITE_CJS_TRACE ? console.trace : console.warn
33
32
  log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "5.0.0-beta.17",
3
+ "version": "5.0.0-beta.19",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@ampproject/remapping": "^2.2.1",
73
- "@babel/parser": "^7.23.0",
73
+ "@babel/parser": "^7.23.3",
74
74
  "@jridgewell/trace-mapping": "^0.3.20",
75
75
  "@rollup/plugin-alias": "^5.0.1",
76
76
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -79,8 +79,8 @@
79
79
  "@rollup/plugin-node-resolve": "15.2.3",
80
80
  "@rollup/plugin-typescript": "^11.1.5",
81
81
  "@rollup/pluginutils": "^5.0.5",
82
- "@types/escape-html": "^1.0.3",
83
- "@types/pnpapi": "^0.0.4",
82
+ "@types/escape-html": "^1.0.4",
83
+ "@types/pnpapi": "^0.0.5",
84
84
  "acorn": "^8.11.2",
85
85
  "acorn-walk": "^8.3.0",
86
86
  "cac": "^6.7.14",
@@ -93,15 +93,15 @@
93
93
  "dep-types": "link:./src/types",
94
94
  "dotenv": "^16.3.1",
95
95
  "dotenv-expand": "^10.0.0",
96
- "es-module-lexer": "^1.3.1",
96
+ "es-module-lexer": "^1.4.1",
97
97
  "escape-html": "^1.0.3",
98
98
  "estree-walker": "^3.0.3",
99
99
  "etag": "^1.8.1",
100
- "fast-glob": "^3.3.1",
100
+ "fast-glob": "^3.3.2",
101
101
  "http-proxy": "^1.18.1",
102
102
  "json-stable-stringify": "^1.0.2",
103
103
  "launch-editor-middleware": "^2.6.1",
104
- "lightningcss": "^1.22.0",
104
+ "lightningcss": "^1.22.1",
105
105
  "magic-string": "^0.30.5",
106
106
  "micromatch": "^4.0.5",
107
107
  "mlly": "^1.4.2",