vite 6.2.0 → 6.2.1

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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

package/bin/vite.js CHANGED
@@ -49,6 +49,15 @@ function start() {
49
49
  try {
50
50
  // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.8.0+ and only called if it exists
51
51
  module.enableCompileCache?.()
52
+ // flush the cache after 10s because the cache is not flushed until process end
53
+ // for dev server, the cache is never flushed unless manually flushed because the process.exit is called
54
+ // also flushing the cache in SIGINT handler seems to cause the process to hang
55
+ setTimeout(() => {
56
+ try {
57
+ // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.12.0+ and only called if it exists
58
+ module.flushCompileCache?.()
59
+ } catch {}
60
+ }, 10 * 1000).unref()
52
61
  } catch {}
53
62
  return import('../dist/node/cli.js')
54
63
  }
package/client.d.ts CHANGED
@@ -265,6 +265,11 @@ declare module '*?url&inline' {
265
265
  export default src
266
266
  }
267
267
 
268
+ declare module '*?url&no-inline' {
269
+ const src: string
270
+ export default src
271
+ }
272
+
268
273
  declare interface VitePreloadErrorEvent extends Event {
269
274
  payload: Error
270
275
  }
@@ -1,4 +1,4 @@
1
- import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-ByPKlqZ5.js';
1
+ import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-glQox-ep.js';
2
2
  import require$$0$2 from 'fs';
3
3
  import require$$0 from 'postcss';
4
4
  import require$$0$1 from 'path';
@@ -1,4 +1,4 @@
1
- import { P as getDefaultExportFromCjs } from './dep-ByPKlqZ5.js';
1
+ import { P as getDefaultExportFromCjs } from './dep-glQox-ep.js';
2
2
  import require$$0 from 'path';
3
3
  import { l as lib } from './dep-3RmXg9uo.js';
4
4