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 20, 2024
1 parent 780afc5 commit 7c77131
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
try {
const { enableCompileCache } = require('node:module')
/* istanbul ignore next */
if (enableCompileCache) {
enableCompileCache()
}
} catch (e) { /* istanbul ignore next */ }

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

Expand Down

0 comments on commit 7c77131

Please sign in to comment.