Skip to content

Commit

Permalink
fix(perf): enable compile cache
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Nov 10, 2024
1 parent 780afc5 commit af5e805
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
try {
const { enableCompileCache } = require('node:module')
if (enableCompileCache) {
enableCompileCache()
}
} catch (e) { /* empty */ }

const validateEngines = require('./cli/validate-engines.js')
const cliEntry = require('node:path').resolve(__dirname, 'cli/entry.js')

Expand Down

0 comments on commit af5e805

Please sign in to comment.