Skip to content

Commit c7fe0db

Browse files
authoredNov 20, 2024··
fix(perf): enable compile cache if present (#7924)
1 parent 65d2a86 commit c7fe0db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎lib/cli.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
try {
2+
const { enableCompileCache } = require('node:module')
3+
/* istanbul ignore next */
4+
if (enableCompileCache) {
5+
enableCompileCache()
6+
}
7+
} catch (e) { /* istanbul ignore next */ }
8+
19
const validateEngines = require('./cli/validate-engines.js')
210
const cliEntry = require('node:path').resolve(__dirname, 'cli/entry.js')
311

0 commit comments

Comments
 (0)
Please sign in to comment.