vite 6.2.0-beta.1 → 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 +9 -0
- package/client.d.ts +5 -0
- package/dist/client/client.mjs +1 -0
- package/dist/node/chunks/{dep-CQyoC9dM.js → dep-Ccxds025.js} +1 -1
- package/dist/node/chunks/{dep-B_VirPXO.js → dep-CmNzPT96.js} +1 -1
- package/dist/node/chunks/{dep-CuXbLJyX.js → dep-glQox-ep.js} +1732 -1719
- package/dist/node/cli.js +8 -8
- package/dist/node/index.js +5 -5
- package/dist/node/module-runner.js +1 -1
- package/dist/node-cjs/publicUtils.cjs +1 -1
- package/package.json +8 -8
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
package/dist/client/client.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-
|
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';
|