Skip to content

Commit

Permalink
🔧 Enable the module compile cache for the Node.js instance
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra committed Oct 26, 2024
1 parent b0cf910 commit d94b868
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/shell/bash_exports
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ export MANPAGER="less -X"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Enable the module compile cache for the Node.js instance.
#
# https://nodejs.org/api/cli.html#node_compile_cachedir
# https://nodejs.org/en/blog/release/v22.1.0#module-implement-node_compile_cache-for-automatic-on-disk-code-caching

export NODE_COMPILE_CACHE="$HOME/.cache/node_compile_cache"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Increase the maximum number of lines of history persisted
# in the `Node` REPL history file (default value is 1000).
#
Expand Down

0 comments on commit d94b868

Please sign in to comment.