sveld 0.37.8 → 0.38.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.
package/cli.js CHANGED
@@ -1,5 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // biome-ignore lint/performance/noNamespaceImport: a named import of enableCompileCache fails to link on Node < 22.1.
4
+ import * as nodeModule from "node:module";
5
+
6
+ // Caches V8's compiled bytecode for sveld's own modules across runs (Node
7
+ // 22.1+; a no-op on older Node and Bun), so startup skips recompiling them.
8
+ nodeModule.enableCompileCache?.();
9
+
3
10
  import("./lib/cli-entry.js")
4
11
  .then(({ cli }) => cli(process))
5
12
  .catch((error) => {