Optional. Directory to store the compile cache. If not specified, the directory specified by the NODE_COMPILE_CACHE=dir environment variable will be used if it's set, or path.join(os.tmpdir(), 'node-compile-cache') otherwise.
interface
module.default.EnableCompileCacheOptions
interface EnableCompileCacheOptions
- directory?: string
- portable?: boolean
Optional. If
true, enables portable compile cache so that the cache can be reused even if the project directory is moved. This is a best-effort feature. If not specified, it will depend on whether the environment variableNODE_COMPILE_CACHE_PORTABLE=1is set.