EnableCompileCacheOptions

external interface EnableCompileCacheOptions(source)

Properties

Link copied to clipboard
abstract var directory: String?

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.

Link copied to clipboard
abstract var 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 variable NODE_COMPILE_CACHE_PORTABLE=1 is set.