Skip to content

Commit

Permalink
fix: no need for checking NODE_DISABLE_COMPILE_CACHE (#3895)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Nov 4, 2024
1 parent b7686f0 commit cea4364
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/bin/rsbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import nodeModule from 'node:module';

// enable on-disk code caching of all modules loaded by Node.js
// requires Nodejs >= 22.8.0
// @ts-expect-error enableCompileCache is not typed in `@types/node` 18.x
const { enableCompileCache } = nodeModule;
if (enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
if (enableCompileCache) {
try {
enableCompileCache();
} catch {
Expand Down

1 comment on commit cea4364

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ❌ failure
plugins ✅ success
rspress ✅ success
rslib ✅ success
examples ✅ success

Please sign in to comment.