Skip to content

Commit

Permalink
fix: no need for NODE_DISABLE_COMPILE_CACHE
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 4, 2024
1 parent 2b12240 commit 25f1ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rspack-cli/bin/rspack.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const nodeModule = require("node:module");
// enable on-disk code caching of all modules loaded by Node.js
// requires Nodejs >= 22.8.0
const { enableCompileCache } = nodeModule;
if (enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
if (enableCompileCache) {
try {
enableCompileCache();
} catch {
Expand Down

0 comments on commit 25f1ed9

Please sign in to comment.