We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 409fb35 commit de71d3fCopy full SHA for de71d3f
packages/core/bin/rslib.js
@@ -1,7 +1,19 @@
1
#!/usr/bin/env node
2
-import { logger, prepareCli, runCli } from '../dist/index.js';
+import nodeModule from 'node:module';
3
+
4
+// enable on-disk code caching of all modules loaded by Node.js
5
+// requires Nodejs >= 22.8.0
6
+const { enableCompileCache } = nodeModule;
7
+if (enableCompileCache) {
8
+ try {
9
+ enableCompileCache();
10
+ } catch {
11
+ // ignore errors
12
+ }
13
+}
14
15
async function main() {
16
+ const { logger, prepareCli, runCli } = await import('../dist/index.js');
17
prepareCli();
18
19
try {
0 commit comments