Skip to content

Commit cea4364

Browse files
authored
fix: no need for checking NODE_DISABLE_COMPILE_CACHE (#3895)
1 parent b7686f0 commit cea4364

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/bin/rsbuild.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import nodeModule from 'node:module';
33

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

0 commit comments

Comments
 (0)