vite 4.0.0-alpha.6 → 4.0.0-beta.0

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.
@@ -376,18 +376,18 @@ export declare namespace Connect {
376
376
 
377
377
  export type SimpleHandleFunction = (
378
378
  req: IncomingMessage,
379
- res: http.ServerResponse
379
+ res: http.ServerResponse,
380
380
  ) => void
381
381
  export type NextHandleFunction = (
382
382
  req: IncomingMessage,
383
383
  res: http.ServerResponse,
384
- next: NextFunction
384
+ next: NextFunction,
385
385
  ) => void
386
386
  export type ErrorHandleFunction = (
387
387
  err: any,
388
388
  req: IncomingMessage,
389
389
  res: http.ServerResponse,
390
- next: NextFunction
390
+ next: NextFunction,
391
391
  ) => void
392
392
  export type HandleFunction =
393
393
  | SimpleHandleFunction
@@ -428,7 +428,7 @@ export declare namespace Connect {
428
428
  handle(
429
429
  req: http.IncomingMessage,
430
430
  res: http.ServerResponse,
431
- next: Function
431
+ next: Function,
432
432
  ): void
433
433
 
434
434
  /**
@@ -457,7 +457,7 @@ export declare namespace Connect {
457
457
  port: number,
458
458
  hostname?: string,
459
459
  backlog?: number,
460
- callback?: Function
460
+ callback?: Function,
461
461
  ): http.Server
462
462
  listen(port: number, hostname?: string, callback?: Function): http.Server
463
463
  listen(path: string, callback?: Function): http.Server
@@ -500,7 +500,7 @@ export declare interface CSSModulesOptions {
500
500
  /**
501
501
  * default: undefined
502
502
  */
503
- localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly';
503
+ localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | ((originalClassName: string, generatedClassName: string, inputFile: string) => string);
504
504
  }
505
505
 
506
506
  export declare interface CSSOptions {
@@ -784,7 +784,7 @@ export declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
784
784
 
785
785
  on(
786
786
  event: 'add' | 'addDir' | 'change',
787
- listener: (path: string, stats?: fs.Stats) => void
787
+ listener: (path: string, stats?: fs.Stats) => void,
788
788
  ): this
789
789
 
790
790
  on(
@@ -792,8 +792,8 @@ export declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
792
792
  listener: (
793
793
  eventName: 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir',
794
794
  path: string,
795
- stats?: fs.Stats
796
- ) => void
795
+ stats?: fs.Stats,
796
+ ) => void,
797
797
  ): this
798
798
 
799
799
  /**
@@ -806,7 +806,7 @@ export declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
806
806
  */
807
807
  on(
808
808
  event: 'raw',
809
- listener: (eventName: string, path: string, details: any) => void
809
+ listener: (eventName: string, path: string, details: any) => void,
810
810
  ): this
811
811
 
812
812
  /**
@@ -882,7 +882,7 @@ export declare namespace HttpProxy {
882
882
  err: Error,
883
883
  req: http.IncomingMessage,
884
884
  res: http.ServerResponse,
885
- target?: ProxyTargetUrl
885
+ target?: ProxyTargetUrl,
886
886
  ) => void
887
887
 
888
888
  export class Server extends events.EventEmitter {
@@ -902,7 +902,7 @@ export declare namespace HttpProxy {
902
902
  req: http.IncomingMessage,
903
903
  res: http.ServerResponse,
904
904
  options?: ServerOptions,
905
- callback?: ErrorCallback
905
+ callback?: ErrorCallback,
906
906
  ): void
907
907
 
908
908
  /**
@@ -917,7 +917,7 @@ export declare namespace HttpProxy {
917
917
  socket: unknown,
918
918
  head: unknown,
919
919
  options?: ServerOptions,
920
- callback?: ErrorCallback
920
+ callback?: ErrorCallback,
921
921
  ): void
922
922
 
923
923
  /**
@@ -960,8 +960,8 @@ export declare namespace HttpProxy {
960
960
  listener: (
961
961
  req: http.IncomingMessage,
962
962
  res: http.ServerResponse,
963
- target: ProxyTargetUrl
964
- ) => void
963
+ target: ProxyTargetUrl,
964
+ ) => void,
965
965
  ): this
966
966
  on(
967
967
  event: 'proxyReq',
@@ -969,16 +969,16 @@ export declare namespace HttpProxy {
969
969
  proxyReq: http.ClientRequest,
970
970
  req: http.IncomingMessage,
971
971
  res: http.ServerResponse,
972
- options: ServerOptions
973
- ) => void
972
+ options: ServerOptions,
973
+ ) => void,
974
974
  ): this
975
975
  on(
976
976
  event: 'proxyRes',
977
977
  listener: (
978
978
  proxyRes: http.IncomingMessage,
979
979
  req: http.IncomingMessage,
980
- res: http.ServerResponse
981
- ) => void
980
+ res: http.ServerResponse,
981
+ ) => void,
982
982
  ): this
983
983
  on(
984
984
  event: 'proxyReqWs',
@@ -987,8 +987,8 @@ export declare namespace HttpProxy {
987
987
  req: http.IncomingMessage,
988
988
  socket: net.Socket,
989
989
  options: ServerOptions,
990
- head: any
991
- ) => void
990
+ head: any,
991
+ ) => void,
992
992
  ): this
993
993
  on(
994
994
  event: 'econnreset',
@@ -996,24 +996,24 @@ export declare namespace HttpProxy {
996
996
  err: Error,
997
997
  req: http.IncomingMessage,
998
998
  res: http.ServerResponse,
999
- target: ProxyTargetUrl
1000
- ) => void
999
+ target: ProxyTargetUrl,
1000
+ ) => void,
1001
1001
  ): this
1002
1002
  on(
1003
1003
  event: 'end',
1004
1004
  listener: (
1005
1005
  req: http.IncomingMessage,
1006
1006
  res: http.ServerResponse,
1007
- proxyRes: http.IncomingMessage
1008
- ) => void
1007
+ proxyRes: http.IncomingMessage,
1008
+ ) => void,
1009
1009
  ): this
1010
1010
  on(
1011
1011
  event: 'close',
1012
1012
  listener: (
1013
1013
  proxyRes: http.IncomingMessage,
1014
1014
  proxySocket: net.Socket,
1015
- proxyHead: any
1016
- ) => void
1015
+ proxyHead: any,
1016
+ ) => void,
1017
1017
  ): this
1018
1018
 
1019
1019
  once(event: string, listener: () => void): this
@@ -1699,7 +1699,7 @@ resolvedId: string,
1699
1699
  meta: object | null | undefined
1700
1700
  ];
1701
1701
 
1702
- export declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
1702
+ export declare function resolveEnvPrefix({ envPrefix, }: UserConfig): string[];
1703
1703
 
1704
1704
  export declare type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
1705
1705
 
@@ -2168,7 +2168,7 @@ export declare namespace Terser {
2168
2168
  Disabled = 0,
2169
2169
  SimpleFunctions = 1,
2170
2170
  WithArguments = 2,
2171
- WithArgumentsAndVariables = 3
2171
+ WithArgumentsAndVariables = 3,
2172
2172
  }
2173
2173
 
2174
2174
  export interface MangleOptions {
@@ -2244,7 +2244,7 @@ export declare namespace Terser {
2244
2244
  pos: number
2245
2245
  line: number
2246
2246
  col: number
2247
- }
2247
+ },
2248
2248
  ) => boolean)
2249
2249
  ecma?: ECMA
2250
2250
  ie8?: boolean
@@ -2273,7 +2273,7 @@ export declare namespace Terser {
2273
2273
  PreferDouble = 0,
2274
2274
  AlwaysSingle = 1,
2275
2275
  AlwaysDouble = 2,
2276
- AlwaysOriginal = 3
2276
+ AlwaysOriginal = 3,
2277
2277
  }
2278
2278
 
2279
2279
  export interface MinifyOptions {
@@ -2735,12 +2735,12 @@ declare class WebSocket_2 extends EventEmitter {
2735
2735
  constructor(address: null)
2736
2736
  constructor(
2737
2737
  address: string | URL_2,
2738
- options?: WebSocket_2.ClientOptions | ClientRequestArgs
2738
+ options?: WebSocket_2.ClientOptions | ClientRequestArgs,
2739
2739
  )
2740
2740
  constructor(
2741
2741
  address: string | URL_2,
2742
2742
  protocols?: string | string[],
2743
- options?: WebSocket_2.ClientOptions | ClientRequestArgs
2743
+ options?: WebSocket_2.ClientOptions | ClientRequestArgs,
2744
2744
  )
2745
2745
 
2746
2746
  close(code?: number, data?: string | Buffer): void
@@ -2755,7 +2755,7 @@ declare class WebSocket_2 extends EventEmitter {
2755
2755
  compress?: boolean | undefined
2756
2756
  fin?: boolean | undefined
2757
2757
  },
2758
- cb?: (err?: Error) => void
2758
+ cb?: (err?: Error) => void,
2759
2759
  ): void
2760
2760
  terminate(): void
2761
2761
 
@@ -2775,190 +2775,190 @@ declare class WebSocket_2 extends EventEmitter {
2775
2775
  addEventListener(
2776
2776
  method: 'message',
2777
2777
  cb: (event: WebSocket_2.MessageEvent) => void,
2778
- options?: WebSocket_2.EventListenerOptions
2778
+ options?: WebSocket_2.EventListenerOptions,
2779
2779
  ): void
2780
2780
  addEventListener(
2781
2781
  method: 'close',
2782
2782
  cb: (event: WebSocket_2.CloseEvent) => void,
2783
- options?: WebSocket_2.EventListenerOptions
2783
+ options?: WebSocket_2.EventListenerOptions,
2784
2784
  ): void
2785
2785
  addEventListener(
2786
2786
  method: 'error',
2787
2787
  cb: (event: WebSocket_2.ErrorEvent) => void,
2788
- options?: WebSocket_2.EventListenerOptions
2788
+ options?: WebSocket_2.EventListenerOptions,
2789
2789
  ): void
2790
2790
  addEventListener(
2791
2791
  method: 'open',
2792
2792
  cb: (event: WebSocket_2.Event) => void,
2793
- options?: WebSocket_2.EventListenerOptions
2793
+ options?: WebSocket_2.EventListenerOptions,
2794
2794
  ): void
2795
2795
 
2796
2796
  removeEventListener(
2797
2797
  method: 'message',
2798
- cb: (event: WebSocket_2.MessageEvent) => void
2798
+ cb: (event: WebSocket_2.MessageEvent) => void,
2799
2799
  ): void
2800
2800
  removeEventListener(
2801
2801
  method: 'close',
2802
- cb: (event: WebSocket_2.CloseEvent) => void
2802
+ cb: (event: WebSocket_2.CloseEvent) => void,
2803
2803
  ): void
2804
2804
  removeEventListener(
2805
2805
  method: 'error',
2806
- cb: (event: WebSocket_2.ErrorEvent) => void
2806
+ cb: (event: WebSocket_2.ErrorEvent) => void,
2807
2807
  ): void
2808
2808
  removeEventListener(
2809
2809
  method: 'open',
2810
- cb: (event: WebSocket_2.Event) => void
2810
+ cb: (event: WebSocket_2.Event) => void,
2811
2811
  ): void
2812
2812
 
2813
2813
  // Events
2814
2814
  on(
2815
2815
  event: 'close',
2816
- listener: (this: WebSocket_2, code: number, reason: Buffer) => void
2816
+ listener: (this: WebSocket_2, code: number, reason: Buffer) => void,
2817
2817
  ): this
2818
2818
  on(event: 'error', listener: (this: WebSocket_2, err: Error) => void): this
2819
2819
  on(
2820
2820
  event: 'upgrade',
2821
- listener: (this: WebSocket_2, request: IncomingMessage) => void
2821
+ listener: (this: WebSocket_2, request: IncomingMessage) => void,
2822
2822
  ): this
2823
2823
  on(
2824
2824
  event: 'message',
2825
2825
  listener: (
2826
2826
  this: WebSocket_2,
2827
2827
  data: WebSocket_2.RawData,
2828
- isBinary: boolean
2829
- ) => void
2828
+ isBinary: boolean,
2829
+ ) => void,
2830
2830
  ): this
2831
2831
  on(event: 'open', listener: (this: WebSocket_2) => void): this
2832
2832
  on(
2833
2833
  event: 'ping' | 'pong',
2834
- listener: (this: WebSocket_2, data: Buffer) => void
2834
+ listener: (this: WebSocket_2, data: Buffer) => void,
2835
2835
  ): this
2836
2836
  on(
2837
2837
  event: 'unexpected-response',
2838
2838
  listener: (
2839
2839
  this: WebSocket_2,
2840
2840
  request: ClientRequest,
2841
- response: IncomingMessage
2842
- ) => void
2841
+ response: IncomingMessage,
2842
+ ) => void,
2843
2843
  ): this
2844
2844
  on(
2845
2845
  event: string | symbol,
2846
- listener: (this: WebSocket_2, ...args: any[]) => void
2846
+ listener: (this: WebSocket_2, ...args: any[]) => void,
2847
2847
  ): this
2848
2848
 
2849
2849
  once(
2850
2850
  event: 'close',
2851
- listener: (this: WebSocket_2, code: number, reason: Buffer) => void
2851
+ listener: (this: WebSocket_2, code: number, reason: Buffer) => void,
2852
2852
  ): this
2853
2853
  once(event: 'error', listener: (this: WebSocket_2, err: Error) => void): this
2854
2854
  once(
2855
2855
  event: 'upgrade',
2856
- listener: (this: WebSocket_2, request: IncomingMessage) => void
2856
+ listener: (this: WebSocket_2, request: IncomingMessage) => void,
2857
2857
  ): this
2858
2858
  once(
2859
2859
  event: 'message',
2860
2860
  listener: (
2861
2861
  this: WebSocket_2,
2862
2862
  data: WebSocket_2.RawData,
2863
- isBinary: boolean
2864
- ) => void
2863
+ isBinary: boolean,
2864
+ ) => void,
2865
2865
  ): this
2866
2866
  once(event: 'open', listener: (this: WebSocket_2) => void): this
2867
2867
  once(
2868
2868
  event: 'ping' | 'pong',
2869
- listener: (this: WebSocket_2, data: Buffer) => void
2869
+ listener: (this: WebSocket_2, data: Buffer) => void,
2870
2870
  ): this
2871
2871
  once(
2872
2872
  event: 'unexpected-response',
2873
2873
  listener: (
2874
2874
  this: WebSocket_2,
2875
2875
  request: ClientRequest,
2876
- response: IncomingMessage
2877
- ) => void
2876
+ response: IncomingMessage,
2877
+ ) => void,
2878
2878
  ): this
2879
2879
  once(
2880
2880
  event: string | symbol,
2881
- listener: (this: WebSocket_2, ...args: any[]) => void
2881
+ listener: (this: WebSocket_2, ...args: any[]) => void,
2882
2882
  ): this
2883
2883
 
2884
2884
  off(
2885
2885
  event: 'close',
2886
- listener: (this: WebSocket_2, code: number, reason: Buffer) => void
2886
+ listener: (this: WebSocket_2, code: number, reason: Buffer) => void,
2887
2887
  ): this
2888
2888
  off(event: 'error', listener: (this: WebSocket_2, err: Error) => void): this
2889
2889
  off(
2890
2890
  event: 'upgrade',
2891
- listener: (this: WebSocket_2, request: IncomingMessage) => void
2891
+ listener: (this: WebSocket_2, request: IncomingMessage) => void,
2892
2892
  ): this
2893
2893
  off(
2894
2894
  event: 'message',
2895
2895
  listener: (
2896
2896
  this: WebSocket_2,
2897
2897
  data: WebSocket_2.RawData,
2898
- isBinary: boolean
2899
- ) => void
2898
+ isBinary: boolean,
2899
+ ) => void,
2900
2900
  ): this
2901
2901
  off(event: 'open', listener: (this: WebSocket_2) => void): this
2902
2902
  off(
2903
2903
  event: 'ping' | 'pong',
2904
- listener: (this: WebSocket_2, data: Buffer) => void
2904
+ listener: (this: WebSocket_2, data: Buffer) => void,
2905
2905
  ): this
2906
2906
  off(
2907
2907
  event: 'unexpected-response',
2908
2908
  listener: (
2909
2909
  this: WebSocket_2,
2910
2910
  request: ClientRequest,
2911
- response: IncomingMessage
2912
- ) => void
2911
+ response: IncomingMessage,
2912
+ ) => void,
2913
2913
  ): this
2914
2914
  off(
2915
2915
  event: string | symbol,
2916
- listener: (this: WebSocket_2, ...args: any[]) => void
2916
+ listener: (this: WebSocket_2, ...args: any[]) => void,
2917
2917
  ): this
2918
2918
 
2919
2919
  addListener(
2920
2920
  event: 'close',
2921
- listener: (code: number, reason: Buffer) => void
2921
+ listener: (code: number, reason: Buffer) => void,
2922
2922
  ): this
2923
2923
  addListener(event: 'error', listener: (err: Error) => void): this
2924
2924
  addListener(
2925
2925
  event: 'upgrade',
2926
- listener: (request: IncomingMessage) => void
2926
+ listener: (request: IncomingMessage) => void,
2927
2927
  ): this
2928
2928
  addListener(
2929
2929
  event: 'message',
2930
- listener: (data: WebSocket_2.RawData, isBinary: boolean) => void
2930
+ listener: (data: WebSocket_2.RawData, isBinary: boolean) => void,
2931
2931
  ): this
2932
2932
  addListener(event: 'open', listener: () => void): this
2933
2933
  addListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this
2934
2934
  addListener(
2935
2935
  event: 'unexpected-response',
2936
- listener: (request: ClientRequest, response: IncomingMessage) => void
2936
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
2937
2937
  ): this
2938
2938
  addListener(event: string | symbol, listener: (...args: any[]) => void): this
2939
2939
 
2940
2940
  removeListener(
2941
2941
  event: 'close',
2942
- listener: (code: number, reason: Buffer) => void
2942
+ listener: (code: number, reason: Buffer) => void,
2943
2943
  ): this
2944
2944
  removeListener(event: 'error', listener: (err: Error) => void): this
2945
2945
  removeListener(
2946
2946
  event: 'upgrade',
2947
- listener: (request: IncomingMessage) => void
2947
+ listener: (request: IncomingMessage) => void,
2948
2948
  ): this
2949
2949
  removeListener(
2950
2950
  event: 'message',
2951
- listener: (data: WebSocket_2.RawData, isBinary: boolean) => void
2951
+ listener: (data: WebSocket_2.RawData, isBinary: boolean) => void,
2952
2952
  ): this
2953
2953
  removeListener(event: 'open', listener: () => void): this
2954
2954
  removeListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this
2955
2955
  removeListener(
2956
2956
  event: 'unexpected-response',
2957
- listener: (request: ClientRequest, response: IncomingMessage) => void
2957
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
2958
2958
  ): this
2959
2959
  removeListener(
2960
2960
  event: string | symbol,
2961
- listener: (...args: any[]) => void
2961
+ listener: (...args: any[]) => void,
2962
2962
  ): this
2963
2963
  }
2964
2964
 
@@ -3000,8 +3000,8 @@ declare namespace WebSocket_2 {
3000
3000
  res: boolean,
3001
3001
  code?: number,
3002
3002
  message?: string,
3003
- headers?: OutgoingHttpHeaders
3004
- ) => void
3003
+ headers?: OutgoingHttpHeaders,
3004
+ ) => void,
3005
3005
  ) => void
3006
3006
 
3007
3007
  interface ClientOptions extends SecureContextOptions {
@@ -3088,7 +3088,7 @@ declare namespace WebSocket_2 {
3088
3088
  | undefined
3089
3089
  handleProtocols?: (
3090
3090
  protocols: Set<string>,
3091
- request: IncomingMessage
3091
+ request: IncomingMessage,
3092
3092
  ) => string | false
3093
3093
  path?: string | undefined
3094
3094
  noServer?: boolean | undefined
@@ -3119,81 +3119,93 @@ declare namespace WebSocket_2 {
3119
3119
  request: IncomingMessage,
3120
3120
  socket: Duplex,
3121
3121
  upgradeHead: Buffer,
3122
- callback: (client: T, request: IncomingMessage) => void
3122
+ callback: (client: T, request: IncomingMessage) => void,
3123
3123
  ): void
3124
3124
  shouldHandle(request: IncomingMessage): boolean | Promise<boolean>
3125
3125
 
3126
3126
  // Events
3127
3127
  on(
3128
3128
  event: 'connection',
3129
- cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
3129
+ cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
3130
3130
  ): this
3131
3131
  on(event: 'error', cb: (this: Server<T>, error: Error) => void): this
3132
3132
  on(
3133
3133
  event: 'headers',
3134
- cb: (this: Server<T>, headers: string[], request: IncomingMessage) => void
3134
+ cb: (
3135
+ this: Server<T>,
3136
+ headers: string[],
3137
+ request: IncomingMessage,
3138
+ ) => void,
3135
3139
  ): this
3136
3140
  on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this
3137
3141
  on(
3138
3142
  event: string | symbol,
3139
- listener: (this: Server<T>, ...args: any[]) => void
3143
+ listener: (this: Server<T>, ...args: any[]) => void,
3140
3144
  ): this
3141
3145
 
3142
3146
  once(
3143
3147
  event: 'connection',
3144
- cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
3148
+ cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
3145
3149
  ): this
3146
3150
  once(event: 'error', cb: (this: Server<T>, error: Error) => void): this
3147
3151
  once(
3148
3152
  event: 'headers',
3149
- cb: (this: Server<T>, headers: string[], request: IncomingMessage) => void
3153
+ cb: (
3154
+ this: Server<T>,
3155
+ headers: string[],
3156
+ request: IncomingMessage,
3157
+ ) => void,
3150
3158
  ): this
3151
3159
  once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this
3152
3160
  once(
3153
3161
  event: string | symbol,
3154
- listener: (this: Server<T>, ...args: any[]) => void
3162
+ listener: (this: Server<T>, ...args: any[]) => void,
3155
3163
  ): this
3156
3164
 
3157
3165
  off(
3158
3166
  event: 'connection',
3159
- cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
3167
+ cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
3160
3168
  ): this
3161
3169
  off(event: 'error', cb: (this: Server<T>, error: Error) => void): this
3162
3170
  off(
3163
3171
  event: 'headers',
3164
- cb: (this: Server<T>, headers: string[], request: IncomingMessage) => void
3172
+ cb: (
3173
+ this: Server<T>,
3174
+ headers: string[],
3175
+ request: IncomingMessage,
3176
+ ) => void,
3165
3177
  ): this
3166
3178
  off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this
3167
3179
  off(
3168
3180
  event: string | symbol,
3169
- listener: (this: Server<T>, ...args: any[]) => void
3181
+ listener: (this: Server<T>, ...args: any[]) => void,
3170
3182
  ): this
3171
3183
 
3172
3184
  addListener(
3173
3185
  event: 'connection',
3174
- cb: (client: T, request: IncomingMessage) => void
3186
+ cb: (client: T, request: IncomingMessage) => void,
3175
3187
  ): this
3176
3188
  addListener(event: 'error', cb: (err: Error) => void): this
3177
3189
  addListener(
3178
3190
  event: 'headers',
3179
- cb: (headers: string[], request: IncomingMessage) => void
3191
+ cb: (headers: string[], request: IncomingMessage) => void,
3180
3192
  ): this
3181
3193
  addListener(event: 'close' | 'listening', cb: () => void): this
3182
3194
  addListener(
3183
3195
  event: string | symbol,
3184
- listener: (...args: any[]) => void
3196
+ listener: (...args: any[]) => void,
3185
3197
  ): this
3186
3198
 
3187
3199
  removeListener(event: 'connection', cb: (client: T) => void): this
3188
3200
  removeListener(event: 'error', cb: (err: Error) => void): this
3189
3201
  removeListener(
3190
3202
  event: 'headers',
3191
- cb: (headers: string[], request: IncomingMessage) => void
3203
+ cb: (headers: string[], request: IncomingMessage) => void,
3192
3204
  ): this
3193
3205
  removeListener(event: 'close' | 'listening', cb: () => void): this
3194
3206
  removeListener(
3195
3207
  event: string | symbol,
3196
- listener: (...args: any[]) => void
3208
+ listener: (...args: any[]) => void,
3197
3209
  ): this
3198
3210
  }
3199
3211
 
@@ -3205,7 +3217,7 @@ declare namespace WebSocket_2 {
3205
3217
  // WebSocket stream
3206
3218
  function createWebSocketStream(
3207
3219
  websocket: WebSocket,
3208
- options?: DuplexOptions
3220
+ options?: DuplexOptions,
3209
3221
  ): Duplex
3210
3222
  }
3211
3223
  export { WebSocket_2 as WebSocket }
@@ -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-68d444d0.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-a5101d9f.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';
@@ -132,16 +132,16 @@ function splitVendorChunkPlugin() {
132
132
  build: {
133
133
  rollupOptions: {
134
134
  output: {
135
- manualChunks: createSplitVendorChunk({}, config)
136
- }
137
- }
138
- }
135
+ manualChunks: createSplitVendorChunk({}, config),
136
+ },
137
+ },
138
+ },
139
139
  };
140
140
  }
141
141
  },
142
142
  buildStart() {
143
143
  caches.forEach((cache) => cache.reset());
144
- }
144
+ },
145
145
  };
146
146
  }
147
147